Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/http_proxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- server role - Add support for optional use of a HTTP proxy for downloading the Checkmk Server Setup and GPG Key.
10 changes: 10 additions & 0 deletions roles/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ Extension packages can also be listed to be installed on the specific central si

**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.

#### HTTP Proxy

checkmk_server_download_proxy: []

The HTTP proxy used for downloading the Checkmk Server Setup.

checkmk_server_gpg_download_proxy: "{{ checkmk_server_download_proxy }}"

The HTTP proxy used for downloading the Checkmk GPG Key.

### Site Updates

checkmk_server_backup_on_update: true
Expand Down
4 changes: 4 additions & 0 deletions roles/server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ checkmk_server_backup_on_update: true # Not recommended to disable this option
checkmk_server_backup_dir: '/tmp'
checkmk_server_backup_opts: '--no-past'
checkmk_server_allow_downgrades: 'false'

## HTTP Proxy
checkmk_server_download_proxy: []
checkmk_server_gpg_download_proxy: "{{ checkmk_server_download_proxy }}"
6 changes: 6 additions & 0 deletions roles/server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
mode: "0640"
url_username: "{{ checkmk_server_download_user | default(omit) }}"
url_password: "{{ checkmk_server_download_pass | default(omit) }}"
environment:
http_proxy: "{{ checkmk_server_download_proxy | default(omit, true) }}"
https_proxy: "{{ checkmk_server_download_proxy | default(omit, true) }}"
retries: 3
tags:
- download-package
Expand All @@ -74,6 +77,9 @@
mode: "0640"
url_username: "{{ checkmk_server_gpg_download_user | default(omit) }}"
url_password: "{{ checkmk_server_gpg_download_pass | default(omit) }}"
environment:
http_proxy: "{{ checkmk_server_gpg_download_proxy | default(omit, true) }}"
https_proxy: "{{ checkmk_server_gpg_download_proxy | default(omit, true) }}"
when: checkmk_server_verify_setup | bool
retries: 3
tags:
Expand Down