{"id":95195,"date":"2020-09-26T07:42:41","date_gmt":"2020-09-26T05:42:41","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform"},"modified":"2020-09-26T07:42:41","modified_gmt":"2020-09-26T05:42:41","slug":"kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform","title":{"rendered":"Si t\u00eb menaxhoni infrastruktur\u00ebn cloud me Terraform","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\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\" src=\"\/wp-content\/uploads\/2020\/09\/e349cb9084aed7e0372a72c5cfe22552.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\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 <noindex><a rel=\"nofollow\" href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware<\/a><\/noindex> \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><noindex><a rel=\"nofollow\" 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><\/noindex><\/p>\n<\/li>\n<li>\n<p><noindex><a rel=\"nofollow\" 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><\/noindex><\/p>\n<\/li>\n<li>\n<p><noindex><a rel=\"nofollow\" 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><\/noindex><\/p>\n<ul>\n<li>\n<p><noindex><a rel=\"nofollow\" 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><\/noindex><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><noindex><a rel=\"nofollow\" class=\"anchor\" name=\"1\" id=\"1\"><\/a><\/noindex><\/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><noindex><a rel=\"nofollow\" class=\"anchor\" name=\"2\" id=\"2\"><\/a><\/noindex><\/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 <noindex><a rel=\"nofollow\" href=\"https:\/\/mclouds.ru\/pricing\/iaas\/\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0430 VMware vCloud Director<\/a><\/noindex>. \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<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\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<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<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u043b\u043e\u043a\u043e\u0432.<\/p>\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<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 <noindex><a rel=\"nofollow\" 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><\/noindex>.<\/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<p>C\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 variables.tf.<\/p>\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<p>\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.<\/p>\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<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 <noindex><a rel=\"nofollow\" 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><\/noindex>, \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<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 vcd.tfvars.<\/p>\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<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<p><img decoding=\"async\" alt=\"\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\" src=\"\/wp-content\/uploads\/2020\/09\/d8d13364c8bcebba8bb05d5d80dc9b37.jpg\" style=\"display:block;margin: 0 auto;\" \/>\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<\/p>\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<p>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c.<\/p>\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<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<p>\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.<\/p>\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<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<p>\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.<\/p>\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<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<p>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Source NAT.<\/p>\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<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<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Destination NAT.<\/p>\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_nginx_https\" {<\/code><br \/>\n<code>  edge_gateway = var.vcd_org_edge_name<\/code><br \/>\n<code>  network_name = var.vcd_edge_external_network<\/code><br \/>\n<code>  network_type = \"ext\"<br \/>\n<\/code><\/p>\n<p><code>&nbsp;&nbsp;description = \"NGINX HTTPs\"<\/code><\/p>\n<p><code>  original_address   = var.vcd_edge_external_ip<\/code><br \/>\n<code>  original_port  \t= 443<\/code>\n<\/p>\n<p><code>  translated_address = var.vcd_edge_local_ip_nginx<\/code><br \/>\n<code>  translated_port\t= 443<\/code><br \/>\n<code>  protocol       \t= \"tcp\"<\/code>\n<\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code><br \/>\n<code>}<\/code><br \/>\n<code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_nginx_http\" {<\/code><br \/>\n<code>  edge_gateway = var.vcd_org_edge_name<\/code><br \/>\n<code>  network_name = var.vcd_edge_external_network<\/code><br \/>\n<code>  network_type = \"ext\"<\/code>\n<\/p>\n<p><code>  description = \"NGINX HTTP\"<\/code><\/p>\n<p><code>  original_address   = var.vcd_edge_external_ip<\/code><br \/>\n<code>  original_port  \t= 80<\/code><\/p>\n<p><code>  translated_address = var.vcd_edge_local_ip_nginx<\/code><br \/>\n<code>  translated_port\t= 80<\/code><br \/>\n<code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p>\n<code>}<\/code>\n<\/p>\n<p>\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.<\/p>\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp-nginx_ssh\" {<\/code><br \/>\n<code>  edge_gateway = var.vcd_org_edge_name<\/code><br \/>\n<code>  network_name = var.vcd_edge_external_network<\/code><br \/>\n<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><br \/>\n<code>  original_port  \t= 58301<\/code><\/p>\n<p><code>  translated_address = var.vcd_edge_local_ip_nginx<\/code><br \/>\n<code>  translated_port\t= 22<\/code><br \/>\n<code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p>\n<code>}<\/code><\/p>\n<p>\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.<\/p>\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_bitrix_ssh\" {<\/code><br \/>\n<code>  edge_gateway = var.vcd_org_edge_name<\/code><br \/>\n<code>  network_name = var.vcd_edge_external_network<\/code><br \/>\n<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><br \/>\n<code>  original_port  \t= 58302<\/code><\/p>\n<p><code>  translated_address = var.vcd_edge_local_ip_bitrix<\/code><br \/>\n<code>  translated_port\t= 22<\/code><br \/>\n<code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p>\n<code>}<\/code>\n<\/p>\n<p>\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.<\/p>\n<p><code>resource \"vcd_nsxv_dnat\" \"dnat_tcp_nextcloud_ssh\" {<\/code><br \/>\n<code>  edge_gateway = var.vcd_org_edge_name<\/code><br \/>\n<code>  network_name = var.vcd_edge_external_network<\/code><br \/>\n<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><br \/>\n<code>  original_port  \t= 58303<\/code> <code>  translated_address = var.vcd_edge_local_ip_nextcloud<\/code><br \/>\n<code>  translated_port\t= 22<\/code><br \/>\n<code>  protocol       \t= \"tcp\"<\/code><\/p>\n<p><code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<p>\n<code>}<\/code>\n<\/p>\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<p><img decoding=\"async\" alt=\"\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\" src=\"\/wp-content\/uploads\/2020\/09\/15286ac90b824209a17146866b6a3501.jpg\" style=\"display:block;margin: 0 auto;\" \/>\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<\/p>\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<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<\/p>\n<p><code>resource \"vcd_vapp\" \"vapp\" {<\/code><br \/>\n<code>  name = \"web\"<\/code><br \/>\n<code>  power_on = \"true\"<\/code>   <code>  depends_on = [vcd_network_routed.net]<\/code><\/p>\n<\/p>\n<p> <code>}<\/code>\n<\/p>\n<p>\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<\/p>\n<p><code>resource \"vcd_vapp_vm\" \"nginx\" {<\/code><\/p>\n<p>\n<code>  vapp_name \t= vcd_vapp.vapp.name<\/code><\/p>\n<p>\n<code>  name      \t= \"nginx\"<\/code><\/p>\n<p>\n<code>  catalog_name  = var.vcd_org_catalog<\/code><\/p>\n<p>\n<code>  template_name = var.vcd_template_os_centos7<\/code><\/p>\n<p>\n<code>  storage_profile = var.vcd_org_ssd_sp<\/code><\/p>\n<p>\n<code>  memory    \t= 8192<\/code><\/p>\n<p>\n<code>  cpus      \t= 1<\/code><\/p>\n<p>\n<code>  cpu_cores \t= 1<\/code><\/p>\n<\/p>\n<p><code>  network {<\/code><\/p>\n<p>\n<code>\ttype   \t = \"org\"<\/code><\/p>\n<p>\n<code>\tname   \t = vcd_network_routed.net.name<\/code><\/p>\n<p>\n<code>\tis_primary    = true<\/code><\/p>\n<p>\n<code>\tadapter_type = \"VMXNET3\"<\/code><\/p>\n<p>\n<code>\tip_allocation_mode = \"MANUAL\"<\/code><\/p>\n<p>\n<code>\tip      \t= var.vcd_edge_local_ip_nginx<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<\/p>\n<p><code>  override_template_disk {<\/code><\/p>\n<p>\n<code>\tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p>\n<code>\tsize_in_mb   \t= \"32768\"<\/code><\/p>\n<p>\n<code>\tbus_number   \t= 0<\/code><\/p>\n<p>\n<code>\tunit_number  \t= 0<\/code><\/p>\n<p>\n<code>\tstorage_profile  = var.vcd_org_ssd_sp<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<p>\n<code>}<\/code>\n<\/p>\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<p>\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<\/p>\n<p><code>resource \"vcd_vapp_vm\" \"nextcloud\" {<\/code><\/p>\n<p>\n<code>  vapp_name \t= vcd_vapp.vapp.name<\/code><\/p>\n<p>\n<code>  name      \t= \"nextcloud\"<\/code><\/p>\n<p>\n<code>  catalog_name  = var.vcd_org_catalog<\/code><\/p>\n<p>\n<code>  template_name = var.vcd_template_os_centos7<\/code><\/p>\n<p>\n<code>  storage_profile = var.vcd_org_ssd_sp<\/code><\/p>\n<p>\n<code>  memory    \t= 8192<\/code><\/p>\n<p>\n<code>  cpus      \t= 1<\/code><\/p>\n<p>\n<code>  cpu_cores \t= 1<\/code>\n<\/p>\n<\/p>\n<p>\n<code>  network {<\/code><\/p>\n<p>\n<code>\ttype   \t = \"org\"<\/code><\/p>\n<p>\n<code>\tname   \t = vcd_network_routed.net.name<\/code><\/p>\n<p>\n<code>\tis_primary    = true<\/code><\/p>\n<p>\n<code>\tadapter_type = \"VMXNET3\"<\/code><\/p>\n<p>\n<code>\tip_allocation_mode = \"MANUAL\"<\/code><\/p>\n<p>\n<code>\tip      \t= var.vcd_edge_local_ip_nextcloud<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<\/p>\n<p><code>  override_template_disk {<\/code><\/p>\n<p>\n<code>\tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p>\n<code>\tsize_in_mb   \t= \"32768\"<\/code><\/p>\n<p>\n<code>\tbus_number   \t= 0<\/code><\/p>\n<p>\n<code>\tunit_number  \t= 0<\/code><\/p>\n<p>\n<code>\tstorage_profile  = var.vcd_org_ssd_sp<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<p>\n<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>\n<code>  vm_name     \t= \"nextcloud\"<\/code><\/p>\n<p>\n<code>  bus_type    \t= \"paravirtual\"<\/code><\/p>\n<p>\n<code>  size_in_mb  \t= \"102400\"<\/code><\/p>\n<p>\n<code>  bus_number  \t= 0<\/code><\/p>\n<p>\n<code>  unit_number \t= 1<\/code><\/p>\n<p>\n<code>  storage_profile = var.vcd_org_hdd_sp<\/code><\/p>\n<p>\n<code>  allow_vm_reboot = true<\/code><\/p>\n<p>\n<code>  depends_on = [ vcd_vapp_vm.nextcloud ]<\/code><\/p>\n<\/p>\n<p>\n<code>}<\/code>\n<\/p>\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<p>\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<\/p>\n<p><code>resource \"vcd_vapp_vm\" \"bitrix\" {<\/code><\/p>\n<p>\n<code>  vapp_name \t= vcd_vapp.vapp.name<\/code><\/p>\n<p>\n<code>  name      \t= \"bitrix\"<\/code><\/p>\n<p>\n<code>  catalog_name  = var.vcd_org_catalog<\/code><\/p>\n<p>\n<code>  template_name = var.vcd_template_os_centos7<\/code><\/p>\n<p>\n<code>  storage_profile = var.vcd_org_ssd_sp<\/code><\/p>\n<p>\n<code>  memory    \t= 8192<\/code><\/p>\n<p>\n<code>  cpus      \t= 1<\/code><\/p>\n<p>\n<code>  cpu_cores \t= 1<\/code>\n<\/p>\n<\/p>\n<p>\n <code> network {<\/code><\/p>\n<p>\n<code>\ttype   \t = \"org\"<\/code><\/p>\n<p>\n<code>\tname   \t = vcd_network_routed.net.name<\/code><\/p>\n<p>\n<code>\tis_primary    = true<\/code><\/p>\n<p>\n<code>\tadapter_type = \"VMXNET3\"<\/code><\/p>\n<p>\n<code>\tip_allocation_mode = \"MANUAL\"<\/code><\/p>\n<p>\n<code>\tip      \t= var.vcd_edge_local_ip_bitrix<\/code><\/p>\n<\/p>\n<p>\n<code>  }<\/code><\/p>\n<p><code>  override_template_disk {<\/code><\/p>\n<p>\n<code>\tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p>\n<code>\tsize_in_mb   \t= \"81920\"<\/code><\/p>\n<p>\n<code>\tbus_number   \t= 0<\/code><\/p>\n<p>\n<code>\tunit_number  \t= 0<\/code><\/p>\n<p>\n<code>\tstorage_profile  = var.vcd_org_ssd_sp<\/code><\/p>\n<\/p>\n<p>\n<code>  }<\/code><\/p>\n<\/p>\n<p>\n<code>}<\/code>\n<\/p>\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<p>\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.<\/p>\n<p><code>resource \"null_resource\" \"nginx_update_install\" {<\/code><\/p>\n<p>\n<code>  provisioner \"remote-exec\" {<\/code><\/p>\n<p>\n<code>\tconnection {<\/code><\/p>\n<p>\n<code>  \ttype \t= \"ssh\"<\/code><\/p>\n<p>\n<code>  \tuser \t= \"root\"<\/code><\/p>\n<p>\n<code>  \tpassword = vcd_vapp_vm.nginx.customization[0].admin_password<\/code><\/p>\n<p>\n<code>  \thost \t= var.vcd_edge_external_ip<\/code><\/p>\n<p>\n<code>  \tport \t= \"58301\"<\/code><\/p>\n<p>\n<code>  \ttimeout  = \"30s\"<\/code><\/p>\n<p>\n<code>\t}<\/code><\/p>\n<p>\n<code>\tinline = [<\/code><\/p>\n<p>\n<code>  \t\"yum -y update &amp;&amp; yum -y upgrade\",<\/code><\/p>\n<p>\n<code>  \t\"yum -y install wget nano epel-release net-tools unzip zip\" ]<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<p>\n<code> }<\/code><\/p>\n<p>\n<code>}<\/code><\/p>\n<\/p>\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<p>\u041e\u043f\u0438\u0448\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 1\u0421-\u0411\u0438\u0442\u0440\u0438\u043a\u0441.<\/p>\n<p><code>provisioner \"file\" {<\/code><\/p>\n<p>\n<code>\tsource  \t= \"prepare.sh\"<\/code><\/p>\n<p>\n<code>\tdestination = \"\/tmp\/prepare.sh\"<\/code><\/p>\n<p>\n<code>\tconnection {<\/code><\/p>\n<p>\n<code>  \ttype \t= \"ssh\"<\/code><\/p>\n<p>\n<code>  \tuser \t= \"root\"<\/code><\/p>\n<p>\n<code>  \tpassword = vcd_vapp_vm.nginx.customization[0].admin_password<\/code><\/p>\n<p>\n<code>  \thost \t= var.vcd_edge_external_ip<\/code><\/p>\n<p>\n<code>  \tport \t= \"58301\"<\/code><\/p>\n<p>\n<code>  \ttimeout  = \"30s\"<\/code><\/p>\n<p>\n<code>\t}<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<p>\n<code>provisioner \"remote-exec\" {<\/code><\/p>\n<p>\n<code>\tinline = [<\/code><\/p>\n<p>\n<code>  \t\"chmod +x \/tmp\/prepare.sh\", \".\/tmp\/prepare.sh\"<\/code><\/p>\n<p>\n<code>\t]<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<\/p>\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<p>\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.<\/p>\n<p><code>resource \"null_resource\" \"install_update_bitrix\" {<\/code><\/p>\n<p>\n<code>  provisioner \"remote-exec\" {<\/code><\/p>\n<p>\n<code>\tconnection {<\/code><\/p>\n<p>\n<code>  \ttype \t= \"ssh\"<\/code><\/p>\n<p>\n<code>  \tuser \t= \"root\"<\/code><\/p>\n<p>\n<code>  \tpassword = vcd_vapp_vm.bitrix.customization[0].admin_password<\/code><\/p>\n<p>\n<code>  \thost \t= var.vcd_edge_external_ip<\/code><\/p>\n<p>\n<code>  \tport \t= \"58302\"<\/code><\/p>\n<p>\n<code>  \ttimeout  = \"60s\"<\/code><\/p>\n<p>\n<code>\t}<\/code><\/p>\n<p>\n<code>\tinline = [<\/code><\/p>\n<p>\n<code>  \t\"yum -y update &amp;&amp; yum -y upgrade\",<\/code><\/p>\n<p>\n<code>  \t\"yum -y install wget nano epel-release net-tools unzip zip\",<\/code><\/p>\n<p>\n<code>  \t\"wget http:\/\/repos.1c-bitrix.ru\/yum\/bitrix-env.sh -O \/tmp\/bitrix-env.sh\",<\/code><\/p>\n<p>\n<code>  \t\"chmod +x \/tmp\/bitrix-env.sh\",<\/code><\/p>\n<p>\n<code>  \t\"\/tmp\/bitrix-env.sh\"<\/code><\/p>\n<p>\n<code>\t]<\/code><\/p>\n<p>\n<code>  }<\/code><\/p>\n<p>\n<code>}<\/code><\/p>\n<\/p>\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 <noindex><a rel=\"nofollow\" 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><\/noindex>. <\/p>\n<p><noindex><a rel=\"nofollow\" class=\"anchor\" name=\"3\" id=\"3\"><\/a><\/noindex><\/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<p><img decoding=\"async\" alt=\"\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\" src=\"\/wp-content\/uploads\/2020\/09\/8c97a5831d16d2dfb5e240dd88d5b2e5.jpg\" style=\"display:block;margin: 0 auto;\" \/>\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<\/p>\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 <noindex><a rel=\"nofollow\" href=\"https:\/\/www.terraform.io\/downloads.html\" rel=\"noopener noreferrer nofollow\"><u>terraform.io<\/u><\/a><\/noindex>. \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><noindex><a rel=\"nofollow\" class=\"anchor\" name=\"31\" id=\"31\"><\/a><\/noindex><\/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<p>\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.<\/p>\n<p><code>resource \"vcd_vapp\" \"Monitoring\" {<\/code><\/p>\n<p>\n<code>  name          \t= \"Monitoring\"<\/code><\/p>\n<p>\n<code>  org           \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>  vdc           \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>}<\/code>\n<\/p>\n<p>\n<code>resource \"vcd_vapp_vm\" \"Zabbix\" {<\/code><\/p>\n<p>\n<code>  name          \t= \"Zabbix\"<\/code><\/p>\n<p>\n<code>  org           \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>  vdc           \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>  vapp = \"Monitoring\"<\/code><\/p>\n<p>\n<code>}<\/code><\/p>\n<\/p>\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<p><img decoding=\"async\" alt=\"\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\" src=\"\/wp-content\/uploads\/2020\/09\/34f229b0bee4858d31c3f082e256e822.jpg\" style=\"display:block;margin: 0 auto;\" \/>\u0418\u043c\u043f\u043e\u0440\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 vAPP<\/p>\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<p>\u0418\u043c\u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e<\/p>\n<p><code>C:UsersMikhailDesktopterraform&gt;terraform import vcd_vapp_vm.Zabbix mClouds.mClouds.Monitoring.Zabbix<\/code><\/p>\n<p>\n<code>vcd_vapp_vm.Zabbix: Importing from ID \"mClouds.mClouds.Monitoring.Zabbix\"...<\/code><\/p>\n<p>\n<code>vcd_vapp_vm.Zabbix: Import prepared!<\/code><\/p>\n<p>\n<code>  Prepared vcd_vapp_vm for import<\/code><\/p>\n<p>\n<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<br \/>\nyour Terraform state and will henceforth be managed by Terraform.<\/code><\/p>\n<\/p>\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<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441<\/p>\n<p><code>&gt; terraform show<\/code><\/p>\n<p>\n<code>...<\/code><\/p>\n<p>\n<code># vcd_vapp.Monitoring:<\/code><\/p>\n<p>\n<code>resource \"vcd_vapp\" \"Monitoring\" {<\/code><\/p>\n<p>\n<code>\tguest_properties = {}<\/code><\/p>\n<p>\n<code>\thref         \t= \"https:\/\/vcloud.mclouds.ru\/api\/vApp\/vapp-fe5db285-a4af-47c4-93e8-55df92f006ec\"<\/code><\/p>\n<p>\n<code>\tid           \t= \"urn:vcloud:vapp:fe5db285-a4af-47c4-93e8-55df92f006ec\"<\/code><\/p>\n<p>\n<code>\tip           \t= \"allocated\"<\/code><\/p>\n<p>\n<code>\tmetadata     \t= {}<\/code><\/p>\n<p>\n<code>\tname         \t= \"Monitoring\"<\/code><\/p>\n<p>\n<code>\torg          \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>\tstatus       \t= 4<\/code><\/p>\n<p>\n<code>\tstatus_text  \t= \"POWERED_ON\"<\/code><\/p>\n<p>\n<code>\tvdc          \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>}<\/code><\/p>\n<p>\n<code>\u2026<\/code><\/p>\n<p>\n<code># vcd_vapp_vm.Zabbix:<\/code><\/p>\n<p>\n<code>resource \"vcd_vapp_vm\" \"Zabbix\" {<\/code><\/p>\n<p>\n<code>\tcomputer_name              \t= \"Zabbix\"<\/code><\/p>\n<p>\n<code>\tcpu_cores                  \t= 1<\/code><\/p>\n<p>\n<code>\tcpus                       \t= 2<\/code><\/p>\n<p>\n<code>\texpose_hardware_virtualization = false<\/code><\/p>\n<p>\n<code>\tguest_properties           \t= {}<\/code><\/p>\n<p>\n<code>\thardware_version           \t= \"vmx-14\"<\/code><\/p>\n<p>\n<code>\thref                       \t= \"https:\/\/vcloud.mclouds.ru\/api\/vApp\/vm-778f4a89-1c8d-45b9-9d94-0472a71c4d1f\"<\/code><\/p>\n<p>\n<code>\tid                         \t= \"urn:vcloud:vm:778f4a89-1c8d-45b9-9d94-0472a71c4d1f\"<\/code><\/p>\n<p>\n<code>\tinternal_disk              \t= [<\/code><\/p>\n<p>\n<code>    \t{<\/code><\/p>\n<p>\n <code>       \tbus_number   \t= 0<\/code><\/p>\n<p>\n<code>        \tbus_type     \t= \"paravirtual\"<\/code><\/p>\n<p>\n<code>        \tdisk_id      \t= \"2000\"<\/code><\/p>\n<p>\n<code>        \tiops         \t= 0<\/code><\/p>\n<p>\n<code>        \tsize_in_mb   \t= 122880<\/code><\/p>\n<p>\n<code>        \tstorage_profile  = \"Gold Storage Policy\"<\/code><\/p>\n<p>\n<code>        \tthin_provisioned = true<\/code><\/p>\n<p>\n<code>        \tunit_number  \t= 0<\/code><\/p>\n<p>\n<code>    \t},<\/code><\/p>\n<p>\n<code>\t]<\/code><\/p>\n<p>\n<code>\tmemory                     \t= 8192<\/code><\/p>\n<p>\n<code>\tmetadata                   \t= {}<\/code><\/p>\n<p>\n<code>\tname                       \t= \"Zabbix\"<\/code><\/p>\n<p>\n<code>\torg                        \t= \"mClouds\"<\/code><\/p>\n<p>\n<code>\tos_type                    \t= \"centos8_64Guest\"<\/code><\/p>\n<p>\n<code>\tstorage_profile            \t= \"Gold Storage Policy\"<\/code><\/p>\n<p>\n<code>\tvapp_name                  \t= \"Monitoring\"<\/code><\/p>\n<p>\n<code>\tvdc                        \t= \"mClouds\"<br \/>\n<\/code><\/p>\n<p>\n<code>\tcustomization {<\/code><\/p>\n<p>\n<code>    \tallow_local_admin_password      \t= true<\/code><\/p>\n<p>\n<code>    \tauto_generate_password          \t= true<\/code><\/p>\n<p>\n<code>    \tchange_sid                      \t= false<\/code><\/p>\n<p>\n<code>    \tenabled                         \t= false<\/code><\/p>\n<p>\n<code>    \tforce                           \t= false<\/code><\/p>\n<p>\n<code>    \tjoin_domain                     \t= false<\/code><\/p>\n<p>\n<code>    \tjoin_org_domain                 \t= false<\/code><\/p>\n<p>\n<code>    \tmust_change_password_on_first_login = false<\/code><\/p>\n<p>\n<code>    \tnumber_of_auto_logons           \t= 0<\/code><\/p>\n<\/p>\n<p>\n<code>\t}<\/code><\/p>\n<\/p>\n<p><code>\tnetwork {<\/code><\/p>\n<p>\n<code>    \tadapter_type   \t= \"VMXNET3\"<\/code><\/p>\n<p>\n<code>    \tip_allocation_mode = \"DHCP\"<\/code><\/p>\n<p>\n<code>    \tis_primary     \t= true<\/code><\/p>\n<p>\n<code>    \tmac            \t= \"00:50:56:07:01:b1\"<\/code><\/p>\n<p>\n<code>    \tname           \t= \"MCLOUDS-LAN01\"<\/code><\/p>\n<p>\n<code>    \ttype           \t= \"org\"<\/code><\/p>\n<p>\n<code>\t}<\/code><\/p>\n<p>\n<code>}<br \/>\n<\/code><\/p>\n<\/p>\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<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/mclouds\/blog\/520314\/\">habr.com<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<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 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware \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. \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: 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 \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \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 \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 1. [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":95196,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-95195","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\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 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware \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.\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: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\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\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\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\u04391. 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\u0435Terraform\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\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 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\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 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware \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.\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: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\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\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\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\u04391. 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\u0435Terraform\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-09-26T05:42:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-09-26T05:42:41+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47 Si t\u00eb menaxhoni infrastruktur\u00ebn n\u00eb re me Terraform | ProHoster","description":"N\u00eb k\u00ebt\u00eb artikull do t\u00eb shqyrtojm\u00eb nga \u00e7far\u00eb p\u00ebrb\u00ebhet Terraform, si dhe do t\u00eb nisemi hap pas hapi n\u00eb nd\u00ebrtimin e infrastruktur\u00ebs son\u00eb n\u00eb re me VMware \u2014 do t\u00eb p\u00ebrgatisim tre VM p\u00ebr q\u00ebllime t\u00eb ndryshme: proxy, ruajtje skedari dhe CMS. T\u00eb gjitha n\u00eb detaje dhe n\u00eb tre etapa: Terraform \u2014 p\u00ebrshkrimi, p\u00ebrpar\u00ebsit\u00eb dhe p\u00ebrb\u00ebr\u00ebsit\u00eb. Krijimi i infrastruktur\u00ebs. Inizializimi i infrastruktur\u00ebs. Puna e Terraform me infrastruktur\u00ebn e ekzistuese.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\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 | ProHoster","og:description":"\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 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0441 VMware \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.\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: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\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\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\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\u04391. 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\u0435Terraform","og:url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-upravlyat-oblachnoj-infrastrukturoj-s-pomoshhyu-terraform","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-09-26T05:42:41+00:00","article:modified_time":"2020-09-26T05:42:41+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"95195","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 11:10:36","updated":"2022-10-01 15:04:58"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/95195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=95195"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/95195\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/95196"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=95195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=95195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=95195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}