Files
role-check-mk-agent/defaults/main.yml

44 lines
1.8 KiB
YAML
Raw Normal View History

2020-10-13 16:33:32 +13:00
---
cmk_add_host: false # Should be true/false whether we should automatically add host for monitoring.
2020-10-14 22:57:15 +13:00
cmk_omd_protocol: http # Should be http or https
2020-10-13 16:33:32 +13:00
cmk_omd_host: your-checkmk-hostname
cmk_omd_site: your-checkmk-site # e.g the first piece after the / following your hostname
2020-10-14 23:18:33 +13:00
2020-10-13 16:33:32 +13:00
# If you have created a folder in WATO already you want hosts to be put in when registered
# uncomment cmk_folder below and specify the folder to use. Otherwise the role creates and
# adds new hosts by default to Unsorted folder
# cmk_folder: your_folder_in_WATO
2020-10-14 23:18:33 +13:00
# Copy paste the link address for rpm agent from CheckMK
2020-10-13 16:33:32 +13:00
cmk_rpm_agent: http://url-from-your-agent-bakery-in-checkmk.rpm
2020-10-14 23:18:33 +13:00
# Copy paste the link address for MSI (Windows) agent from CheckMK
2020-10-13 16:33:32 +13:00
cmk_msi_agent: http://url-from-your-agent-bakery-in-checkmk.msi
2020-11-25 11:19:22 +13:00
# Check_MK GPG Key
# Copy paste the link address from Signature Keys for Signing Agents page
cmk_gpg_key_id: 1
cmk_gpg_key_url: "{{ cmk_omd_protocol }}://{{ cmk_omd_host }}/{{ cmk_omd_site }}/check_mk/wato.py?key={{ cmk_gpg_key_id }}&mode=download_signature_key"
2020-10-13 16:33:32 +13:00
# Should be username of an automation user in checkmk
cmk_username: some-username
# This should be populated with the secret for your automation user
# I recommend encrypting this with ansible-vault.
# Example: ansible-vault encrypt_string somesecret_string --name cmk_secret
cmk_secret: some-secret
2020-10-14 23:18:33 +13:00
2020-10-13 16:33:32 +13:00
# Combined string required for unattended actions
cmk_auth: "&_username={{ cmk_username }}&_secret={{ cmk_secret }}"
# This variable is used to detect whether this is a fresh install
# Is changed to true if check-mk-agent gets installed
cmk_fresh_install: false
# This variable if set to true will force installation to run regardless of whether
# CheckMK is already installed.
# Breaks idempotence but allows role to be used to force upgrade agents.
cmk_force_install: false
2021-05-08 05:58:43 +12:00
cmk_guest_ip: "{{ ansible_host }}"