{"id":212085,"date":"2014-02-10T14:51:03","date_gmt":"2014-02-10T10:51:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=212085"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=212085","title":{"rendered":"<span class=\"post_title\">\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u041e\u0421 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Packer<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<em>Repetitio est mater studiorum<\/em><br \/>  \u0421\u0442\u0430\u0440\u0438\u043d\u043d\u0430\u044f \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u043e\u0432\u0438\u0446\u0430<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 Linux \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0440\u0435\u0434 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u0432, \u0438\u043b\u0438, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c <a href=\"http:\/\/vagrantup.com\/\">Vagrant<\/a>, \u0442\u043e \u0432\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u0442 \u041c\u0438\u0442\u0447\u0435\u043b\u0430 \u0425\u0430\u0448\u0438\u043c\u043e\u0442\u043e (\u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c Vagrant) \u2014 <a href=\"http:\/\/www.packer.io\/\">Packer<\/a>.<\/p>\n<p>  Packer \u2014 \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u041e\u0421 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0430\u0432\u043d\u043e <a href=\"http:\/\/www.jedi.be\/blog\/\">\u041f\u0430\u0442\u0440\u0438\u043a \u0414\u0435\u0431\u043e\u0438\u0437<\/a> (\u044d\u0442\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0442\u0435\u0440\u043c\u0438\u043d DevOps) \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/github.com\/jedi4ever\/veewee\">Veewee<\/a> \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0430 \u0434\u043b\u044f VirtualBox, KVM \u0438 VMWare.<\/p>\n<p>  Packer \u043f\u043e\u0448\u0435\u043b \u0434\u0430\u043b\u044c\u0448\u0435, \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432: <a href=\"http:\/\/www.packer.io\/docs\/builders\/amazon.html\">Amazon<\/a>,<a href=\"http:\/\/www.packer.io\/docs\/builders\/digitalocean.html\">DigitalOcean<\/a>, <a href=\"http:\/\/www.packer.io\/docs\/builders\/openstack.html\">OpenStack<\/a> \u0438 <a href=\"http:\/\/www.packer.io\/docs\/builders\/googlecompute.html\">GCE<\/a>. \u0422\u0430\u043a\u0436\u0435 Packer \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0434\u043b\u044f <a href=\"https:\/\/www.docker.io\/\">Docker<\/a>.<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043e\u0442\u0432\u0435\u0442\u0438\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u0437\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c\u0430<br \/>  \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (<a href=\"http:\/\/martinfowler.com\/bliki\/ImmutableServer.html\">Immutable Server<\/a>). \u041c\u044b \u0434\u0430\u0436\u0435 <a href=\"http:\/\/devopsdeflope.ru\/posts\/2013\/003.html\">\u043f\u043e\u0441\u0432\u044f\u0442\u0438\u043b\u0438 \u0435\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u043f\u043e\u0434\u043a\u0430\u0441\u0442\u0430 \u0414\u0435\u0432\u043e\u043f\u0441 \u0414\u0435\u0444\u043b\u043e\u043f\u0435<\/a>. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c &quot;\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0441\u0442\u044c&quot; \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d. \u0422\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u0434\u0435\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u044b \u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0410 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u0437\u0430\u043d\u043e\u0432\u043e \u0441 \u043d\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  Packer \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u043c\u0430\u0448\u0438\u043d \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u0441 Ubuntu 12.04 \u0434\u043b\u044f VirtualBox, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">VirtaulBox<\/a> \u0438 <a href=\"http:\/\/www.packer.io\/downloads.html\">packer \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u0442\u0430\u0440\u0448\u0435 0.5.1<\/a>. \u0423\u0432\u0435\u0440\u0435\u043d, \u044d\u0442\u043e\u0442 \u0448\u0430\u0433 \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f packer, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">{   &quot;provisioners&quot;: [     {       &quot;type&quot;: &quot;shell&quot;,       &quot;scripts&quot;: [         &quot;scripts\/postinstall.sh&quot;       ],       &quot;override&quot;: {         &quot;virtualbox-iso&quot;: {           &quot;execute_command&quot;: &quot;echo &#39;vagrant&#39;|sudo -S sh &#39;{{.Path}}&#39;&quot;         }       }     }   ],   &quot;builders&quot;: [     {       &quot;type&quot;: &quot;virtualbox-iso&quot;,       &quot;boot_command&quot;: [         &quot;&lt;esc&gt;&lt;esc&gt;&lt;enter&gt;&lt;wait&gt;&quot;,         &quot;\/install\/vmlinuz noapic preseed\/url=http:\/\/{{ .HTTPIP }}:{{ .HTTPPort }}\/preseed.cfg &lt;wait&gt;&quot;,         &quot;debian-installer=en_US auto locale=en_US kbd-chooser\/method=us &lt;wait&gt;&quot;,         &quot;hostname=ubuntu &lt;wait&gt;&quot;,         &quot;fb=false debconf\/frontend=noninteractive &lt;wait&gt;&quot;,         &quot;keyboard-configuration\/modelcode=SKIP keyboard-configuration\/layout=USA keyboard-configuration\/variant=USA console-setup\/ask_detect=false &lt;wait&gt;&quot;,         &quot;initrd=\/install\/initrd.gz -- &lt;enter&gt;&lt;wait&gt;&quot;       ],       &quot;boot_wait&quot;: &quot;4s&quot;,       &quot;disk_size&quot;: 51200,       &quot;guest_os_type&quot;: &quot;Ubuntu_64&quot;,       &quot;http_directory&quot;: &quot;http&quot;,       &quot;iso_checksum_type&quot;: &quot;md5&quot;,       &quot;iso_url&quot;: &quot;http:\/\/releases.ubuntu.com\/precise\/ubuntu-12.04.4-server-amd64.iso&quot;,       &quot;iso_checksum&quot;: &quot;e83adb9af4ec0a039e6a5c6e145a34de&quot;,       &quot;ssh_username&quot;: &quot;vagrant&quot;,       &quot;ssh_password&quot;: &quot;vagrant&quot;,       &quot;ssh_port&quot;: 22,       &quot;http_directory&quot; : &quot;.&quot;,       &quot;http_port_min&quot; : 9001,       &quot;http_port_max&quot; : 9001,       &quot;ssh_wait_timeout&quot;: &quot;10000s&quot;,       &quot;shutdown_command&quot;: &quot;echo &#39;shutdown -P now&#39; &gt; shutdown.sh; echo &#39;vagrant&#39;|sudo -S sh &#39;shutdown.sh&#39;&quot;,       &quot;guest_additions_path&quot;: &quot;VBoxGuestAdditions_{{.Version}}.iso&quot;,       &quot;virtualbox_version_file&quot;: &quot;.vbox_version&quot;,       &quot;vboxmanage&quot;: [         [           &quot;modifyvm&quot;,           &quot;{{.Name}}&quot;,           &quot;--memory&quot;,           &quot;512&quot;         ],         [           &quot;modifyvm&quot;,           &quot;{{.Name}}&quot;,           &quot;--cpus&quot;,           &quot;1&quot;         ]       ]     }   ],   &quot;post-processors&quot;: [     &quot;vagrant&quot;   ] } <\/code><\/pre>\n<p>  \u0412 \u043d\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e \u043c\u044b \u0431\u0435\u0440\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 Ubuntu (\u043a\u043b\u044e\u0447 <code>iso_url<\/code>), \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u0437 <code>preseed.cfg<\/code>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 <code>postinstall.sh<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0432\u0438\u0442 chef \u0438 \u0433\u043e\u0442\u043e\u0432\u0438\u0442 \u0431\u043e\u043a\u0441 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0430\u0433\u0440\u0430\u043d\u0442\u043e\u043c. \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/github.com\/express42-cookbooks\/testo\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a> (\u0432 \u043d\u0435\u043c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 <a href=\"https:\/\/github.com\/express42-cookbooks\/testo\/tree\/master\/packer\">\u043f\u0430\u043f\u043a\u0435 packer<\/a>).<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>packer build ubuntu64.json<\/code>, \u0438 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c, \u043a\u0430\u043a \u0438\u043d\u0441\u0442\u0430\u043b\u044f\u0442\u043e\u0440 \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0442\u0430\u0432\u0438\u0442 \u0423\u0431\u0443\u043d\u0442\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f15\/f83\/303\/f15f83303a67202c2645510a3d25616a.jpg\" alt=\"\u0421\u0442\u0430\u0432\u044c\u0441\u044f \u0423\u0431\u0443\u043d\u0442\u043e\u0447\u043a\u0430\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b <code>packer_virtualbox-iso_virtualbox.box<\/code> \u2014 \u043e\u0431\u0440\u0430\u0437, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 Vagrant.<\/p>\n<p>  \u0423\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e Vagrant \u043c\u043e\u0436\u043d\u043e \u0432 <a href=\"http:\/\/habrahabr.ru\/company\/express42\/blog\/206768\/\">\u043d\u0430\u0448\u0435\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>. \u0410 \u0435\u0449\u0435 15 \u043c\u0430\u0440\u0442\u0430, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0432 \u043e\u0444\u0438\u0441\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <a href=\"http:\/\/www.parallels.com\/ru\/\">Parallels<\/a> \u0441\u043e\u0441\u0442\u043e\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u0432\u0441\u0442\u0440\u0435\u0447\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 <a href=\"http:\/\/www.meetup.com\/DevOps-Moscow-in-Russian\/\">DevOps Moscow<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u0432\u0430\u0433\u0440\u0430\u043d\u0442\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0435\u0441\u044c \u043d\u0430 <a href=\"http:\/\/www.meetup.com\/DevOps-Moscow-in-Russian\/\">meetup.com<\/a>, \u0442\u043e \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0445 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0432\u0430\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>  \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0441\u0432\u0435\u0436\u0435\u043d\u044c\u043a\u0438\u0439 \u0431\u043e\u043a\u0441 \u0432 Vagrant \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0447\u0438\u0441\u0442\u043e\u0435 Vagrant \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<pre><code>vagrant box add from_packer packer_virtualbox-iso_virtualbox.box cd .. vagrant init <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 <code>Vagrantfile<\/code>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <code>config.vm.box = &quot;from_packer&quot;<\/code> (\u0432\u0441\u0435 \u044d\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438).<\/p>\n<pre><code>vagrant up vagrant ssh Welcome to Ubuntu 12.04.4 LTS (GNU\/Linux 3.8.0-29-generic x86_64)  * Documentation:  https:\/\/help.ubuntu.com\/ Last login: Sat Feb  8 18:01:24 2014 from 10.0.2.2 vagrant@ubuntu:~$ <\/code><\/pre>\n<p>  \u0418\u0442\u0430\u043a, \u043b\u0435\u0433\u043a\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e, \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0423\u0431\u0443\u043d\u0442\u0430 12.04 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0430\u043c\u044b\u043c \u0441\u0432\u0435\u0436\u0438\u043c \u0448\u0435\u0444\u043e\u043c.<\/p>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0441\u043a\u0440\u0438\u043f\u0442 <code>postinstall.sh<\/code> \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u043a <a href=\"http:\/\/www.packer.io\/docs\/provisioners\/chef-solo.html\">chef-solo<\/a>, <a href=\"http:\/\/www.packer.io\/docs\/provisioners\/puppet-masterless.html\">puppet apply<\/a> \u0438 <a href=\"http:\/\/www.packer.io\/docs\/templates\/provisioners.html\">\u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0435\u0449\u0435<\/a>.<\/p>\n<p>  \u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c packer \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0440\u0435\u0434 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0438 \u043c\u0443\u0442\u043e\u0440\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c.<\/p>\n<p>  \u0414\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0441\u0442\u0430\u0440\u0442\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Chef \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 packer \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Linux \u0438 \u043d\u0430\u0437\u0432\u0430\u043b\u0430 \u0438\u0445 <a href=\"https:\/\/github.com\/opscode\/bento\">bento<\/a>.<\/p>\n<p>  \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0447\u043b\u0435\u043d\u044b \u044d\u043a\u0438\u043f\u0430\u0436\u0430 \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0440\u0430\u0431\u043b\u044f \u00ab<a href=\"http:\/\/express42.com\/\">\u042d\u043a\u0441\u043f\u0440\u0435\u0441\u0441 42<\/a>\u00bb 22 \u0438 23 \u043c\u0430\u0440\u0442\u0430 \u0432\u044b\u0441\u0430\u0434\u044f\u0442\u0441\u044f \u0443 \u0417\u043b\u044b\u0445 \u041c\u0430\u0440\u0441\u0438\u0430\u043d, \u0447\u0442\u043e\u0431\u044b <a href=\"http:\/\/brainwashing.pro\/devops\">\u043f\u0440\u043e\u043c\u044b\u0442\u044c \u043c\u043e\u0437\u0433\u0438 \u0432\u0441\u0435\u043c \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u043c<\/a>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c DevOps \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438 \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0438 \u0441 \u0412\u0435\u043b\u0438\u043a\u0438\u043c \u041a\u043e\u0441\u043c\u043e\u0441\u043e\u043c.<\/p>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u0442\u0435\u043c\u0435 Packer \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438.<\/p>\n<ul>\n<li><a href=\"http:\/\/pretengineer.com\/post\/packer-vagrant-infra\/\">\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u0435\u043d Packer, \u0430 \u043a\u043e\u0433\u0434\u0430 \u2014 Vagrant<\/a><\/li>\n<li><a href=\"http:\/\/java.dzone.com\/articles\/using-packer-create-vagrant\">\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442 \u0441 Packer \u0434\u043b\u044f Ubuntu \u0438 CentOS \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0444\u043d\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/a><\/li>\n<li><a href=\"https:\/\/www.digitalocean.com\/community\/articles\/how-to-install-and-get-started-with-packer-on-an-ubuntu-12-04-vps\">\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f Packer \u043e\u0442 DigitalOcean<\/a><\/li>\n<li><a href=\"http:\/\/blog.codeship.io\/2013\/11\/07\/building-vagrant-machines-with-packer.html\">\u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0442 Codeship.io, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u041c\u0438\u0442\u0447\u0435\u043b\u043e\u043c \u0425\u0430\u0448\u0438\u043c\u043e\u0442\u043e<\/a><\/li>\n<\/ul>\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\/express42\/blog\/212085\/\"> http:\/\/habrahabr.ru\/company\/express42\/blog\/212085\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<em>Repetitio est mater studiorum<\/em><br \/>  \u0421\u0442\u0430\u0440\u0438\u043d\u043d\u0430\u044f \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u043e\u0432\u0438\u0446\u0430<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 Linux \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0440\u0435\u0434 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u0432, \u0438\u043b\u0438, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c <a href=\"http:\/\/vagrantup.com\/\">Vagrant<\/a>, \u0442\u043e \u0432\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u0442 \u041c\u0438\u0442\u0447\u0435\u043b\u0430 \u0425\u0430\u0448\u0438\u043c\u043e\u0442\u043e (\u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c Vagrant) \u2014 <a href=\"http:\/\/www.packer.io\/\">Packer<\/a>.<\/p>\n<p>  Packer \u2014 \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u041e\u0421 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f.<\/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-212085","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212085","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=212085"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212085\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}