{"id":282215,"date":"2016-12-08T22:40:03","date_gmt":"2016-12-08T19:40:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282215"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282215","title":{"rendered":"\u041e\u043f\u044b\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f Infrastructure-as-Code \u0432 VMware. \u0427\u0430\u0441\u0442\u044c 1: \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b"},"content":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c.<\/p>\n<p>  \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043a\u0430\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u0430 Infrastructure-as-Code \u0432 \u043d\u0430\u0448\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 VMware VSphere.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u043c\u0438 Puppet \u0434\u043b\u044f Linux, \u0435\u0441\u0442\u044c (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442) DSC \u0434\u043b\u044f Windows Server.<br \/>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f Linux \u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e. \u041c\u044b \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0448\u0438\u043d \u0432 nodes.yaml, \u043c\u044b \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0440\u043e\u043b\u0438 \u0432 Hiera, \u0441\u0442\u0440\u043e\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0438 (\u0438\u043b\u0438 \u0431\u0435\u0440\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0435), \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c PXE, IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0440\u0430\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0438\u0437 DHCP \u043f\u043e MAC \u0430\u0434\u0440\u0435\u0441\u0443. <br \/>  \u0422\u043e \u0435\u0441\u0442\u044c \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043a\u0430\u043a Linux \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442, \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0433\u0434\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0433\u043e\u0442\u043e\u0432\u0430 \u043a \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u2014 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0443\u0433\u0430\u0434\u0430\u0442\u044c, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u0439 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e? \u0412\u0435\u0440\u043d\u043e, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0432 VSphere.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043f\u043e\u0434\u043d\u044f\u043b \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441, \u043c\u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u201c\u041a \u0447\u0435\u0440\u0442\u0443!\u201d \u2014 \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f \u0438 \u043f\u043e\u0441\u043f\u043e\u0440\u0438\u043b \u043d\u0430 \u044f\u0449\u0438\u043a \u043f\u0438\u0432\u0430, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044e: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043b\u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0434\u0435\u043b\u0430\u0435\u0442 Pull Request, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443 \u043d\u0430\u0441 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b (\u044f\u0434\u0440\u0430, \u043f\u0430\u043c\u044f\u0442\u044c, \u0441\u0435\u0442\u044c, \u0448\u0430\u0431\u043b\u043e\u043d \u0438 \u0442.\u0434.) \u2014 \u0434\u0430\u043b\u0435\u0435 \u043d\u0435\u043a\u0430\u044f \u043c\u0430\u0433\u0438\u044f \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 VSphere \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043c\u0430\u0448\u0438\u043d\u0443, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u0432 \u0444\u0430\u0439\u043b\u0435.<\/p>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u043d\u0430\u0448\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0442\u044b \u043f\u043e\u043d\u044f\u043b \u0441 \u0447\u0435\u043c \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e.<br \/>  \u0423 \u043d\u0430\u0441 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 On-Premise \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f VMware VSphere \u2014 \u043f\u0430\u0440\u043e\u0447\u043a\u0430 \u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u043e\u0432, datastore-\u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e Resource Pool\u2019\u043e\u0432 (RP) \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443. \u0427\u043b\u0435\u043d\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 RP, \u0440\u0435\u0431\u044f\u0442\u0430-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0449\u0438\u043a\u0438 \u0438\u043c \u0432 \u044d\u0442\u043e\u043c \u043d\u0435 \u043c\u0435\u0448\u0430\u044e\u0442 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c \u0443\u0431\u0438\u0440\u0430\u0442\u044c \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b (\u0440\u0435\u0441\u0443\u0440\u0441\u044b-\u0442\u043e \u043d\u0435 \u0440\u0435\u0437\u0438\u043d\u043e\u0432\u044b\u0435).<br \/>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c Windows \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438, Linux \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438, \u043c\u0430\u0441\u0448\u0442\u0430\u0431 \u0437\u0430\u0434\u0430\u0447 \u043e\u0433\u0440\u043e\u043c\u0435\u043d \u2014 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u044b, \u0440\u0435\u0432\u0435\u0440\u0441 \u043f\u0440\u043e\u043a\u0441\u0438, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0438, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0434\u043e\u043c\u0435\u043d\u0430, \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0435\u0442 \u0438\u043c \u043a\u043e\u043d\u0446\u0430 \u0438 \u043a\u0440\u0430\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u044f \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u0442\u0435\u0431\u0435, \u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c, \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u0438.<\/p>\n<h2>\u042d\u043c\u043f\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0443\u0442\u0435\u043c\u2026<\/h2>\n<h3>Ansible vsphere_guest<\/h3>\n<p>  \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 <a href=\"https:\/\/habrahabr.ru\/post\/316700\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u044f \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u043b\u044e Ansible \u0438 \u0432 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u044f \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043c\u043e\u0442\u0440\u044e, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. <br \/>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c vsphere_guest \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438. \u0422\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e. \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u043e\u0439 \u043f\u043b\u0435\u0439\u0431\u0443\u043a createvm.yaml<\/p>\n<pre><code>--- - name: Create a VM in resource pool   hosts: localhost   connection: local   gather_facts: False   vars_prompt:   - name: &quot;user&quot;     prompt: &quot;Enter your username to virtualcenter&quot;     private: no   - name: &quot;password&quot;     prompt: &quot;Enter your password to virtualcenter&quot;     private: yes   - name: &quot;guest&quot;       prompt: &quot;Enter you guest VM name: &quot;     private: no   tasks:   - name: create VM     vsphere_guest:       vcenter_hostname: vcenter.example.com       validate_certs: no       username: '{{ user }}'       password: '{{ password }}'       guest: '{{ guest }}'       state: powered_off       vm_extra_config:         vcpu.hotadd: yes         mem.hotadd: yes         notes: This is a test VM       vm_disk:         disk1:           size_gb: 10           type: thick           datastore: mydatastore       vm_nic:         nic1:           type: vmxnet3           network: mynetwork           network_type: standard       vm_hardware:         memory_mb: 1024         num_cpus: 1         osid: centos64Guest         scsi: paravirtual       resource_pool: &quot;\/Resources\/MyResourcePool&quot;       esxi:         datacenter: mysite         #hostname: myesxhost01  <\/code><\/pre>\n<p>  \u042f \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e hostname esxi \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u044f \u0441\u043e\u0437\u0434\u0430\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 RP, \u0430 \u043d\u0435 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435. DRS \u0441\u0430\u043c \u0440\u0435\u0448\u0438\u0442, \u043a\u0443\u0434\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c.<br \/>  \u0415\u0441\u043b\u0438 \u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043f\u043b\u0435\u0439\u0431\u0443\u043a, \u043e\u043d \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 hostname \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d. \u0415\u0441\u043b\u0438 \u044f \u0435\u0433\u043e \u0440\u0430\u0441\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e, \u0442\u043e \u043e\u043d \u043f\u043e\u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0430\u0432 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u043d\u0430 esx \u0445\u043e\u0441\u0442\u0435 (\u0447\u0442\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0442.\u043a. \u043f\u0440\u0430\u0432\u0430 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 RP). \u042f \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 <a href=\"https:\/\/github.com\/ansible\/ansible-modules-core\/issues\/5617\">issue<\/a>, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 Ansible \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u044f\u0442, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439.<\/p>\n<h3> Terraform <\/h3>\n<p>  \u0418\u043d\u0430\u044f \u0442\u0443\u043b\u0437\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043c\u0435\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0432 VMware \u044d\u0442\u043e Terraform, \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043e\u0442 HashiCorp. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043e\u043d \u0437\u0430\u0442\u043e\u0447\u0435\u043d \u043f\u043e\u0434 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 Packer \u0438 \u0434\u0435\u043f\u043b\u043e\u0438\u0442 \u0432 AWS, \u043d\u043e \u043d\u0430\u0448\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u043d \u0442\u043e\u0436\u0435 \u0440\u0435\u0448\u0430\u0435\u0442. \u0412\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0444\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439:<\/p>\n<pre><code>provider &quot;vsphere&quot; {   user           = \u201cmylogin@example.com&quot;   password       = &quot;${var.vsphere_password}&quot;   vsphere_server = \u201cvirtualcenter.example.com&quot;   allow_unverified_ssl = &quot;true&quot; }  resource &quot;vsphere_virtual_machine&quot; &quot;test&quot; {   name   = &quot;${var.machine_name}&quot;   vcpu   = 1   memory = 1024   domain = \u201ctest.example.com\u201d   datacenter = &quot;mysite&quot;   resource_pool = &quot;Production Cluster #1\/Resources\/myresourcepool&quot;      network_interface {       label = &quot;test&quot;       ipv4_address = &quot;192.168.1.2&quot;       ipv4_prefix_length = &quot;24&quot;       ipv4_gateway = &quot;192.168.1.1&quot;   }    disk {    datastore = &quot;${var.datastore}&quot;    size = &quot;10&quot;    name = &quot;${var.datastore}\/${var.machine_name}\/${var.machine_name}.vmdk&quot;    template = &quot;mytemplate&quot;   } } <\/code><\/pre>\n<p>  variables.tf  <\/p>\n<pre><code>variable &quot;vsphere_password&quot; {} variable &quot;machine_name&quot; {     type = &quot;string&quot;     default = &quot;test&quot; } variable &quot;datastore&quot; {     type = &quot;string&quot;     default = &quot;mysite\/mydatastore&quot; } <\/code><\/pre>\n<p>  terraform plan \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e.<\/p>\n<pre><code class=\"bash\"> $ terraform plan var.vsphere_password   Enter a value:  supersecurepassword  Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.   The Terraform execution plan has been generated and is shown below. Resources are shown in alphabetical order for quick scanning. Green resources will be created (or destroyed and then created if an existing resource exists), yellow resources are being changed in-place, and red resources will be destroyed. Cyan entries are data sources to be read.  Note: You didn't specify an &quot;-out&quot; parameter to save this plan, so when &quot;apply&quot; is called, Terraform can't guarantee this is what will execute.  + vsphere_virtual_machine.test     datacenter:                             &quot;mysite&quot;     detach_unknown_disks_on_delete:         &quot;false&quot;     disk.#:                                 &quot;1&quot;     disk.1370406802.bootable:               &quot;&quot;     disk.1370406802.controller_type:        &quot;scsi&quot;     disk.1370406802.datastore:              &quot;&quot;     disk.1370406802.iops:                   &quot;&quot;     disk.1370406802.keep_on_remove:         &quot;&quot;     disk.1370406802.key:                    &quot;&lt;computed&gt;&quot;     disk.1370406802.name:                   &quot;&quot;     disk.1370406802.size:                   &quot;&quot;     disk.1370406802.template:               &quot;mytemplate&quot;     disk.1370406802.type:                   &quot;eager_zeroed&quot;     disk.1370406802.uuid:                   &quot;&lt;computed&gt;&quot;     disk.1370406802.vmdk:                   &quot;&quot;     domain:                                 \u201ctest.example.com\u201d     enable_disk_uuid:                       &quot;false&quot;     linked_clone:                           &quot;false&quot;     memory:                                 &quot;1024&quot;     memory_reservation:                     &quot;0&quot;     name:                                   &quot;test&quot;     network_interface.#:                    &quot;1&quot;     network_interface.0.ip_address:         &quot;&lt;computed&gt;&quot;     network_interface.0.ipv4_address:       \u201c192.168.1.2&quot;     network_interface.0.ipv4_gateway:       &quot;192.168.1.1&quot;     network_interface.0.ipv4_prefix_length: &quot;24&quot;     network_interface.0.ipv6_address:       &quot;&lt;computed&gt;&quot;     network_interface.0.ipv6_gateway:       &quot;&lt;computed&gt;&quot;     network_interface.0.ipv6_prefix_length: &quot;&lt;computed&gt;&quot;     network_interface.0.label:              &quot;test&quot;     network_interface.0.mac_address:        &quot;&lt;computed&gt;&quot;     network_interface.0.subnet_mask:        &quot;&lt;computed&gt;&quot;     resource_pool:                          &quot;Production Cluster #1\/Resources\/myresourcepool&quot;     skip_customization:                     &quot;false&quot;     time_zone:                              &quot;Etc\/UTC&quot;     uuid:                                   &quot;&lt;computed&gt;&quot;     vcpu:                                   &quot;1&quot;   Plan: 1 to add, 0 to change, 0 to destroy. <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a \u0436\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u043e, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c IP \u0430\u0434\u0440\u0435\u0441, \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u0430\u0448\u0438\u043d\u043a\u0438 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430.<br \/>  \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u2026<\/p>\n<pre><code class=\"bash\">Error applying plan:  1 error(s) occurred:  * vsphere_virtual_machine.test: Datastore 'mysite\/mydatastore not found.  Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure. <\/code><\/pre>\n<p>  \u0425\u043c, \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d datastore. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u0443 \u043d\u0430\u0441 \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u0442\u0430\u043a \u0447\u0442\u043e \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e-\u0433\u0440\u044f\u0437\u043d\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u0432 \u043e\u0434\u043d\u0443 \u0438\u0437 \u043d\u043e\u0434 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<pre><code class=\"bash\"> Error applying plan:  1 error(s) occurred:  * vsphere_virtual_machine.test: Datastore 'mysite\/mydatastore\/mydatastore-vol01' not found.  Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.  <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0436\u2026 \u0441\u043d\u043e\u0432\u0430 \u043d\u0435\u0443\u0434\u0430\u0447\u0430.<br \/>  \u041f\u043e\u0437\u0436\u0435 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e Terraform \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 datastore-\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430\u043c\u0438. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/hashicorp\/terraform\/issues\/3721\">issue<\/a> \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u043d\u0430 GitHub \u043c\u043e\u0438\u043c \u043a\u043e\u043b\u043b\u0435\u0433\u043e\u0439, \u043d\u043e \u0443\u0441\u043f\u0435\u0445\u043e\u0432 \u043d\u0430 \u044d\u0442\u043e\u0442 \u043f\u043e\u043f\u0440\u0438\u0449\u0435 \u0442\u043e\u0436\u0435, \u0443\u0432\u044b, \u043d\u0435\u0442.<\/p>\n<h3>PowerCLI<\/h3>\n<p>  \u041f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u0432 \u043d\u0435\u0443\u0434\u0430\u0447\u0443 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0442 \u0442\u0440\u0435\u0442\u044c\u0438\u0445 \u043b\u0438\u0446, \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e.<br \/>  \u0412\u0435\u043d\u0434\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0434\u0432\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u2014 PowerCLI (\u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043d\u0430\u0434 Powershell) \u0438 vmware-cli (\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f *nix). <br \/>  \u0417\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c vmware-cli \u043d\u0430 CentOS 7 \u0438 OS X \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c (\u043e\u0434\u0438\u043d \u0441\u0442\u0440\u0430\u0434\u0430\u043b\u0435\u0446 \u0434\u0430\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"http:\/\/morgajel.net\/2015\/05\/20\/1676\">\u0431\u043b\u043e\u0433<\/a> \u043e\u0431 \u044d\u0442\u043e\u043c), \u043f\u043e\u0441\u0435\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 Ansible \u0438 Terraform, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a PowerCLI \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u041f\u0440\u0438\u0447\u0438\u043d\u044b \u043f\u0440\u043e\u0441\u0442\u044b \u2014 \u044f \u043d\u0435 \u0437\u043d\u0430\u044e Powershell \u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435, \u0447\u0442\u043e\u0431\u044b \u0441 \u043d\u0430\u0441\u043a\u043e\u043a\u0443 \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c, \u043f\u043b\u044e\u0441 \u044d\u0442\u043e \u0432\u044b\u043d\u0443\u0436\u0434\u0430\u0435\u0442 \u043c\u0435\u043d\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c windows \u043c\u0430\u0448\u0438\u043d\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0447\u0438\u0441\u0442\u044b\u043c provision\u2019\u043e\u043c. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0438\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0443 \u043c\u0435\u043d\u044f \u0438 \u043d\u0435\u0442.<br \/>  \u0411\u0435\u0433\u043b\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043b\u043e \u043c\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0432\u044b\u043a\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<pre><code>Param(     [string]$Name,     [string]$ResourcePool,     [string]$Location,     [int]$NumCPU,     [int]$MemoryGB,     [int]$DiskGB) $ErrorActionPreference = &quot;Stop&quot; Try {  $credential = Get-Credential Add-PSSnapin VMware.VimAutomation.Core [string] $username = $credential.GetNetworkCredential().UserName $username = 'example\\' + $username Connect-VIServer -Server virtualcenter.example.com -User $username -Password $credential.GetNetworkCredential().Password -Force   $params = @{     name = $Name     ResourcePool =  $ResourcePool     Location =  $Location      NumCPU = $NumCPU     MemoryGB = $MemoryGB     DiskGB = $DiskGB  }  new-vm @params   }  Catch [VMware.VimAutomation.ViCore.Types.V1.ErrorHandling.DuplicateName] {&quot;VM exists&quot;} <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435.<br \/>  \u0417\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code> .\\createvm.ps1 -Name mytestvm -ResourcePool myresourcepool -Location myteam -NumCPI 1 - MemoryGB 1 -DisckGB 10 <\/code><\/pre>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u043c\u0435\u043d\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u043f\u0435\u0440\u0435\u0438\u0433\u0440\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043c\u0430\u0448\u0438\u043d\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e cmdlet\u2019\u0430 new-vm.<br \/>  \u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0442 \u044d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<pre><code>[string] $username = $credential.GetNetworkCredential().UserName $username = 'example\\' + $username <\/code><\/pre>\n<p>  \u041f\u0443\u0441\u0442\u044c \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u044f\u0442 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 powershell \u0440\u0435\u0431\u044f\u0442\u0430, \u0435\u0441\u043b\u0438 \u044f \u043e\u0448\u0438\u0431\u0430\u044e\u0441\u044c.<br \/>  Get-Credential \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 \u043b\u043e\u0433\u0438\u043d\u0430, \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u0434\u043e\u043c\u0435\u043d\u0430 (\u0435\u0441\u043b\u0438 \u043e\u043d \u0435\u0441\u0442\u044c). \u041f\u0430\u0440\u043e\u043b\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 SecureString. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, PowerCLI \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0438 \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c Get-Credential, \u043d\u0438 \u0441 SecureString, \u043f\u043e\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0434\u0442\u0438 \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  \u0414\u043e\u0440\u043e\u0433\u043e\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c, \u0435\u0441\u043b\u0438 \u0443 \u0442\u0435\u0431\u044f \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u0432\u0441\u0442\u0430\u043d\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u0432 VMware, \u0442\u043e \u0443\u0447\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<ul>\n<li>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0448\u044c \u043b\u0438 \u0442\u044b Resource Pool\u2019\u044b<\/li>\n<li>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0448\u044c \u043b\u0438 \u0442\u044b Datastore \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0442\u0435\u0431\u044f single node ESX, \u0442\u043e \u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Ansible, \u0443 \u043d\u0435\u0433\u043e \u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u0438 \u043e\u043d \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u0438\u0439 \u0438 \u0448\u0443\u0441\u0442\u0440\u044b\u0439.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u0443 \u0442\u0435\u0431\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043a\u0430\u043a \u0438 \u0443 \u043d\u0430\u0441, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434, \u0430 \u043e\u0441\u0432\u0430\u0438\u0432\u0430\u0439 PowerCLI.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u043c\u043d\u0435\u0435, \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438 \u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044e, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044f\u0434\u0435\u0440 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 naming convention.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/317188\/\"> https:\/\/habrahabr.ru\/post\/317188\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c.<\/p>\n<p>  \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043a\u0430\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u0430 Infrastructure-as-Code \u0432 \u043d\u0430\u0448\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 VMware VSphere.<\/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-282215","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282215","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=282215"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282215\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}