Verified Commit 81c79cb6 authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

Allow to configure autodetection

parent 493e2a93
Pipeline #75367 passed with stages
in 14 minutes and 41 seconds
......@@ -38,6 +38,11 @@ checkmk_install_nginx_plugin: false
```
Decide wether to install the NGINX plugin
```yaml
checkmk_nginx_plugin_enable_autodetect: True
```
Decide whether the NGINX plugin should use autodetect or not
```yaml
checkmk_nginx_plugin_port: 80
```
......
......@@ -31,3 +31,6 @@ checkmk_nginx_plugin_executable: "nginx_status.py"
# Configuration template of the NGINX plugin
checkmk_nginx_plugin_cfg_template: "nginx_status.cfg.j2"
# Decide whether the NGINX plugin should use autodetect or not
checkmk_nginx_plugin_enable_autodetect: True
......@@ -26,5 +26,6 @@ provisioner:
all:
vars:
checkmk_install_nginx_plugin: true
checkmk_nginx_plugin_enable_autodetect: False
verifier:
name: ansible
......@@ -58,5 +58,12 @@
mode: "0644"
owner: "root"
group: "root"
when: "not checkmk_nginx_plugin_enable_autodetect"
- name: "Remove NGINX plugin configuration if autodetect is active"
ansible.builtin.file:
path: "/etc/check_mk/nginx_status.cfg"
state: "absent"
when: "checkmk_nginx_plugin_enable_autodetect"
...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment