mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-16 16:37:33 -02:30
improved proxy support
This commit is contained in:
@@ -28,6 +28,18 @@
|
||||
backup: yes
|
||||
register: vault_systemd_placement
|
||||
|
||||
- name: Create vault service systemd directory
|
||||
file:
|
||||
path: /etc/systemd/system/vault.service.d
|
||||
state: directory
|
||||
|
||||
- name: cluster/systemd | Add vault proxy env vars
|
||||
template:
|
||||
src: "http-proxy.conf.j2"
|
||||
dest: /etc/systemd/system/vault.service.d/http-proxy.conf
|
||||
backup: yes
|
||||
when: http_proxy is defined or https_proxy is defined or no_proxy is defined
|
||||
|
||||
- name: cluster/systemd | Enable vault.service
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
||||
2
roles/vault/templates/http-proxy.conf.j2
Normal file
2
roles/vault/templates/http-proxy.conf.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment={% if http_proxy %}"HTTP_PROXY={{ http_proxy }}"{% endif %} {% if https_proxy %}"HTTPS_PROXY={{ https_proxy }}"{% endif %} {% if no_proxy %}"NO_PROXY={{ no_proxy }}"{% endif %}
|
||||
Reference in New Issue
Block a user