{"id":330244,"date":"2022-03-01T21:00:16","date_gmt":"2022-03-01T21:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=330244"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=330244","title":{"rendered":"<span>Terraform error 405 Not allowed. \u0421\u043f\u0430\u0441\u0430\u0435\u0442 \u0412\u041f\u041d<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0441 \u0443\u0442\u0440\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 jenkins, \u0432\u044b\u043b\u0435\u0442\u0430\u043b\u0438 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439. <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">Terraform and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.<\/p>\n<p>  Error: Failed to install provider<\/p>\n<p>  Error while installing hashicorp\/vsphere v2.0.2: could not query provider registry for registry.terraform.io\/hashicorp\/vsphere: failed to retrieve authentication checksums for provider: 405 Not allowed<\/p>\n<p>  Error: Failed to install provider<\/p>\n<p>  Error while installing hashicorp\/dns v3.2.1: could not query provider registry for registry.terraform.io\/hashicorp\/dns: failed to retrieve authentication checksums for provider: 405 Not allowed<\/p><\/div>\n<\/p><\/div>\n<p>  \u0422\u0443\u0442\u043e\u0440, \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0432\u043f\u043d \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c \u0432 \u0441\u0442\u0440\u043e\u0439!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/fj\/ww\/lo\/fjwwlocvhl56jmr8twbyjrfmnfy.jpeg\" alt=\"image\" data-src=\"https:\/\/habrastorage.org\/webt\/fj\/ww\/lo\/fjwwlocvhl56jmr8twbyjrfmnfy.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e <a href=\"https:\/\/releases.hashicorp.com\/terraform\/\" rel=\"nofollow noopener noreferrer\">releases.hashicorp.com\/terraform<\/a> \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c Error 405 Not allowed. \u0420\u0430\u0437\u0432\u0435\u043b\u0438 \u0440\u0443\u043a\u0430\u043c\u0438. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u043d\u044c\u043a\u043e \u0432\u043f\u043d \u0438 \u043f\u0443\u0448\u0438\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e hashicorp. <\/p>\n<p>  \u041f\u0440\u0438\u043e\u0431\u0440\u0435\u043b\u0438 VDS \u0432 \u0424\u0438\u043d\u043b\u044f\u043d\u0434\u0438\u0438 (\u043d\u0435 \u0440\u0435\u043a\u043b\u0430\u043c\u0430). \u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0448\u043b\u0438 \u043d\u0430 vds \u0438 \u043f\u0440\u043e\u043a\u0430\u0442\u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<pre><code class=\"bash\">wget https:\/\/git.io\/vpn -O openvpn-install.sh &amp;&amp; bash openvpn-install.sh<\/code><\/pre>\n<p>  \u0423\u0434\u043e\u0431\u043d\u043e \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"https:\/\/github.com\/Nyr\/openvpn-install\" rel=\"nofollow noopener noreferrer\">gitlab<\/a><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u043b\u0438 \u0434\u0432\u0443\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432:<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430; <\/p>\n<p>  \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u043a\u0430\u0442\u0438\u0432 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0441\u043a\u0440\u0438\u043f\u0442 openvpn-install.sh.<br \/>  \u0427\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u043c\u0435\u043d\u044f\u0435\u043c openvpn \u0441\u0435\u0440\u0432\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433 <\/p>\n<pre><code class=\"bash\">vi \/etc\/openvpn\/server\/server.conf  \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u043b\u0438 \u0432\u0441\u0435 #push \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0439  push route \"151.101.37.183 255.255.255.255\"<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0441\u043b\u0443\u0436\u0431\u0443 \u0432\u043f\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<pre><code class=\"bash\">systemctl restart openvpn-server@server.service<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0448\u043b\u0438 \u043d\u0430 jenkins \u0430\u0433\u0435\u043d\u0442\u0430 ( \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 ). \u0418 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 openvpn (\u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0443 \u043d\u0438\u0445 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u043b\u0430\u043a\u043e\u043d\u0435)<\/p>\n<pre><code class=\"bash\">centos  sudo yum install epel-release -y sudo yum install openvpn -y ubuntu  sudo apt install openvpn <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0432 \/etc\/openvpn\/openi.conf (\u041e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u043b\u0441\u044f \u043d\u0430 i.conf) \u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u043d\u0430\u0448\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 openvpn.<\/p>\n<p>  \u041a\u043e\u043c\u043c\u0435\u043d\u0442 \u043e\u0442 \u0441\u0435\u0431\u044f:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0414\u043e\u043b\u0433\u043e \u0442\u0443\u043f\u0438\u043b \u0438 \u043d\u0435 \u043c\u043e\u0433 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0447\u0435\u043c \u043a\u043e\u0441\u044f\u043a, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \/usr\/lib\/systemd\/system\/openvpn@.service<br \/>  \u0418 \u0432 \u043d\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u043b:<br \/>  ExecStart=\/usr\/sbin\/openvpn &#8212;cd \/etc\/openvpn\/ &#8212;config %i.conf<br \/>  \u0420\u0435\u0430\u043b\u044c\u043d\u043e, \u041a\u0430\u0440\u043b? \u0417\u0430\u0447\u0435\u043c ??? \/etc\/openvpn\/ \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \/etc\/openvpn\/client\/ %i.conf \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043c\u0430\u043b\u043e \u043e\u0442\u0432\u0435\u0442\u043e\u0432.<\/div>\n<\/p><\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"> systemctl start openvpn@openi  systemctl enable openvpn@openi<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0438\u0442\u043e\u0433, \u0441\u0431\u043e\u0440\u043a\u0438 \u0432\u0435\u0440\u043d\u0443\u043b\u0438\u0441\u044c \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0435 \u0440\u0443\u0441\u043b\u043e. \u0414\u0430\u043b\u0435\u0435 \u0434\u0443\u043c\u0430\u0435\u043c, \u043a\u0430\u043a \u0437\u0430\u043f\u0438\u0445\u0430\u0442\u044c \u0432\u0441\u0435 \u0432 Nexus \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0442\u0435\u043c\u043f\u0430\u043c\u0438. <\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0443 \u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043c\u0430\u0448\u0438\u043d, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u043a\u0443\u0434\u0430-\u043b\u0438\u0431\u043e (\u0445\u043e\u0442\u044c \u043d\u0430 Mikrotik) \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u0448\u043b\u044e\u0437\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043a \u0445\u0430\u0448\u0438\u043a\u043e\u0440\u043f\u0443 (151.101.37.183).<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0432\u0442\u0440\u0430 \u0442\u0443\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0449\u0435 \u043f\u0430\u0440\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432. <\/p>\n<p>  \u0423 \u043a\u043e\u0433\u043e \u043a\u0430\u043a\u0438\u0435 \u0438\u0434\u0435\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 terraform?<\/p><\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/653997\/\"> https:\/\/habr.com\/ru\/post\/653997\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0441 \u0443\u0442\u0440\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 jenkins, \u0432\u044b\u043b\u0435\u0442\u0430\u043b\u0438 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439. <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">Terraform and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.<\/p>\n<p>  Error: Failed to install provider<\/p>\n<p>  Error while installing hashicorp\/vsphere v2.0.2: could not query provider registry for registry.terraform.io\/hashicorp\/vsphere: failed to retrieve authentication checksums for provider: 405 Not allowed<\/p>\n<p>  Error: Failed to install provider<\/p>\n<p>  Error while installing hashicorp\/dns v3.2.1: could not query provider registry for registry.terraform.io\/hashicorp\/dns: failed to retrieve authentication checksums for provider: 405 Not allowed<\/p><\/div>\n<\/p><\/div>\n<p>  \u0422\u0443\u0442\u043e\u0440, \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0432\u043f\u043d \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c \u0432 \u0441\u0442\u0440\u043e\u0439!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/fj\/ww\/lo\/fjwwlocvhl56jmr8twbyjrfmnfy.jpeg\" alt=\"image\" data-src=\"https:\/\/habrastorage.org\/webt\/fj\/ww\/lo\/fjwwlocvhl56jmr8twbyjrfmnfy.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e <a href=\"https:\/\/releases.hashicorp.com\/terraform\/\" rel=\"nofollow noopener noreferrer\">releases.hashicorp.com\/terraform<\/a> \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c Error 405 Not allowed. \u0420\u0430\u0437\u0432\u0435\u043b\u0438 \u0440\u0443\u043a\u0430\u043c\u0438.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-330244","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/330244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=330244"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/330244\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=330244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=330244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=330244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}