Skip to content

Commit 7d86e2d

Browse files
committed
Add HTTP proxy vars to server role.
1 parent b9fe309 commit 7d86e2d

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- server role - Add support for optional use of a HTTP proxy for downloading the Checkmk Server Setup and GPG Key.

roles/server/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ Extension packages can also be listed to be installed on the specific central si
136136

137137
**Attention!** If you are connecting to the remote host via an unprivileged user, you will run into permission issues explained [here](https://docs.ansible.com/ansible-core/2.18/playbook_guide/playbooks_privilege_escalation.html#risks-of-becoming-an-unprivileged-user). The easiest fix will probably be to install your distribution's `acl` package. But the right solution for your environment is entirely up to you.
138138

139+
#### HTTP Proxy
140+
141+
checkmk_server_download_proxy: []
142+
143+
The HTTP proxy used for downloading the Checkmk Server Setup.
144+
145+
checkmk_server_gpg_download_proxy: "{{ checkmk_server_download_proxy }}"
146+
147+
The HTTP proxy used for downloading the Checkmk GPG Key.
148+
139149
### Site Updates
140150

141151
checkmk_server_backup_on_update: true

roles/server/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,7 @@ checkmk_server_backup_on_update: true # Not recommended to disable this option
7575
checkmk_server_backup_dir: '/tmp'
7676
checkmk_server_backup_opts: '--no-past'
7777
checkmk_server_allow_downgrades: 'false'
78+
79+
## HTTP Proxy
80+
checkmk_server_download_proxy: []
81+
checkmk_server_gpg_download_proxy: "{{ checkmk_server_download_proxy }}"

roles/server/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
mode: "0640"
6464
url_username: "{{ checkmk_server_download_user | default(omit) }}"
6565
url_password: "{{ checkmk_server_download_pass | default(omit) }}"
66+
environment:
67+
http_proxy: "{{ checkmk_server_download_proxy | default(omit, true) }}"
68+
https_proxy: "{{ checkmk_server_download_proxy | default(omit, true) }}"
6669
retries: 3
6770
tags:
6871
- download-package
@@ -74,6 +77,9 @@
7477
mode: "0640"
7578
url_username: "{{ checkmk_server_gpg_download_user | default(omit) }}"
7679
url_password: "{{ checkmk_server_gpg_download_pass | default(omit) }}"
80+
environment:
81+
http_proxy: "{{ checkmk_server_gpg_download_proxy | default(omit, true) }}"
82+
https_proxy: "{{ checkmk_server_gpg_download_proxy | default(omit, true) }}"
7783
when: checkmk_server_verify_setup | bool
7884
retries: 3
7985
tags:

0 commit comments

Comments
 (0)