{"id":310415,"date":"2020-09-24T09:00:39","date_gmt":"2020-09-24T09:00:39","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=310415"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=310415","title":{"rendered":"\u041a\u0430\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Terraform"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0e0\/355\/2be\/0e03552be588413c0e9bf571c9a0ff33.png\" width=\"2400\" height=\"1260\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 Terraform, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <a href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware<\/a> \u2014 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0442\u0440\u0438 VM \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439: \u043f\u0440\u043e\u043a\u0441\u0438, \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 CMS.<\/p>\n<p>\u041e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438 \u0432 \u0442\u0440\u0438 \u044d\u0442\u0430\u043f\u0430:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#1\" rel=\"noopener noreferrer nofollow\">Terraform \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#2\" rel=\"noopener noreferrer nofollow\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#3\" rel=\"noopener noreferrer nofollow\">\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/a><\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#31\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u0431\u043e\u0442\u0430 Terraform \u0441 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439<\/a><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"1\" id=\"1\"><\/a><\/p>\n<h3>1. Terraform \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435<\/h3>\n<p>Terraform \u2014 \u044d\u0442\u043e&nbsp; IaC (Infrastructure-as-Code) \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0434\u0430 .<\/p>\n<p>\u0412 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043c\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432:<\/p>\n<ul>\n<li>\n<p><strong>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u0442\u0435\u043d\u0430\u043d\u0442\u043e\u0432<\/strong> (\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434). \u041e\u0431\u044b\u0447\u043d\u043e, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u043e\u0432\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 &#171;\u043a\u043b\u0438\u043a\u043e\u0432&#187; \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430\u043c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0421 Terraform \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u041e\u0421 \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 ) \u0431\u0435\u0437 \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0430\u043c\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043b\u0430\u043d\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438<\/strong> \u043d\u043e\u0432\u043e\u0433\u043e \u0442\u0435\u043d\u043d\u0430\u043d\u0442\u0430. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0438 \u0432 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 \u043a\u0430\u043a\u043e\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430 \u0438\u043b\u0438 \u0438\u043d\u0430\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c. <\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c. <\/strong>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442<strong> <\/strong>\u043e\u0442 Amazon \u0438 Google Cloud, \u0434\u043e \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 VMware vCloud Director, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0445 \u0443\u0441\u043b\u0443\u0433\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 IaaS, SaaS \u0438 PaaS \u0440\u0435\u0448\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438<\/strong> \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0434\u043d\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u0434\u043e\u0431\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0435\u043c\u043e-\u0441\u0442\u0435\u043d\u0434\u043e\u0432<\/strong> \u043f\u043e\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0435\u043d\u0434\u044b \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u041f\u041e \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0430\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0441\u043e\u0437\u0434\u0430\u0432 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u043f\u043b\u0430\u043d \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<h4>&#171;\u0422\u0435\u0440\u0440\u0430\u0440\u0438\u0443\u043c&#187; Terraform   <\/h4>\n<p>\u041a\u0440\u0430\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043f\u0440\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435<\/p>\n<p><strong>Providers (\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b).<\/strong>&nbsp;<\/p>\n<p>\u0412 Terraform \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u043e\u0439 \u0442\u0438\u043f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b&nbsp; \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430. \u0421\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439 API \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f providers \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Azure \u0438\u043b\u0438 VMware vCloud Director.<\/p>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445. <\/p>\n<p><strong>Resources (\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432).<\/strong><\/p>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u0438\u043b\u0438 \u0441\u0435\u0442\u044f\u043c\u0438.&nbsp;<\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 VMware vCloud Director \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0443 \u043b\u044e\u0431\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 vCloud Director.&nbsp; \u0412\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u043c\u0443 \u0445\u043e\u0441\u0442\u0438\u043d\u0433-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443<\/p>\n<p><strong>Provisioners.<\/strong><\/p>\n<p>\u042d\u0442\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e provisioners \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e SSH, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442.&nbsp;<\/p>\n<p><strong>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 Input \u0438 Output.<\/strong><\/p>\n<p>Input \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u2014&nbsp; \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0431\u043b\u043e\u043a\u043e\u0432.&nbsp;<\/p>\n<p>Output \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b, \u043a\u0430\u043a \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u044f\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0431\u043b\u043e\u043a\u0435 Provisioners.<\/p>\n<p><strong>States (\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f)<\/strong>.<\/p>\n<p>States-\u0444\u0430\u0439\u043b\u044b \u0445\u0440\u0430\u043d\u044f\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u043d\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0434 \u043b\u044e\u0431\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 Terraform \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0443\u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439, \u044d\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u0432\u044f\u0437\u043a\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<\/p>\n<p>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435&nbsp; terraform.tfstate, \u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043b\u0435\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0431\u044b\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0431\u0435\u0437 \u043f\u043e\u043c\u043e\u0449\u0438 Terraform.&nbsp;&nbsp;<\/p>\n<p><a class=\"anchor\" name=\"2\" id=\"2\"><\/a><\/p>\n<h3>2. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Terraform \u043c\u044b \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441 \u0442\u0440\u0435\u043c\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438. \u041f\u0435\u0440\u0432\u0430\u044f \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c nginx, \u0432\u0442\u043e\u0440\u0430\u044f \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 Nextcloud \u0438 \u0442\u0440\u0435\u0442\u044c\u044f \u0441 CMS Bitrix.<\/p>\n<p>\u041f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430\u0448\u0435\u0433\u043e <a href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0430 VMware vCloud Director<\/a>. \u0423 \u043d\u0430\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0443\u0447\u0451\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u0440\u0430\u0432\u0430\u043c\u0438 Organization Administrator, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0441 \u0442\u0435\u043c\u0438 \u0436\u0435 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435 VMware, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u0434 \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u0444\u0430\u0439\u043b\u044b \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p><code>mkdir project01<\/code><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043e\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. Terraform \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0432\u044f\u0437\u0438 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445. \u0421\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, network.tf &#8212; \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432.<\/summary>\n<div class=\"spoiler__content\">\n<p>main.tf &#8212; \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b &#8212; \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b; <\/p>\n<p>network.tf &#8212; \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b NAT, Firewall; <\/p>\n<p>variables.tf &#8212; \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c; <\/p>\n<p>vcd.tfvars &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f VMware vCloud Director. <\/p>\n<\/div>\n<\/details>\n<p>\u042f\u0437\u044b\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 Terraform \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u0440\u043e\u043c\u0435 \u0431\u043b\u043e\u043a\u043e\u0432 provisioner, \u0442.\u043a. \u0432 \u044d\u0442\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u043b\u043e\u043a\u043e\u0432.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>&lt;BLOCK TYPE&gt; \"&lt;BLOCK LABEL&gt;\" \"&lt;BLOCK LABEL&gt;\" {<\/code><\/p>\n<p><code># Block body<\/code><\/p>\n<p><code>&lt;IDENTIFIER&gt; = &lt;EXPRESSION&gt; # Argument<\/code><\/p>\n<p><code>}<\/code><\/p>\n<\/div>\n<\/details>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f HCL (HashiCorp Configuration Language), \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e JSON. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/www.terraform.io\/docs\/configuration\/syntax.html\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/a>.<\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, variables.tf \u0438 vcd.tfvars<\/h4>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445&nbsp; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f VMware vCloud Director. \u041f\u0435\u0440\u0432\u044b\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b variables.tf.<\/p>\n<details class=\"spoiler\">\n<summary>C\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 variables.tf.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>variable \"vcd_org_user\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant User\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_password\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant Password\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant Org\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_vdc\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant VDC\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_url\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant URL\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_max_retry_timeout\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"60\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_allow_unverified_ssl\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;default   = \"true\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_edge_name\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD edge name\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_catalog\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD public catalog\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_template_os_centos7\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"OS CentOS 7\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"CentOS7\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_ssd_sp\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"Storage Policies\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"Gold Storage Policy\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_hdd_sp\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"Storage Policies\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"Bronze Storage Policy\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_subnet\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"Organization Network Subnet\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_edge_external_ip\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"External public IP\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_ip_nginx\" {}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_ip_bitrix\" {}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_ip_nextcloud\" {}<\/code><\/p>\n<p><code>variable \"vcd_edge_external_network\" {}<\/code><\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/summary>\n<div class=\"spoiler__content\">\n<ul>\n<li>\n<p>vcd_org_user &#8212; \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 Organization Administrator,<\/p>\n<\/li>\n<li>\n<p>vcd_org_password &#8212; \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f,<\/p>\n<\/li>\n<li>\n<p>vcd_org &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438,<\/p>\n<\/li>\n<li>\n<p>vcd_org_vdc &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430,<\/p>\n<\/li>\n<li>\n<p>vcd_org_url &#8212; API URL,<\/p>\n<\/li>\n<li>\n<p>vcd_org_edge_name &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430,<\/p>\n<\/li>\n<li>\n<p>vcd_org_catalog &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_external_ip &#8212; \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_external_network &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438,<\/p>\n<\/li>\n<li>\n<p>vcd_org_hdd_sp &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f HDD,<\/p>\n<\/li>\n<li>\n<p>vcd_org_ssd_sp &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f SSD.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/details>\n<p>\u0418 \u0432\u0432\u043e\u0434\u0438\u043c \u0441\u0432\u043e\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>vcd_edge_local_ip_nginx &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 NGINX,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_local_ip_bitrix &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 1\u0421: \u0411\u0438\u0442\u0440\u0438\u043a\u0441,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_local_ip_nextcloud &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 Nextcloud. <\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0442\u043e\u0440\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f VMware vCloud Director \u0432 \u0444\u0430\u0439\u043b\u0435 vcd.tfvars: \u041d\u0430\u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e mClouds<\/a>, \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443 \u043d\u0435\u0433\u043e.&nbsp;<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 vcd.tfvars.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>vcd_org_url = \"https:\/\/vcloud.mclouds.ru\/api\"<\/code><\/p>\n<p><code>vcd_org_user = \"orgadmin\"<\/code><\/p>\n<p><code>vcd_org_password = \"*\"<\/code><\/p>\n<p><code>vcd = \"org\"<\/code><\/p>\n<p><code>vcd_org_vdc = \"orgvdc\"<\/code><\/p>\n<p><code>vcd_org_maxretry_timeout = 60<\/code><\/p>\n<p><code>vcd_org_allow_unverified_ssl = true<\/code><\/p>\n<\/p>\n<p><code>vcd_org_catalog = \"Templates\"<\/code><\/p>\n<p><code>vcd_templateos_centos7 = \"CentOS7\"<\/code><\/p>\n<\/p>\n<p><code>vcd_org_ssd_sp = \"Gold Storage Policy\"<\/code><\/p>\n<p><code>vcd_org_hdd_sp = \"Bronze Storage Policy\"<\/code><\/p>\n<\/p>\n<p><code>vcd_org_edge_name = \"MCLOUDS-EDGE\"<\/code><\/p>\n<p><code>vcd_edge_external_ip = \"185.17.66.1\"<\/code><\/p>\n<p><code>vcd_edge_local_subnet = \"192.168.110.0\/24\"<\/code><\/p>\n<p><code>vcd_edge_local_ip_nginx = \"192.168.110.1\"<\/code><\/p>\n<p><code>vcd_edge_local_ip_bitrix = \"192.168.110.10\"<\/code><\/p>\n<p><code>vcd_edge_local_ip_nextcloud = \"192.168.110.11\"<\/code><\/p>\n<p><code>vcd_edge_external_network = \"NET-185-17-66-0\"<\/code><\/p>\n<\/div>\n<\/details>\n<h4>\u0421\u0435\u0442\u0435\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f, network.tf.<\/h4>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u044b, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0445\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u2014&nbsp; \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Destination NAT &#171;\u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c&#187; \u043f\u043e\u0440\u0442\u044b \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u0441\u0435\u0442\u044c. \u0414\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043e\u0440\u0442\u0430\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e07\/a33\/705\/e07a337056ea39a9454a95777f850410.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 Terraform \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\" title=\"\u0421\u0445\u0435\u043c\u0430 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 Terraform \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\" width=\"586\" height=\"507\"><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 Terraform \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b<\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c net_lan01, \u0448\u043b\u044e\u0437\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: 192.168.110.254, \u0430 \u0442\u0430\u043a\u0436\u0435&nbsp; \u0441 \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e\u043c: 192.168.110.0\/24.<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_network_routed\" \"net\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;name = \"net_lan01\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;edge_gateway = var.vcd_org_edge_name<\/code><\/p>\n<p><code>&nbsp;&nbsp;gateway = \"192.168.110.254\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;dns1 = \"1.1.1.1\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;dns2 = \"8.8.8.8\"<\/code><\/p>\n<\/p>\n<p><code>&nbsp;static_ip_pool {<\/code><\/p>\n<p><code>    start_address = \"192.168.110.1\"<\/code><\/p>\n<p><code>    end_address = \"192.168.110.253\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>}<\/code><\/p>\n<\/div>\n<\/details>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u0441\u0435\u0442\u044c \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0432\u0441\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u0441\u0435\u0442\u044c \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 VM \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_firewall_rule\" \"fw_internet_access\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;edge_gateway &nbsp; = var.vcdorgedgename<\/code><\/p>\n<p><code>&nbsp;&nbsp;name = \"Internet Access\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;source {<\/code><\/p>\n<p><code>    gateway_interfaces = [\"internal\"]<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;destination {<\/code><\/p>\n<p><code>    gateway_interfaces = [\"external\"]<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;service {<\/code><\/p>\n<p><code>    protocol = \"any\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;depends_on = [vcdnetworkrouted.net]<\/code><\/p>\n<p><code>}<\/code><\/p>\n<\/div>\n<\/details>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043b\u043e\u043a\u0430 vcdnetworkrouted.net \u043c\u044b \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0431\u043b\u043e\u043a\u0430 vcdnsxvfirewallrule<em>, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <\/em>dependson. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u044d\u0442\u0443 \u043e\u043f\u0446\u0438\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u044b \u043d\u0435\u044f\u0432\u043d\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0449\u0435\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0440\u0442\u0430\u043c \u0438\u0437 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e SSH \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c. \u041b\u044e\u0431\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u0435\u0442\u0438 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0440\u0442\u0430\u043c 80 \u0438 443 \u043d\u0430 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u043c 90.1.15.1 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0440\u0442\u0430\u043c SSH \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432.<\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0440\u0442\u0430\u043c \u0438\u0437 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_firewall_rule\" \"fwnatports\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;edge_gateway &nbsp; = var.vcd_org_edge_name<\/code><\/p>\n<p><code>&nbsp;&nbsp;name = \"HTTPs Access\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;source {<\/code><\/p>\n<p><code>    gateway_interfaces = [\"external\"]<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;destination {<\/code><\/p>\n<p><code>&nbsp;  gateway_interfaces = [\"internal\"]<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;service {<\/code><\/p>\n<p><code>    protocol = \"tcp\"<\/code><\/p>\n<\/p>\n<p><code>port = \"80\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;service {<\/code><\/p>\n<p><code>    protocol = \"tcp\"<\/code><\/p>\n<p><code>   port = \"443\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>resource \"vcd_nsxv_firewall_rule\" \"fw_nat_admin_ports\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;edge_gateway &nbsp; = var.vcd_org_edge_name<\/code><\/p>\n<p><code>&nbsp;&nbsp;name = \"Admin Access\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;source {<\/code><\/p>\n<p><code>&nbsp;  ip_addresses = [ \"90.1.15.1\" ]<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;destination {<\/code><\/p>\n<p><code>&nbsp; gateway_interfaces = [\"internal\"]<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;service {<\/code><\/p>\n<p><code>    protocol = \"tcp\"<\/code><\/p>\n<p><code>   port = \"58301\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;service {<\/code><\/p>\n<p><code>   protocol = \"tcp\"<\/code><\/p>\n<p><code>   port = \"58302\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<p><code>&nbsp;&nbsp;service {<\/code><\/p>\n<p><code>   protocol = \"tcp\"<\/code><\/p>\n<p><code>   port = \"58303\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;}<\/code><\/p>\n<\/p>\n<p><code>&nbsp;&nbsp;depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p><code>}<\/code><\/p>\n<\/div>\n<\/details>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Source NAT \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u0441\u0435\u0442\u044c \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438\u0437 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Source NAT.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_snat\" \"snat_local\" {<\/code><\/p>\n<p><code>edge_gateway = var.vcd_org_edge_name<\/code><\/p>\n<p><code>&nbsp;&nbsp;network_type = \"ext\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;network_name = var.vcdedgeexternalnetwork<\/code><\/p>\n<p><code>&nbsp;&nbsp;original_address &nbsp; = var.vcd_edge_local_subnet<\/code><\/p>\n<p><code>  translated_address = var.vcd_edge_external_ip<\/code><\/p>\n<p><code>&nbsp;&nbsp;depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p><code>}<\/code><\/p>\n<\/div>\n<\/details>\n<p>\u0418 \u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Destination NAT \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c \u0438\u0437 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438:<\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Destination NAT.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_nginx_https\" {<\/code> <code>  edge_gateway = var.vcd_org_edge_name<\/code> <code>  network_name = var.vcd_edge_external_network<\/code> <code>  network_type = \"ext\" <\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"NGINX HTTPs\"<\/code><\/p>\n<p><code>  original_address   = var.vcd_edge_external_ip<\/code> <code>  original_port  \t= 443<\/code> <\/p>\n<p><code>  translated_address = var.vcd_edge_local_ip_nginx<\/code> <code>  translated_port\t= 443<\/code> <code>  protocol       \t= \"tcp\"<\/code> <\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code> <code>}<\/code> <code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_nginx_http\" {<\/code> <code>  edge_gateway = var.vcd_org_edge_name<\/code> <code>  network_name = var.vcd_edge_external_network<\/code> <code>  network_type = \"ext\"<\/code> <\/p>\n<p><code>  description = \"NGINX HTTP\"<\/code><\/p>\n<p><code>  original_address   = var.vcd_edge_external_ip<\/code> <code>  original_port  \t= 80<\/code><\/p>\n<p><code>  translated_address = var.vcd_edge_local_ip_nginx<\/code> <code>  translated_port\t= 80<\/code> <code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e NAT \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0440\u0442\u043e\u0432 \u043a SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e\u0434 Nginx.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp-nginx_ssh\" {<\/code> <code>  edge_gateway = var.vcd_org_edge_name<\/code> <code>  network_name = var.vcd_edge_external_network<\/code> <code>  network_type = \"ext\"<\/code><\/p>\n<p>  <code>  description = \"SSH NGINX\"<\/code><\/p>\n<p>  <code>  original_address   = var.vcd_edge_external_ip<\/code> <code>  original_port  \t= 58301<\/code><\/p>\n<p>  <code>  translated_address = var.vcd_edge_local_ip_nginx<\/code> <code>  translated_port\t= 22<\/code> <code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p>   <code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p> <code>}<\/code><\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e NAT \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0440\u0442\u043e\u0432 \u043a SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 1\u0421-\u0411\u0438\u0442\u0440\u0438\u043a\u0441.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_bitrix_ssh\" {<\/code> <code>  edge_gateway = var.vcd_org_edge_name<\/code> <code>  network_name = var.vcd_edge_external_network<\/code> <code>  network_type = \"ext\"<\/code><\/p>\n<p>  <code>  description = \"SSH Bitrix\"<\/code><\/p>\n<p>  <code>  original_address   = var.vcd_edge_external_ip<\/code> <code>  original_port  \t= 58302<\/code><\/p>\n<p>  <code>  translated_address = var.vcd_edge_local_ip_bitrix<\/code> <code>  translated_port\t= 22<\/code> <code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p>  <code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e NAT \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0440\u0442\u043e\u0432 \u043a SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 Nextcloud.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_nextcloud_ssh\" {<\/code> <code>  edge_gateway = var.vcd_org_edge_name<\/code> <code>  network_name = var.vcd_edge_external_network<\/code> <code>  network_type = \"ext\"<\/code>  <\/p>\n<\/p>\n<p><code>  description = \"SSH Nextcloud\"<\/code><\/p>\n<\/p>\n<p><code>  original_address   = var.vcd_edge_external_ip<\/code> <code>  original_port  \t= 58303<\/code> <code>  translated_address = var.vcd_edge_local_ip_nextcloud<\/code> <code>  translated_port\t= 22<\/code> <code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p>   <code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b main.tf<\/h4>\n<p>\u041a\u0430\u043a \u043c\u044b \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b. \u041e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e &#171;Guest Customization&#187;. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u043d\u0430\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438, \u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>\u041e\u043f\u0438\u0448\u0435\u043c vApp \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0438 \u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a66\/ca2\/576\/a66ca2576834949434c4121951c54b21.PNG\" alt=\"\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\" title=\"\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\" width=\"1014\" height=\"492\"><figcaption>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d<\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 vApp. \u0427\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c vApp \u0438 \u0412\u041c \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 depends_on:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_vapp\" \"vapp\" {<\/code> <code>  name = \"web\"<\/code> <code>  power_on = \"true\"<\/code>   <code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_vapp_vm\" \"nginx\" {<\/code><\/p>\n<p> <code>  vapp_name \t= vcd_vapp.vapp.name<\/code><\/p>\n<p> <code>  name      \t= \"nginx\"<\/code><\/p>\n<p> <code>  catalog_name  = var.vcd_org_catalog<\/code><\/p>\n<p> <code>  template_name = var.vcd_template_os_centos7<\/code><\/p>\n<p> <code>  storage_profile = var.vcd_org_ssd_sp<\/code><\/p>\n<p> <code>  memory    \t= 8192<\/code><\/p>\n<p> <code>  cpus      \t= 1<\/code><\/p>\n<p> <code>  cpu_cores \t= 1<\/code><\/p>\n<\/p>\n<p>  <code>  network {<\/code><\/p>\n<p> <code>\ttype   \t = \"org\"<\/code><\/p>\n<p> <code>\tname   \t = vcd_network_routed.net.name<\/code><\/p>\n<p> <code>\tis_primary    = true<\/code><\/p>\n<p> <code>\tadapter_type = \"VMXNET3\"<\/code><\/p>\n<p> <code>\tip_allocation_mode = \"MANUAL\"<\/code><\/p>\n<p> <code>\tip      \t= var.vcd_edge_local_ip_nginx<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<\/p>\n<p>   <code>  override_template_disk {<\/code><\/p>\n<p> <code>\tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p> <code>\tsize_in_mb   \t= \"32768\"<\/code><\/p>\n<p> <code>\tbus_number   \t= 0<\/code><\/p>\n<p> <code>\tunit_number  \t= 0<\/code><\/p>\n<p> <code>\tstorage_profile  = var.vcd_org_ssd_sp<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 VM:<\/p>\n<ul>\n<li>\n<p>name &#8212; \u0438\u043c\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b,<\/p>\n<\/li>\n<li>\n<p>vappname &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 vApp \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0412\u041c,<\/p>\n<\/li>\n<li>\n<p>catalogname \/ templatename &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b,<\/p>\n<\/li>\n<li>\n<p>storageprofile &#8212; \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u043b\u043e\u043a\u0430 network:<\/p>\n<ul>\n<li>\n<p>type &#8212; \u0442\u0438\u043f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0439 \u0441\u0435\u0442\u0438,<\/p>\n<\/li>\n<li>\n<p>name &#8212; \u043a \u043a\u0430\u043a\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0412\u041c,<\/p>\n<\/li>\n<li>\n<p>isprimary &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440,<\/p>\n<\/li>\n<li>\n<p>ipallocation_mode &#8212; \u0440\u0435\u0436\u0438\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430 MANUAL \/ DHCP \/ POOL,<\/p>\n<\/li>\n<li>\n<p>ip &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u0443\u043a\u0430\u0436\u0435\u043c \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<\/li>\n<\/ul>\n<p>\u0411\u043b\u043e\u043a override_template_disk:<\/p>\n<ul>\n<li>\n<p>sizeinmb &#8212; \u0440\u0430\u0437\u043c\u0435\u0440 boot-\u0434\u0438\u0441\u043a\u0430 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b<\/p>\n<\/li>\n<li>\n<p>storage_profile &#8212; \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u0442\u043e\u0440\u0443\u044e VM \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 Nextcloud<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_vapp_vm\" \"nextcloud\" {<\/code><\/p>\n<p> <code>  vapp_name \t= vcd_vapp.vapp.name<\/code><\/p>\n<p> <code>  name      \t= \"nextcloud\"<\/code><\/p>\n<p> <code>  catalog_name  = var.vcd_org_catalog<\/code><\/p>\n<p> <code>  template_name = var.vcd_template_os_centos7<\/code><\/p>\n<p> <code>  storage_profile = var.vcd_org_ssd_sp<\/code><\/p>\n<p> <code>  memory    \t= 8192<\/code><\/p>\n<p> <code>  cpus      \t= 1<\/code><\/p>\n<p> <code>  cpu_cores \t= 1<\/code> <\/p>\n<\/p>\n<p> <code>  network {<\/code><\/p>\n<p> <code>\ttype   \t = \"org\"<\/code><\/p>\n<p> <code>\tname   \t = vcd_network_routed.net.name<\/code><\/p>\n<p> <code>\tis_primary    = true<\/code><\/p>\n<p> <code>\tadapter_type = \"VMXNET3\"<\/code><\/p>\n<p> <code>\tip_allocation_mode = \"MANUAL\"<\/code><\/p>\n<p> <code>\tip      \t= var.vcd_edge_local_ip_nextcloud<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<\/p>\n<p>   <code>  override_template_disk {<\/code><\/p>\n<p> <code>\tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p> <code>\tsize_in_mb   \t= \"32768\"<\/code><\/p>\n<p> <code>\tbus_number   \t= 0<\/code><\/p>\n<p> <code>\tunit_number  \t= 0<\/code><\/p>\n<p> <code>\tstorage_profile  = var.vcd_org_ssd_sp<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<p> <code>}<\/code><\/p>\n<\/p>\n<p>  <code>resource \"vcd_vm_internal_disk\" \"disk1\" {<\/code><\/p>\n<\/p>\n<p><code> vapp_name   \t= vcd_vapp.vapp.name<\/code><\/p>\n<p> <code>  vm_name     \t= \"nextcloud\"<\/code><\/p>\n<p> <code>  bus_type    \t= \"paravirtual\"<\/code><\/p>\n<p> <code>  size_in_mb  \t= \"102400\"<\/code><\/p>\n<p> <code>  bus_number  \t= 0<\/code><\/p>\n<p> <code>  unit_number \t= 1<\/code><\/p>\n<p> <code>  storage_profile = var.vcd_org_hdd_sp<\/code><\/p>\n<p> <code>  allow_vm_reboot = true<\/code><\/p>\n<p> <code>  depends_on = [ vcd_vapp_vm.nextcloud ]<\/code><\/p>\n<\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<p>\u0412 \u0441\u0435\u043a\u0446\u0438\u0438 vcdvminternal_disk \u043e\u043f\u0438\u0448\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<p>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0431\u043b\u043e\u043a\u0443 vcdvminternaldisk:<\/p>\n<ul>\n<li>\n<p>bustype &#8212; \u0442\u0438\u043f \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>sizeinmb &#8212; \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>busnumber \/ unitnumber &#8212; \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435<\/p>\n<\/li>\n<li>\n<p>storage_profile &#8212; \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0448\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e VM \u043d\u0430 \u0411\u0438\u0442\u0440\u0438\u043a\u0441<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_vapp_vm\" \"bitrix\" {<\/code><\/p>\n<p> <code>  vapp_name \t= vcd_vapp.vapp.name<\/code><\/p>\n<p> <code>  name      \t= \"bitrix\"<\/code><\/p>\n<p> <code>  catalog_name  = var.vcd_org_catalog<\/code><\/p>\n<p> <code>  template_name = var.vcd_template_os_centos7<\/code><\/p>\n<p> <code>  storage_profile = var.vcd_org_ssd_sp<\/code><\/p>\n<p> <code>  memory    \t= 8192<\/code><\/p>\n<p> <code>  cpus      \t= 1<\/code><\/p>\n<p> <code>  cpu_cores \t= 1<\/code> <\/p>\n<\/p>\n<p>  <code> network {<\/code><\/p>\n<p> <code>\ttype   \t = \"org\"<\/code><\/p>\n<p> <code>\tname   \t = vcd_network_routed.net.name<\/code><\/p>\n<p> <code>\tis_primary    = true<\/code><\/p>\n<p> <code>\tadapter_type = \"VMXNET3\"<\/code><\/p>\n<p> <code>\tip_allocation_mode = \"MANUAL\"<\/code><\/p>\n<p> <code>\tip      \t= var.vcd_edge_local_ip_bitrix<\/code><\/p>\n<\/p>\n<p> <code>  }<\/code><\/p>\n<p>   <code>  override_template_disk {<\/code><\/p>\n<p> <code>\tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p> <code>\tsize_in_mb   \t= \"81920\"<\/code><\/p>\n<p> <code>\tbus_number   \t= 0<\/code><\/p>\n<p> <code>\tunit_number  \t= 0<\/code><\/p>\n<p> <code>\tstorage_profile  = var.vcd_org_ssd_sp<\/code><\/p>\n<\/p>\n<p> <code>  }<\/code><\/p>\n<\/p>\n<p> <code>}<\/code> <\/p>\n<\/div>\n<\/details>\n<h4>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u041e\u0421 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/h4>\n<p>\u0421\u0435\u0442\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0430, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u043e\u043f\u0438\u0441\u0430\u043d\u044b. \u041f\u0435\u0440\u0435\u0434 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u043c \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0438\u0436\u0438\u043d\u0438\u043d\u0433 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e provisioners \u0431\u043b\u043e\u043a\u043e\u0432 \u0438 \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Ansible.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 CMS Bitrix \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e provisioner \u0431\u043b\u043e\u043a\u0430. <\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f CentOS.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"null_resource\" \"nginx_update_install\" {<\/code><\/p>\n<p> <code>  provisioner \"remote-exec\" {<\/code><\/p>\n<p> <code>\tconnection {<\/code><\/p>\n<p> <code>  \ttype \t= \"ssh\"<\/code><\/p>\n<p> <code>  \tuser \t= \"root\"<\/code><\/p>\n<p> <code>  \tpassword = vcd_vapp_vm.nginx.customization[0].admin_password<\/code><\/p>\n<p> <code>  \thost \t= var.vcd_edge_external_ip<\/code><\/p>\n<p> <code>  \tport \t= \"58301\"<\/code><\/p>\n<p> <code>  \ttimeout  = \"30s\"<\/code><\/p>\n<p> <code>\t}<\/code><\/p>\n<p> <code>\tinline = [<\/code><\/p>\n<p> <code>  \t\"yum -y update &amp;&amp; yum -y upgrade\",<\/code><\/p>\n<p> <code>  \t\"yum -y install wget nano epel-release net-tools unzip zip\" ]<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<p> <code> }<\/code><\/p>\n<p> <code>}<\/code><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445:<\/p>\n<ul>\n<li>\n<p>provisioner &#171;remote-exec&#187; &#8212; \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u043b\u043e\u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e &#171;\u043f\u0440\u043e\u0432\u0438\u0436\u0438\u043d\u0438\u043d\u0433\u0430&#187;<\/p>\n<\/li>\n<li>\n<p>\u0412 \u0431\u043b\u043e\u043a\u0435 connection \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f:<\/p>\n<\/li>\n<li>\n<p>type &#8212; \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 SSH;<\/p>\n<\/li>\n<li>\n<p>user &#8212; \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>password &#8212; \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 vcdvappvm.nginx.customization[0].admin_password, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<\/li>\n<li>\n<p>host &#8212; \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>port &#8212; \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 DNAT;<\/p>\n<\/li>\n<li>\n<p>inline &#8212; \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u0432\u043e\u0434\u0438\u0442\u0441\u044f. \u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u043a\u0430\u043a \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u044d\u0442\u043e\u0439 \u0441\u0435\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 1\u0421-\u0411\u0438\u0442\u0440\u0438\u043a\u0441. \u0412\u044b\u0432\u043e\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u043d\u0430. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u0438\u0448\u0435\u043c \u0431\u043b\u043e\u043a:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0448\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 1\u0421-\u0411\u0438\u0442\u0440\u0438\u043a\u0441.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>provisioner \"file\" {<\/code><\/p>\n<p> <code>\tsource  \t= \"prepare.sh\"<\/code><\/p>\n<p> <code>\tdestination = \"\/tmp\/prepare.sh\"<\/code><\/p>\n<p> <code>\tconnection {<\/code><\/p>\n<p> <code>  \ttype \t= \"ssh\"<\/code><\/p>\n<p> <code>  \tuser \t= \"root\"<\/code><\/p>\n<p> <code>  \tpassword = vcd_vapp_vm.nginx.customization[0].admin_password<\/code><\/p>\n<p> <code>  \thost \t= var.vcd_edge_external_ip<\/code><\/p>\n<p> <code>  \tport \t= \"58301\"<\/code><\/p>\n<p> <code>  \ttimeout  = \"30s\"<\/code><\/p>\n<p> <code>\t}<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<p> <code>provisioner \"remote-exec\" {<\/code><\/p>\n<p> <code>\tinline = [<\/code><\/p>\n<p> <code>  \t\"chmod +x \/tmp\/prepare.sh\", \".\/tmp\/prepare.sh\"<\/code><\/p>\n<p> <code>\t]<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0418 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043e\u043f\u0438\u0448\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0411\u0438\u0442\u0440\u0438\u043a\u0441.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0432\u0438\u0436\u0438\u043d\u0438\u043d\u0433\u0430 1\u0421-\u0411\u0438\u0442\u0440\u0438\u043a\u0441.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"null_resource\" \"install_update_bitrix\" {<\/code><\/p>\n<p> <code>  provisioner \"remote-exec\" {<\/code><\/p>\n<p> <code>\tconnection {<\/code><\/p>\n<p> <code>  \ttype \t= \"ssh\"<\/code><\/p>\n<p> <code>  \tuser \t= \"root\"<\/code><\/p>\n<p> <code>  \tpassword = vcd_vapp_vm.bitrix.customization[0].admin_password<\/code><\/p>\n<p> <code>  \thost \t= var.vcd_edge_external_ip<\/code><\/p>\n<p> <code>  \tport \t= \"58302\"<\/code><\/p>\n<p> <code>  \ttimeout  = \"60s\"<\/code><\/p>\n<p> <code>\t}<\/code><\/p>\n<p> <code>\tinline = [<\/code><\/p>\n<p> <code>  \t\"yum -y update &amp;&amp; yum -y upgrade\",<\/code><\/p>\n<p> <code>  \t\"yum -y install wget nano epel-release net-tools unzip zip\",<\/code><\/p>\n<p> <code>  \t\"wget http:\/\/repos.1c-bitrix.ru\/yum\/bitrix-env.sh -O \/tmp\/bitrix-env.sh\",<\/code><\/p>\n<p> <code>  \t\"chmod +x \/tmp\/bitrix-env.sh\",<\/code><\/p>\n<p> <code>  \t\"\/tmp\/bitrix-env.sh\"<\/code><\/p>\n<p> <code>\t]<\/code><\/p>\n<p> <code>  }<\/code><\/p>\n<p> <code>}<\/code><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0412\u0430\u0436\u043d\u043e! \u0421\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 SELinux! \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 CMS 1\u0421-\u0411\u0438\u0442\u0440\u0438\u043a\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e bitrix-env.sh, \u043e\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/mclouds.ru\/2020\/08\/bitrix_install\/\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0432 \u0431\u043b\u043e\u0433\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/a>. <\/p>\n<p><a class=\"anchor\" name=\"3\" id=\"3\"><\/a><\/p>\n<h3>3. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b8\/df4\/52e\/4b8df452e31a6c74bdc76fdf4a701024.png\" alt=\"\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432\" title=\"\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432\" width=\"1103\" height=\"670\"><figcaption>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432<\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u201c\u0434\u0436\u0435\u043d\u0442\u0435\u043b\u044c\u043c\u0435\u043d\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440\u201d: \u043b\u044d\u043f\u0442\u043e\u043f \u0441 \u041e\u0421 Windows 10 \u0438 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 <a href=\"https:\/\/www.terraform.io\/downloads.html\" rel=\"noopener noreferrer nofollow\"><u>terraform.io<\/u><\/a>. \u0420\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u0438 \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b: <code>terraform.exe init<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0433\u0434\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u0438 \u043a\u0430\u043a \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0441\u0432\u044f\u0437\u0430\u043d\u043e.<\/p>\n<ol>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>- terraform plan -var-file=vcd.tfvars<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <code>- Plan: 16 to add, 0 to change, 0 to destroy.<\/code> \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u043b\u0430\u043d\u0443 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043e 16 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. <\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043b\u0430\u043d \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>- terraform.exe apply -var-file=vcd.tfvars<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u043c\u0438 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0435\u043a\u0446\u0438\u0438 provisioner \u2014 \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f CMS Bitrix.<\/p>\n<h4>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u043d\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0432\u0438\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0444\u043e\u0440\u043c\u0438\u043c \u0441\u0435\u043a\u0446\u0438\u044e output \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p><code>output \"nginxpassword\" {<\/code><\/p>\n<p><code>&nbsp;value = vcdvappvm.nginx.customization[0].adminpassword<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u0418 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u044b\u0432\u043e\u0434 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043d\u0430\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b:<\/p>\n<p><code>Outputs: nginx_password = F#4u8!!N<\/code><\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0412\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e!<\/p>\n<p>\u041d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430?<\/p>\n<p><a class=\"anchor\" name=\"31\" id=\"31\"><\/a><\/p>\n<h3>3.1. \u0420\u0430\u0431\u043e\u0442\u0430 Terraform \u0441 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439<\/h3>\n<p>\u0412\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0438 \u0438\u0445 vApp \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b import.<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0448\u0435\u043c \u0440\u0435\u0441\u0443\u0440\u0441 vAPP \u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>resource \"vcd_vapp\" \"Monitoring\" {<\/code><\/p>\n<p> <code>  name          \t= \"Monitoring\"<\/code><\/p>\n<p> <code>  org           \t= \"mClouds\"<\/code><\/p>\n<p> <code>  vdc           \t= \"mClouds\"<\/code><\/p>\n<p> <code>}<\/code> <\/p>\n<p> <code>resource \"vcd_vapp_vm\" \"Zabbix\" {<\/code><\/p>\n<p> <code>  name          \t= \"Zabbix\"<\/code><\/p>\n<p> <code>  org           \t= \"mClouds\"<\/code><\/p>\n<p> <code>  vdc           \t= \"mClouds\"<\/code><\/p>\n<p> <code>  vapp = \"Monitoring\"<\/code><\/p>\n<p> <code>}<\/code><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433, \u044d\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438\u043c\u043f\u043e\u0440\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 vApp \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <code>vcdvapp.&lt;vApp&gt; &lt;org&gt;.&lt;orgvdc&gt;.&lt;vApp&gt;<\/code>, \u0433\u0434\u0435:<\/p>\n<ul>\n<li>\n<p> vApp &#8212; \u0438\u043c\u044f vApp;<\/p>\n<\/li>\n<li>\n<p> org &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>org_vdc &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430. <\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f96\/be3\/fa5\/f96be3fa57f05aea600dadd9265b1864.png\" alt=\"\u0418\u043c\u043f\u043e\u0440\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 vAPP\" title=\"\u0418\u043c\u043f\u043e\u0440\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 vAPP\" width=\"948\" height=\"235\"><figcaption>\u0418\u043c\u043f\u043e\u0440\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 vAPP<\/figcaption><\/figure>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0438\u043c\u043f\u043e\u0440\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 VM \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435: <code>vcdvappvm.&lt;VM&gt; &lt;org&gt;.&lt;orgvdc&gt;.&lt;vApp&gt;.&lt;VM&gt;<\/code><em>, <\/em>\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>VM &#8212; \u0438\u043c\u044f VM;<\/p>\n<\/li>\n<li>\n<p>vApp &#8212; \u0438\u043c\u044f vApp;<\/p>\n<\/li>\n<li>\n<p>org &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>orgvdc &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u0418\u043c\u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e<\/summary>\n<div class=\"spoiler__content\">\n<p><code>C:\\Users\\Mikhail\\Desktop\\terraform&gt;terraform import vcd_vapp_vm.Zabbix mClouds.mClouds.Monitoring.Zabbix<\/code><\/p>\n<p> <code>vcd_vapp_vm.Zabbix: Importing from ID \"mClouds.mClouds.Monitoring.Zabbix\"...<\/code><\/p>\n<p> <code>vcd_vapp_vm.Zabbix: Import prepared!<\/code><\/p>\n<p> <code>  Prepared vcd_vapp_vm for import<\/code><\/p>\n<p> <code>vcd_vapp_vm.Zabbix: Refreshing state... [id=urn:vcloud:vm:778f4a89-1c8d-45b9-9d94-0472a71c4d1f]<\/code><\/p>\n<p>  <code>Import successful!<\/code><\/p>\n<p>  <code>The resources that were imported are shown above. These resources are now in your Terraform state and will henceforth be managed by Terraform.<\/code><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441:<\/p>\n<details class=\"spoiler\">\n<summary>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441<\/summary>\n<div class=\"spoiler__content\">\n<p><code>&gt; terraform show<\/code><\/p>\n<p> <code>...<\/code><\/p>\n<p> <code># vcd_vapp.Monitoring:<\/code><\/p>\n<p> <code>resource \"vcd_vapp\" \"Monitoring\" {<\/code><\/p>\n<p> <code>\tguest_properties = {}<\/code><\/p>\n<p> <code>\thref         \t= \"https:\/\/vcloud.mclouds.ru\/api\/vApp\/vapp-fe5db285-a4af-47c4-93e8-55df92f006ec\"<\/code><\/p>\n<p> <code>\tid           \t= \"urn:vcloud:vapp:fe5db285-a4af-47c4-93e8-55df92f006ec\"<\/code><\/p>\n<p> <code>\tip           \t= \"allocated\"<\/code><\/p>\n<p> <code>\tmetadata     \t= {}<\/code><\/p>\n<p> <code>\tname         \t= \"Monitoring\"<\/code><\/p>\n<p> <code>\torg          \t= \"mClouds\"<\/code><\/p>\n<p> <code>\tstatus       \t= 4<\/code><\/p>\n<p> <code>\tstatus_text  \t= \"POWERED_ON\"<\/code><\/p>\n<p> <code>\tvdc          \t= \"mClouds\"<\/code><\/p>\n<p> <code>}<\/code><\/p>\n<p> <code>\u2026<\/code><\/p>\n<p> <code># vcd_vapp_vm.Zabbix:<\/code><\/p>\n<p> <code>resource \"vcd_vapp_vm\" \"Zabbix\" {<\/code><\/p>\n<p> <code>\tcomputer_name              \t= \"Zabbix\"<\/code><\/p>\n<p> <code>\tcpu_cores                  \t= 1<\/code><\/p>\n<p> <code>\tcpus                       \t= 2<\/code><\/p>\n<p> <code>\texpose_hardware_virtualization = false<\/code><\/p>\n<p> <code>\tguest_properties           \t= {}<\/code><\/p>\n<p> <code>\thardware_version           \t= \"vmx-14\"<\/code><\/p>\n<p> <code>\thref                       \t= \"https:\/\/vcloud.mclouds.ru\/api\/vApp\/vm-778f4a89-1c8d-45b9-9d94-0472a71c4d1f\"<\/code><\/p>\n<p> <code>\tid                         \t= \"urn:vcloud:vm:778f4a89-1c8d-45b9-9d94-0472a71c4d1f\"<\/code><\/p>\n<p> <code>\tinternal_disk              \t= [<\/code><\/p>\n<p> <code>    \t{<\/code><\/p>\n<p>  <code>       \tbus_number   \t= 0<\/code><\/p>\n<p> <code>        \tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p> <code>        \tdisk_id      \t= \"2000\"<\/code><\/p>\n<p> <code>        \tiops         \t= 0<\/code><\/p>\n<p> <code>        \tsize_in_mb   \t= 122880<\/code><\/p>\n<p> <code>        \tstorage_profile  = \"Gold Storage Policy\"<\/code><\/p>\n<p> <code>        \tthin_provisioned = true<\/code><\/p>\n<p> <code>        \tunit_number  \t= 0<\/code><\/p>\n<p> <code>    \t},<\/code><\/p>\n<p> <code>\t]<\/code><\/p>\n<p> <code>\tmemory                     \t= 8192<\/code><\/p>\n<p> <code>\tmetadata                   \t= {}<\/code><\/p>\n<p> <code>\tname                       \t= \"Zabbix\"<\/code><\/p>\n<p> <code>\torg                        \t= \"mClouds\"<\/code><\/p>\n<p> <code>\tos_type                    \t= \"centos8_64Guest\"<\/code><\/p>\n<p> <code>\tstorage_profile            \t= \"Gold Storage Policy\"<\/code><\/p>\n<p> <code>\tvapp_name                  \t= \"Monitoring\"<\/code><\/p>\n<p> <code>\tvdc                        \t= \"mClouds\" <\/code><\/p>\n<p> <code>\tcustomization {<\/code><\/p>\n<p> <code>    \tallow_local_admin_password      \t= true<\/code><\/p>\n<p> <code>    \tauto_generate_password          \t= true<\/code><\/p>\n<p> <code>    \tchange_sid                      \t= false<\/code><\/p>\n<p> <code>    \tenabled                         \t= false<\/code><\/p>\n<p> <code>    \tforce                           \t= false<\/code><\/p>\n<p> <code>    \tjoin_domain                     \t= false<\/code><\/p>\n<p> <code>    \tjoin_org_domain                 \t= false<\/code><\/p>\n<p> <code>    \tmust_change_password_on_first_login = false<\/code><\/p>\n<p> <code>    \tnumber_of_auto_logons           \t= 0<\/code><\/p>\n<\/p>\n<p> <code>\t}<\/code><\/p>\n<\/p>\n<p>  <code>\tnetwork {<\/code><\/p>\n<p> <code>    \tadapter_type   \t= \"VMXNET3\"<\/code><\/p>\n<p> <code>    \tip_allocation_mode = \"DHCP\"<\/code><\/p>\n<p> <code>    \tis_primary     \t= true<\/code><\/p>\n<p> <code>    \tmac            \t= \"00:50:56:07:01:b1\"<\/code><\/p>\n<p> <code>    \tname           \t= \"MCLOUDS-LAN01\"<\/code><\/p>\n<p> <code>    \ttype           \t= \"org\"<\/code><\/p>\n<p> <code>\t}<\/code><\/p>\n<p> <code>} <\/code><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u043e\u0447\u043d\u043e \u0433\u043e\u0442\u043e\u0432\u043e &#8212; \u043c\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u043c (\u0438\u043c\u043f\u043e\u0440\u0442 \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443) \u0438&nbsp;\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Terraform.&nbsp;<\/p>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u043a \u043a\u043e\u0434, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0434\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438, \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u0442\u0430\u043a \u0438, \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439. \u0410 \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e.<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/\"> https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 Terraform, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <a href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware<\/a> \u2014 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0442\u0440\u0438 VM \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439: \u043f\u0440\u043e\u043a\u0441\u0438, \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 CMS.<\/p>\n<p>\u041e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438 \u0432 \u0442\u0440\u0438 \u044d\u0442\u0430\u043f\u0430:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#1\" rel=\"noopener noreferrer nofollow\">Terraform \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#2\" rel=\"noopener noreferrer nofollow\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#3\" rel=\"noopener noreferrer nofollow\">\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/a><\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/#31\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u0431\u043e\u0442\u0430 Terraform \u0441 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439<\/a><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"1\" id=\"1\"><\/a><\/p>\n<h3>1. Terraform \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435<\/h3>\n<p>Terraform \u2014 \u044d\u0442\u043e&nbsp; IaC (Infrastructure-as-Code) \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0434\u0430 .<\/p>\n<p>\u0412 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043c\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432:<\/p>\n<ul>\n<li>\n<p><strong>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u0442\u0435\u043d\u0430\u043d\u0442\u043e\u0432<\/strong> (\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434). \u041e\u0431\u044b\u0447\u043d\u043e, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u043e\u0432\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 &#171;\u043a\u043b\u0438\u043a\u043e\u0432&#187; \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430\u043c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0421 Terraform \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u041e\u0421 \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 ) \u0431\u0435\u0437 \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0430\u043c\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043b\u0430\u043d\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438<\/strong> \u043d\u043e\u0432\u043e\u0433\u043e \u0442\u0435\u043d\u043d\u0430\u043d\u0442\u0430. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0438 \u0432 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 \u043a\u0430\u043a\u043e\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430 \u0438\u043b\u0438 \u0438\u043d\u0430\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c. <\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c. <\/strong>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442<strong> <\/strong>\u043e\u0442 Amazon \u0438 Google Cloud, \u0434\u043e \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 VMware vCloud Director, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0445 \u0443\u0441\u043b\u0443\u0433\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 IaaS, SaaS \u0438 PaaS \u0440\u0435\u0448\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438<\/strong> \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0434\u043d\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u0434\u043e\u0431\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0435\u043c\u043e-\u0441\u0442\u0435\u043d\u0434\u043e\u0432<\/strong> \u043f\u043e\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0435\u043d\u0434\u044b \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u041f\u041e \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0430\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0441\u043e\u0437\u0434\u0430\u0432 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u043f\u043b\u0430\u043d \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<h4>&#171;\u0422\u0435\u0440\u0440\u0430\u0440\u0438\u0443\u043c&#187; Terraform   <\/h4>\n<p>\u041a\u0440\u0430\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043f\u0440\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435<\/p>\n<p><strong>Providers (\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b).<\/strong>&nbsp;<\/p>\n<p>\u0412 Terraform \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u043e\u0439 \u0442\u0438\u043f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b&nbsp; \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430. \u0421\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439 API \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f providers \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Azure \u0438\u043b\u0438 VMware vCloud Director.<\/p>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445. <\/p>\n<p><strong>Resources (\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432).<\/strong><\/p>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u0438\u043b\u0438 \u0441\u0435\u0442\u044f\u043c\u0438.&nbsp;<\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 VMware vCloud Director \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0443 \u043b\u044e\u0431\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 vCloud Director.&nbsp; \u0412\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u043c\u0443 \u0445\u043e\u0441\u0442\u0438\u043d\u0433-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443<\/p>\n<p><strong>Provisioners.<\/strong><\/p>\n<p>\u042d\u0442\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e provisioners \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e SSH, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442.&nbsp;<\/p>\n<p><strong>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 Input \u0438 Output.<\/strong><\/p>\n<p>Input \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u2014&nbsp; \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0431\u043b\u043e\u043a\u043e\u0432.&nbsp;<\/p>\n<p>Output \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b, \u043a\u0430\u043a \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u044f\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0431\u043b\u043e\u043a\u0435 Provisioners.<\/p>\n<p><strong>States (\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f)<\/strong>.<\/p>\n<p>States-\u0444\u0430\u0439\u043b\u044b \u0445\u0440\u0430\u043d\u044f\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u043d\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0434 \u043b\u044e\u0431\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 Terraform \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0443\u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439, \u044d\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u0432\u044f\u0437\u043a\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<\/p>\n<p>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435&nbsp; terraform.tfstate, \u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043b\u0435\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0431\u044b\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0431\u0435\u0437 \u043f\u043e\u043c\u043e\u0449\u0438 Terraform.&nbsp;&nbsp;<\/p>\n<p><a class=\"anchor\" name=\"2\" id=\"2\"><\/a><\/p>\n<h3>2. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Terraform \u043c\u044b \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441 \u0442\u0440\u0435\u043c\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438. \u041f\u0435\u0440\u0432\u0430\u044f \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c nginx, \u0432\u0442\u043e\u0440\u0430\u044f \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 Nextcloud \u0438 \u0442\u0440\u0435\u0442\u044c\u044f \u0441 CMS Bitrix.<\/p>\n<p>\u041f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430\u0448\u0435\u0433\u043e <a href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0430 VMware vCloud Director<\/a>. \u0423 \u043d\u0430\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0443\u0447\u0451\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u0440\u0430\u0432\u0430\u043c\u0438 Organization Administrator, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0441 \u0442\u0435\u043c\u0438 \u0436\u0435 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435 VMware, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u0434 \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u0444\u0430\u0439\u043b\u044b \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p><code>mkdir project01<\/code><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043e\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. Terraform \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0432\u044f\u0437\u0438 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445. \u0421\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, network.tf &#8212; \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432.<\/summary>\n<div class=\"spoiler__content\">\n<p>main.tf &#8212; \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b &#8212; \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b; <\/p>\n<p>network.tf &#8212; \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b NAT, Firewall; <\/p>\n<p>variables.tf &#8212; \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c; <\/p>\n<p>vcd.tfvars &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f VMware vCloud Director. <\/p>\n<\/div>\n<\/details>\n<p>\u042f\u0437\u044b\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 Terraform \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u0440\u043e\u043c\u0435 \u0431\u043b\u043e\u043a\u043e\u0432 provisioner, \u0442.\u043a. \u0432 \u044d\u0442\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u043b\u043e\u043a\u043e\u0432.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>&lt;BLOCK TYPE&gt; \"&lt;BLOCK LABEL&gt;\" \"&lt;BLOCK LABEL&gt;\" {<\/code><\/p>\n<p><code># Block body<\/code><\/p>\n<p><code>&lt;IDENTIFIER&gt; = &lt;EXPRESSION&gt; # Argument<\/code><\/p>\n<p><code>}<\/code><\/p>\n<\/div>\n<\/details>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f HCL (HashiCorp Configuration Language), \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e JSON. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/www.terraform.io\/docs\/configuration\/syntax.html\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/a>.<\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, variables.tf \u0438 vcd.tfvars<\/h4>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445&nbsp; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f VMware vCloud Director. \u041f\u0435\u0440\u0432\u044b\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b variables.tf.<\/p>\n<details class=\"spoiler\">\n<summary>C\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 variables.tf.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>variable \"vcd_org_user\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant User\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_password\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant Password\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant Org\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_vdc\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant VDC\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_url\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD Tenant URL\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_max_retry_timeout\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"60\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_allow_unverified_ssl\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;default   = \"true\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_edge_name\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD edge name\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_catalog\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"vCD public catalog\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_template_os_centos7\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"OS CentOS 7\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"CentOS7\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_ssd_sp\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"Storage Policies\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"Gold Storage Policy\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_org_hdd_sp\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"Storage Policies\"<\/code><\/p>\n<p><code>&nbsp;&nbsp;default     = \"Bronze Storage Policy\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_subnet\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"Organization Network Subnet\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_edge_external_ip\" {<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"External public IP\"<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_ip_nginx\" {}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_ip_bitrix\" {}<\/code><\/p>\n<p><code>variable \"vcd_edge_local_ip_nextcloud\" {}<\/code><\/p>\n<p><code>variable \"vcd_edge_external_network\" {}<\/code><\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/summary>\n<div class=\"spoiler__content\">\n<ul>\n<li>\n<p>vcd_org_user &#8212; \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 Organization Administrator,<\/p>\n<\/li>\n<li>\n<p>vcd_org_password &#8212; \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f,<\/p>\n<\/li>\n<li>\n<p>vcd_org &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438,<\/p>\n<\/li>\n<li>\n<p>vcd_org_vdc &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430,<\/p>\n<\/li>\n<li>\n<p>vcd_org_url &#8212; API URL,<\/p>\n<\/li>\n<li>\n<p>vcd_org_edge_name &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430,<\/p>\n<\/li>\n<li>\n<p>vcd_org_catalog &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_external_ip &#8212; \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_external_network &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438,<\/p>\n<\/li>\n<li>\n<p>vcd_org_hdd_sp &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f HDD,<\/p>\n<\/li>\n<li>\n<p>vcd_org_ssd_sp &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f SSD.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/details>\n<p>\u0418 \u0432\u0432\u043e\u0434\u0438\u043c \u0441\u0432\u043e\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>vcd_edge_local_ip_nginx &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 NGINX,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_local_ip_bitrix &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 1\u0421: \u0411\u0438\u0442\u0440\u0438\u043a\u0441,<\/p>\n<\/li>\n<li>\n<p>vcd_edge_local_ip_nextcloud &#8212; IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 Nextcloud. <\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0442\u043e\u0440\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f VMware vCloud Director \u0432 \u0444\u0430\u0439\u043b\u0435 vcd.tfvars: \u041d\u0430\u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e mClouds<\/a>, \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443 \u043d\u0435\u0433\u043e.&nbsp;<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 vcd.tfvars.<\/summary>\n<div class=\"spoiler__content\">\n<p><code>vcd_org_url = \"https:\/\/vcloud.mclouds.ru\/api\"<\/code><\/p>\n<p><code>vcd_org_user = \"orgadmin\"<\/code><\/p>\n<p><code>vcd_org_password = \"*\"<\/code><\/p>\n<p><code>vcd = \"org\"<\/code><\/p>\n<p><code>vcd_org_vdc = \"orgvdc\"<\/code><\/p>\n<p><code>vcd_org_maxretry_timeout = 60<\/code><\/p>\n<p><code>vcd_org_allow_unverified_ssl = true<\/code><\/p>\n<\/p>\n<p><code>vcd_org_catalog = \"Templates\"<\/code><\/p>\n<p><code>vcd_templateos_centos7 = \"CentOS7\"<\/code><\/p>\n<\/p>\n<p><code>vcd_org_ssd_sp = \"Gold Storage Policy\"<\/code><\/p>\n<p><code>vcd_org_hdd_sp = \"Bronze Storage Policy\"<\/code><\/p>\n<\/p>\n<p><code>vcd_org_edge_name = \"MCLOUDS-EDGE\"<\/code><\/p>\n<p><code>vcd_edge_external_ip = \"185.17.66.1\"<\/code><\/p>\n<p><code>vcd_edge_local_subnet = \"192.168.110.0\/24\"<\/code><\/p>\n<p><code>vcd_edge_local_ip_nginx = \"192.168.110.1\"<\/code><\/p>\n<p><code>vcd_edge_local_ip_bitrix = \"192.168.110.10\"<\/code><\/p>\n<p><code>vcd_edge_local_ip_nextcloud = \"192.168.110.11\"<\/code><\/p>\n<p><code>vcd_edge_external_network = \"NET-185-17-66-0\"<\/code><\/p>\n<\/div>\n<\/details>\n<h4>\u0421\u0435\u0442\u0435\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f, network.tf.<\/h4>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u044b, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0445\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u2014&nbsp; \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Destination NAT &#171;\u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c&#187; \u043f\u043e\u0440\u0442\u044b \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u0441\u0435\u0442\u044c. \u0414\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043e\u0440\u0442\u0430\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0430.<\/p>\n<figure class=\"full-width\"><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 Terraform \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b<\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c net_lan01, \u0448\u043b\u044e\u0437\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: 192.168.110.254, \u0430 \u0442\u0430\u043a\u0436\u0435&nbsp; \u0441 \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e\u043c: 192.168.110.0\/24.<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u0438\u0441\u044b\u0432<\/summary>\n<\/details>\n<\/div>\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-310415","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310415","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=310415"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310415\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}