{"id":209238,"date":"2014-01-15T19:11:04","date_gmt":"2014-01-15T15:11:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=209238"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=209238","title":{"rendered":"<span class=\"post_title\">Test Kitchen \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/2d1\/d80\/997\/2d1d80997311a46a4eceef2e0fb56713.png\" align=\"left\" alt=\"image\"\/> \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u044b! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432. \u0421 \u0440\u043e\u0441\u0442\u043e\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043a\u0443\u043a\u0431\u0443\u043a\u0438. \u0420\u0435\u0448\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0442\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u043a foodcritics, chefspec, minitest, test kitchen \u0438 \u043f\u0440. <br \/>   \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e test kitchen. \u0414\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u0445. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c\u00bb \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043b\u0430\u0443\u0434 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a Amazon EC2, Blue Box, CloudStack, Digital Ocean, Rackspace, OpenStack, Vagrant, Docker, LXC containers \u0438 \u0434\u0440. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u043f\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0441\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Bats, shUnit2, RSpec, Serverspec \u0438 \u043f\u0440.<br \/>   \u041d\u0430\u0441 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 Berkshelf \u0438 Librarian-Chef, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0438\u0445 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432.<br \/>   \u0422\u0430\u043a \u0436\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 test kitchen \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0442\u0430\u043a\u0438\u0435 \u043a\u043c\u043e\u044c\u044e\u043d\u0438\u0442\u0438 \u043a\u0443\u043a\u0431\u0443\u043a\u0438 \u043a\u0430\u043a MySQL, nginx, Chef Server, runit \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u0443 testkitchen, vagrant, virualbox, berkshelf. <br \/>   \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u0442.\u043a. \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0428\u0410\u0413 1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>  <\/p>\n<h5>VirtualBox &#038; Vagrant<\/h5>\n<p>   \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 <a href=\"http:\/\/download.virtualbox.org\/virtualbox\/4.3.6\/VirtualBox-4.3.6-91406-Win.exe\">VirtualBox<\/a> \u0438 <a href=\"https:\/\/dl.bintray.com\/mitchellh\/vagrant\/Vagrant_1.4.3.msi\">vagrant<\/a><br \/>   \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 vagrant&#8217;a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<p>   \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c vagrant:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430:<\/b><\/p>\n<div class=\"spoiler_text\">   <code>mkdir C:\\vagrant && cd C:\\vagrant<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">2. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c precise32 box:<\/b><\/p>\n<div class=\"spoiler_text\">  <code> C:\\vagrant&gt;vagrant box add precise32 http:\/\/files.vagrantup.com\/precise32.box<\/code><br \/>  <code>    Downloading box from URL: http:\/\/files.vagrantup.com\/precise32.box<\/code><br \/>  <code>Extracting box...ate: 3089k\/s, Estimated time remaining: --:--:--)<\/code><br \/>  <code>Successfully added box 'precise32' with provider 'virtualbox'!<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">3. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0414\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Vagrantfile:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>C:\\vagrant&gt;vagrant init<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b Vagrantfile :<\/b><\/p>\n<div class=\"spoiler_text\">  <code>    --   config.vm.box = &quot;base&quot;<\/code><br \/>  <code>    ++   config.vm.box = &quot;precise32&quot;<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">5. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0448 \u0438\u043d\u0441\u0442\u0430\u043d\u0441:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>C:\\vagrant&gt;vagrant up<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">6. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043f\u043e ssh \u043a localhost:2222 :<\/b><\/p>\n<div class=\"spoiler_text\">  <code>login as: vagrant<\/code><br \/>  <code>vagrant@localhost's password: vagrant<\/code><br \/>  <code>Welcome to Ubuntu 12.04 LTS (GNU\/Linux 3.2.0-23-generic-pae i686)<\/code><br \/>  <code>* Documentation:  https:\/\/help.ubuntu.com\/<\/code><br \/>  <code>Welcome to your Vagrant-built virtual machine.<\/code><br \/>   \u0415\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. <\/div>\n<\/div>\n<p>  <\/p>\n<h5>Ruby &#038; Ruby DevKit<\/h5>\n<p>   \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"http:\/\/dl.bintray.com\/oneclick\/rubyinstaller\/rubyinstaller-1.9.3-p484.exe?direct\">ruby<\/a>.<br \/>  \u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d chef-client \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u0442.\u043a. \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 gem.<br \/>   \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 <i>\u00abAdd Ruby executables to your PATH\u00bb<\/i> \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c ruby \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<br \/>   \u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c DevKit, \u0442.\u043a. \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u041f\u041e(\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u2014 \u043e\u0434\u043d\u0438\u043c \u0441\u043b\u043e\u0432\u043e\u043c Devkit). \u0425\u043e\u0447\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0412\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e(\u043a\u0430\u043a ruby \u0442\u0430\u043a \u0438 DevKit) \u0438\u043d\u0430\u0447\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<br \/>   \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443:<\/b><\/p>\n<div class=\"spoiler_text\"> <code>mkdir C:\\devkit && cd C:\\devkit<\/code><\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">2. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u0435 \u0430\u0440\u0445\u0438\u0432  \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e:<\/b><\/p>\n<div class=\"spoiler_text\"><a href=\"https:\/\/github.com\/downloads\/oneclick\/rubyinstaller\/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe\">DevKit-tdm<\/a> <br \/>   <code>cd C:\\devkit<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">3. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443:<\/b><\/p>\n<div class=\"spoiler_text\"> <code>C:\\devkit&gt;ruby dk.rb init<\/code><br \/>   <code>[INFO] found RubyInstaller v1.9.3 at C:\/Ruby193<\/code><\/p>\n<p>   <code>Initialization complete! Please review and modify the auto-generated<\/code><br \/>   <code>'config.yml' file to ensure it contains the root directories to all<\/code><br \/>   <code>of the installed Rubies you want enhanced by the DevKit. <\/code><br \/>   \u0412\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u043f\u0443\u0442\u044c \u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e ruby <\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c:<\/b><\/p>\n<div class=\"spoiler_text\">   <code>C:\\DevKit&gt;ruby dk.rb install<\/code><br \/>   <code>[INFO] Updating convenience notice gem override for 'C:\/Ruby193'<\/code><br \/>   <code>[INFO] Installing 'C:\/Ruby193\/lib\/ruby\/site_ruby\/devkit.rb'<\/code> <\/p>\n<p>   \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044f ruby dk.rb install \u0432 PATH \u0434\u043e\u043b\u0436\u043d\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0443\u0442\u0438 \u043a DevKit,<br \/>   \u043d\u043e, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e:<br \/>   <code>C:\\DevKit&gt;echo %PATH%<\/code><br \/>   <code> C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Ruby193\\bin<\/code><br \/>   \u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 PATH \u043f\u0443\u0442\u044c \u043a DevKit \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438.<br \/>   \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:<br \/>   1. \u0412 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<br \/>   <code>setx PATH &quot;C:\\DevKit\\mingw\\bin\\;C:\\DevKit\\bin\\&quot;<\/code><br \/>   \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f PATH \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445;<br \/>   2. \u041e\u0442\u043a\u0440\u0432\u044b\u0430\u0435\u043c cmd \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c:<br \/>   <code>setx PATH &quot;%PATH%;C:\\DevKit\\mingw\\bin\\;C:\\DevKit\\bin\\&quot; \/M<\/code><br \/>   \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0443\u0442\u0438 \u043a Devkit \u0434\u043e\u0431\u0430\u0432\u044f\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 PATH<br \/>   3. \u0414\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0435\u0441\u043b\u0438 \u0412\u044b \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b \u0432 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445:<br \/>   <code>\u041c\u043e\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 &gt; \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 &gt; \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b &gt; \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b.<\/code><br \/>   \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c PATH \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c C:\\DevKit\\bin\\ \u0438 C:\\DevKit\\mingw\\bin\\<br \/>   \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b(cmd) \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<br \/>   <code>C:\\Users\\cc&gt;echo %PATH%<\/code><br \/>   <code>C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Ruby193\\bin;C:\\DevKit\\mingw\\bin\\;C:\\DevKit\\bin\\<\/code> <\/div>\n<\/div>\n<h4>\u0428\u0410\u0413 2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Test Kitchen<\/h4>\n<p>   \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0443\u0441\u0442\u0430\u0432\u043d\u043e\u0432\u043a\u0435 test kitchen:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 test kitchen:<\/b><\/p>\n<div class=\"spoiler_text\">   <code> C:\\&gt;mkdir C:\\kitchen && cd C:\\kitchen<\/code> <\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">2. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c bundler<\/b><\/p>\n<div class=\"spoiler_text\">   <code>C:\\DevKit&gt;gem install bundler<\/code><br \/>   <code>Fetching: bundler-1.5.2.gem (100%)<\/code><br \/>   <code>Successfully installed bundler-1.5.2<\/code><br \/>   <code>1 gem installed<\/code><br \/>   <code>Installing ri documentation for bundler-1.5.2...<\/code><br \/>   <code> Installing RDoc documentation for bundler-1.5.2...<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">3. \u0412 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b Gemfile \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c:<\/b><\/p>\n<div class=\"spoiler_text\">   <code>source 'https:\/\/rubygems.org'<\/code><\/p>\n<p>   <code>gem 'berkshelf', '~&gt; 2.0.0'             # use for manage cookbook dependencies<\/code><br \/>   <code>gem 'chef', '~&gt; 11.6.0'<\/code><br \/>   <code>gem 'chef-zero'<\/code><br \/>   <code>gem 'json', '1.7.7'                     # needed for conflict resolution<\/code><br \/>   <code>gem 'kitchen-vagrant'     <\/code> <br \/>   <code>gem 'test-kitchen'<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443:<\/b><\/p>\n<div class=\"spoiler_text\">   <code>C:\\kitchen&gt;bundle install<\/code><br \/>   <code> Fetching gem metadata from https:\/\/rubygems.org\/.......<\/code><br \/>   <code>Fetching additional metadata from https:\/\/rubygems.org\/..<\/code><br \/>   <code>Resolving dependencies...<\/code><br \/>   <code>Installing i18n (0.6.9)<\/code><br \/>   <code>Installing multi_json (1.8.4)<\/code><br \/>   <code>Installing activesupport (3.2.16)<\/code><br \/>  \u2026 <br \/>   <code>Installing test-kitchen (1.0.0)<\/code><br \/>   <code>Installing kitchen-vagrant (0.11.3)<\/code><br \/>   <code>Using bundler (1.5.2)<\/code><br \/>   <code>Your bundle is complete!<\/code><br \/>   <code>Use `bundle show [gemname]` to see where a bundled gem is installed.<\/code> <\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">5. \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u0430\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e. cookbook \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430(\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u0437\u044f\u043b sendmail):<\/b><\/p>\n<div class=\"spoiler_text\">   <code>mkdir C:\\kitchen\\cookbooks && cd C:\\kitchen\\cookbooks && knife cookbook site download sendmail<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">7. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 test kitchen:<\/b><\/p>\n<div class=\"spoiler_text\">   <code>C:\\kitchen&gt;kitchen init<\/code><br \/>   <code>create  .kitchen.yml<\/code><br \/>   <code>create  test\/integration\/default<\/code><br \/>   <code>create  .gitignore<\/code><br \/>   <code>append  .gitignore<\/code><br \/>   <code>append  .gitignore<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">8. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c .kitchen.yml \u043a \u0432\u0438\u0434\u0443:<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>   <code>---<\/code><br \/>   <code>driver_plugin: vagrant<\/code><br \/>   <code>driver_config:<\/code><br \/>   <code>require_chef_omnibus: true<\/code><\/p>\n<p>   <code>platforms:<\/code><br \/>   <code> - name: ubuntu-12.04<\/code><br \/>   <code>driver_config:<\/code><br \/>   <code>box: opscode-ubuntu-12.04<\/code><br \/>   <code>box_url: https:\/\/opscode-vm-bento.s3.amazonaws.com\/vagrant\/opscode_ubuntu-12.04_provisionerless.box<\/code><\/p>\n<p>   <code>suites:<\/code><br \/>   <code>- name: default<\/code><br \/>   <code>run_list: [&quot;recipe[sendmail]&quot;]<\/code><br \/>   <code>attributes: {}<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">9. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442:<\/b><\/p>\n<div class=\"spoiler_text\">   <code> C:\\kitchen&gt;kitchen test<\/code><br \/>   <code>.....................<\/code><br \/>   <code>\u2190[0m[2014-01-11T10:17:15+00:00] INFO: *** Chef 11.8.2 ***\u2190[36m<\/code><br \/>   <code>\u2190[0m[2014-01-11T10:17:15+00:00] INFO: Chef-client pid: 1169\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:16+00:00] INFO: Setting the run_list to [&quot;recipe[sendmail]&quot;] from JSON\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:16+00:00] INFO: Run List is [recipe[sendmail]]\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:16+00:00] INFO: Run List expands to [sendmail]\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:16+00:00] INFO: Starting Chef Run for default-ubuntu-1204\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:16+00:00] INFO: Running start handlers\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:16+00:00] INFO: Start handlers complete.\u2190[36m<\/code><br \/>  <code>    \u2190[0mCompiling Cookbooks...\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0mConverging 2 resources\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0mRecipe: sendmail::default\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m  * package[sendmail] action install\u2190[0m[2014-01-11T10:17:16+00:00] INFO: Processing package[sendmail] action install(sendmail::default line 1)\u2190[36m<\/code><br \/>  <code>    \u2190[0m\u2190[32m\u2190[36m<\/code><br \/>  <code>    \u2190[0m    - install version 8.14.4-2ubuntu2 of package sendmail\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m  * service[sendmail] action enable\u2190[0m[2014-01-11T10:17:27+00:00] INFO: Processing service[sendmail] action enable (sendmail::default line 6)\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:27+00:00] INFO: service[sendmail] enabled\u2190[36m<\/code><br \/>  <code>    \u2190[0m\u2190[32m\u2190[36m<\/code><br \/>  <code>    \u2190[0m    - enable service service[sendmail]\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m  * service[sendmail] action start\u2190[0m[2014-01-11T10:17:27+00:00] INFO: Processing service[sendmail] action start (sendmail::default line 6)\u2190[36m<\/code><br \/>  <code>    \u2190[0m (up to date)\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:27+00:00] INFO: Chef Run complete in 11.695990777 seconds\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:27+00:00] INFO: Running report handlers\u2190[36m<\/code><br \/>  <code>    \u2190[0m[2014-01-11T10:17:27+00:00] INFO: Report handlers complete\u2190[36m<\/code><br \/>  <code>    \u2190[0mChef Client finished, 2 resources updated\u2190[0m\u2190[36m<\/code><br \/>  <code>    \u2190[0m\u2190[36m       Finished converging &lt;default-ubuntu-1204&gt; (0m29.54s).<\/code><br \/>  <code>    \u2190[0m\u2190[36m-----&gt; Setting up &lt;default-ubuntu-1204&gt;<\/code><br \/>  <code>    \u2190[0m\u2190[36m       Finished setting up &lt;default-ubuntu-1204&gt; (0m0.00s).<\/code><br \/>  <code>    \u2190[0m\u2190[36m-----&gt; Verifying &lt;default-ubuntu-1204&gt;<\/code><br \/>  <code>    \u2190[0m\u2190[36m       Finished verifying &lt;default-ubuntu-1204&gt; (0m0.00s).<\/code><br \/>  <code>    \u2190[0m\u2190[36m-----&gt; Destroying &lt;default-ubuntu-1204&gt;<\/code><br \/>  <code>    \u2190[0m\u2190[36m       [kitchen::driver::vagrant command] BEGIN (vagrant destroy -f)<\/code><br \/>  <code>    \u2190[0m\u2190[36m       [default] Forcing shutdown of VM...<\/code><br \/>  <code>    \u2190[0m\u2190[36m       [default] Destroying VM and associated drives...<\/code><br \/>  <code>    \u2190[0m\u2190[36m       [kitchen::driver::vagrant command] END (0m0.00s)<\/code><br \/>  <code>    \u2190[0m\u2190[36m       Vagrant instance &lt;default-ubuntu-1204&gt; destroyed.<\/code><br \/>  <code>    \u2190[0m\u2190[36m       Finished destroying &lt;default-ubuntu-1204&gt; (0m4.85s).<\/code><br \/>  <code>    \u2190[0m\u2190[36m       Finished testing &lt;default-ubuntu-1204&gt; (1m16.33s).<\/code><br \/>  <code>    \u2190[0m-----&gt; Kitchen is finished. (1m16.69s)<\/code><\/p>\n<p>   \u0412\u0438\u0434\u0438\u043c \u0447\u0442\u043e chef-client \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0430\u043a\u0435\u0442 sendmail \u0431\u044b\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.<br \/>   \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f.<br \/>   \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u043e\u0442\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b\u043c.<br \/>   \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430. <\/div>\n<\/div>\n<h4>\u0428\u0410\u0413 3. Berkshelf<\/h4>\n<p>  Berkshelf \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432.<br \/>  \u0422.\u043a. \u043c\u044b \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u2014 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">1. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f vagrant:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>C:\\kitchen&gt;vagrant plugin install vagrant-berkshelf<\/code><br \/>  <code>Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...<\/code><br \/>  <code>Installed the plugin 'vagrant-berkshelf (1.3.7)'!<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">2. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 chef-cook:<\/b><\/p>\n<div class=\"spoiler_text\">   <code>C:\\kitchen&gt;berks init chef-cook<\/code><br \/>   <code>create  chef-cook\/Berksfile<\/code><br \/>   <code>create  chef-cook\/Thorfile<\/code><br \/>   <code>create  chef-cook\/.gitignore<\/code><br \/>   <code>run  git init from &quot;.\/chef-cook&quot;<\/code><br \/>  <code>C:\/Ruby193\/bin\/berks: No such file or directory - git init<\/code><br \/>   <code>create  chef-cook\/Gemfile<\/code><br \/>   <code>create  .kitchen.yml<\/code><br \/>   <code>append  Thorfile<\/code><br \/>   <code>create  test\/integration\/default<\/code><br \/>   <code>append  Gemfile<\/code><br \/>   <code>append  Gemfile<\/code><br \/>  <code>You must run `bundle install' to fetch any new gems.<\/code><br \/>   <code>create  chef-cook\/Vagrantfile<\/code><br \/>  <code>Successfully initialized<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">3. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443(\u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 gem \u0443\u0436\u0435 \u0441\u0442\u043e\u044f\u0442):<\/b><\/p>\n<div class=\"spoiler_text\"><code>cd C:\\kitchen\\chef-cook && bundle install<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0443\u043a\u0431\u0443\u043a:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>mkdir C:\\kitchen\\chef-cook\\cookbooks && cd C:\\kitchen\\chef-cook\\cookbooks && berks cookbook mytest<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">5. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0448 \u0440\u0435\u0446\u0435\u043f\u0442 \u0432 runlist .kitchen.yml:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>C:\\kitchen\\chef-cook\\.kitchen.yml<\/code><br \/>  <code>---<\/code><br \/>  <code>suites:<\/code><br \/>  <code>- name: default<\/code><br \/>   <code> run_list: [&quot;recipe[mytest]&quot;]<\/code><br \/>  <code>  attributes: {}<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">6. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442:<\/b><\/p>\n<div class=\"spoiler_text\"> <code>C:\\kitchen\\chef-cook&gt;kitchen test<\/code><br \/>   \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443: <br \/>  <code>ERROR: Cookbook mytest not found. If you're loading mytest from another cookbook, make sure you configure the dependency in your metadata<\/code><\/p>\n<p>  \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0435\u0451 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 Berksfile \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p>  <code>cookbook 'mytest', :path =&gt; 'cookbooks\/mytest'<\/code><br \/>   \u0434\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0433\u0434\u0435 Berkshelf \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u043a\u0431\u0443\u043a. <\/div>\n<\/div>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043c \u0437\u0430\u0434\u0430\u0447\u0443, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u043a\u0443\u043a\u0431\u0443\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 sendmail.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">1. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0440\u0435\u0446\u0435\u043f\u0442 C:\\kitchen\\chef-cook\\mytest\\default.rb c\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/b><\/p>\n<div class=\"spoiler_text\"><code>include_recipe 'sendmail'<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">2. \u0410 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 C:\\kitchen\\chef-cook\\mytest\\metadata.rb \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>depends 'sendmail'<\/code><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">3. \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043e\u043f\u044f\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c Berksfile \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/b><\/p>\n<div class=\"spoiler_text\">  <code>site :opscode<\/code><br \/>  <code>cookbook 'sendmail'<\/code><br \/>  <code>cookbook 'mytest', :path =&gt; 'cookbooks\/mytest'<\/code><\/p>\n<p>  \u0422.\u0435. \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u00abcookbook &#8216;sendmail&#8217;\u00bb, \u0434\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 Berkshelf \u043c\u043e\u0436\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u0443\u043a\u0431\u0443\u043a sendmail \u0441 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.<\/p><\/div>\n<\/div>\n<p>   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u0443\u043a\u0431\u0443\u043a\u0430:<\/b><\/p>\n<div class=\"spoiler_text\"><code>C:\\kitchen\\chef-cook&gt;kitchen conerge<\/code><br \/>  <code>....<\/code><br \/>  <code>\u2190[0m\u2190[36m       Resolving cookbook dependencies with Berkshelf...<\/code><br \/>  <code>\u2190[0mInstalling sendmail (0.1.0) from site: 'http:\/\/cookbooks.opscode.com\/api\/v1\/cookbooks'<\/code><br \/>  <code>Using mytest (0.1.0) at '.\/cookbooks\/mytest'<\/code><br \/>  <code>....<\/code><br \/>  <code>\u2190[0m  * package[sendmail] action install\u2190[0m[2014-01-15T08:00:44+00:00] INFO: Processing package[sendmail] action install (sendmail::default line 1)\u2190[<\/code><br \/>  <code>....<\/code><br \/>  <code>\u2190[0mChef Client finished, 2 resources updated\u2190[0m\u2190[36m<\/code><br \/>  <code>\u2190[0m\u2190[36m       Finished converging &lt;default-ubuntu-1204&gt; (0m18.25s).<\/code><br \/>  <code>\u2190[0m-----&gt; Kitchen is finished. (0m18.68s)<\/code><\/p>\n<p>  \u0418\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u043a\u0443\u043a\u0431\u0443\u043a sendmail \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u043b\u0441\u044f \u0438 \u043f\u0430\u043a\u0435\u0442 sendmail \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.<\/p><\/div>\n<\/div>\n<p>  \u041f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043d\u0430\u043f\u0438\u0448\u0443 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Berkshelf <\/p>\n<h6>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/h6>\n<p>  <a href=\"http:\/\/www.getchef.com\/\">Chef HomePage<\/a><br \/>  <a href=\"http:\/\/kitchen.ci\/\">Test Kitchen HomePage<\/a><br \/>  <a href=\"http:\/\/berkshelf.com\/\">Berkshelf HomePage<\/a><br \/>  <a href=\"http:\/\/community.opscode.com\/cookbooks\">Opscode community cookbooks<\/a><br \/>  \u0411\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043e \u0441\u0430\u043c\u043e\u043c chef&#8217;\u0435 \u043f\u0438\u0448\u0435\u0442 <a href=\"http:\/\/habrahabr.ru\/users\/mistic\/\" class=\"user_link\">MistiC<\/a> <a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/208542\/\">\u0442\u0443\u0442<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/209238\/\"> http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/209238\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/2d1\/d80\/997\/2d1d80997311a46a4eceef2e0fb56713.png\" align=\"left\" alt=\"image\"\/> \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u044b! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432. \u0421 \u0440\u043e\u0441\u0442\u043e\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043a\u0443\u043a\u0431\u0443\u043a\u0438. \u0420\u0435\u0448\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0442\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u043a foodcritics, chefspec, minitest, test kitchen \u0438 \u043f\u0440. <br \/>   \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e test kitchen. \u0414\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u0445. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c\u00bb \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043b\u0430\u0443\u0434 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a Amazon EC2, Blue Box, CloudStack, Digital Ocean, Rackspace, OpenStack, Vagrant, Docker, LXC containers \u0438 \u0434\u0440. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u043f\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0441\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Bats, shUnit2, RSpec, Serverspec \u0438 \u043f\u0440.<br \/>   \u041d\u0430\u0441 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 Berkshelf \u0438 Librarian-Chef, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0438\u0445 \u043a\u0443\u043a\u0431\u0443\u043a\u043e\u0432.<br \/>   \u0422\u0430\u043a \u0436\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 test kitchen \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0442\u0430\u043a\u0438\u0435 \u043a\u043c\u043e\u044c\u044e\u043d\u0438\u0442\u0438 \u043a\u0443\u043a\u0431\u0443\u043a\u0438 \u043a\u0430\u043a MySQL, nginx, Chef Server, runit \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u0443 testkitchen, vagrant, virualbox, berkshelf. <br \/>   \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u0442.\u043a. \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-209238","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/209238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209238"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/209238\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}