mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
Merge pull request #4661 from jason-riddle/patch-1
Add ENV['no_proxy'] to chef provisioner if no_proxy is detected
This commit is contained in:
commit
52d1e214fb
3 changed files with 11 additions and 3 deletions
|
|
@ -328,4 +328,6 @@ ENV['https_proxy'] = "https://proxy.local"
|
|||
ENV['HTTPS_PROXY'] = "https://proxy.local"
|
||||
|
||||
|
||||
no_proxy "http://local.local,https://local.local"`
|
||||
|
||||
no_proxy "http://local.local,https://local.local"
|
||||
ENV['no_proxy'] = "http://local.local,https://local.local"`
|
||||
|
|
|
|||
|
|
@ -60,7 +60,11 @@ ENV['https_proxy'] = "{{ .HTTPSProxy }}"
|
|||
ENV['HTTPS_PROXY'] = "{{ .HTTPSProxy }}"
|
||||
{{ end }}
|
||||
|
||||
{{ if .NOProxy }}no_proxy "{{ join .NOProxy "," }}"{{ end }}
|
||||
{{ if .NOProxy }}
|
||||
no_proxy "{{ join .NOProxy "," }}"
|
||||
ENV['no_proxy'] = "{{ join .NOProxy "," }}"
|
||||
{{ end }}
|
||||
|
||||
{{ if .SSLVerifyMode }}ssl_verify_mode {{ .SSLVerifyMode }}{{ end }}
|
||||
|
||||
{{ if .DisableReporting }}enable_reporting false{{ end }}
|
||||
|
|
|
|||
|
|
@ -355,4 +355,6 @@ ENV['https_proxy'] = "https://proxy.local"
|
|||
ENV['HTTPS_PROXY'] = "https://proxy.local"
|
||||
|
||||
|
||||
no_proxy "http://local.local,https://local.local"`
|
||||
|
||||
no_proxy "http://local.local,https://local.local"
|
||||
ENV['no_proxy'] = "http://local.local,https://local.local"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue