Upload files to "vars"
This commit is contained in:
parent
d3c10762ea
commit
3ef564bab7
11
vars/Debian.yml
Normal file
11
vars/Debian.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
__checkmk_agent_host_tmp_dir: "/tmp"
|
||||
|
||||
__checkmk_agent_agent:
|
||||
url:
|
||||
cre: "{{ __checkmk_agent_site_url }}/check_mk/agents/check-mk-agent_{{ checkmk_agent_version }}-1_all.deb"
|
||||
cee: "{{ __checkmk_agent_site_url }}/check_mk/api/1.0/domain-types/agent/actions/download_by_host/invoke"
|
||||
file:
|
||||
cre: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent_{{ checkmk_agent_version }}-vanilla.deb"
|
||||
cee: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent_{{ checkmk_agent_version }}-generic.deb"
|
||||
host: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent_{{ checkmk_agent_version }}-{{ inventory_hostname }}.deb"
|
||||
11
vars/RedHat.yml
Normal file
11
vars/RedHat.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
__checkmk_agent_host_tmp_dir: "/tmp"
|
||||
|
||||
__checkmk_agent_agent:
|
||||
url:
|
||||
cre: "{{ __checkmk_agent_site_url }}/check_mk/agents/check-mk-agent-{{ checkmk_agent_version }}-1.noarch.rpm"
|
||||
cee: "{{ __checkmk_agent_site_url }}/check_mk/api/1.0/domain-types/agent/actions/download_by_host/invoke"
|
||||
file:
|
||||
cre: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent-{{ checkmk_agent_version }}-1.noarch-vanilla.rpm"
|
||||
cee: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent-{{ checkmk_agent_version }}-1.noarch-generic.rpm"
|
||||
host: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent-{{ checkmk_agent_version }}-1.noarch-{{ inventory_hostname }}.rpm"
|
||||
11
vars/Suse.yml
Normal file
11
vars/Suse.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
__checkmk_agent_host_tmp_dir: "/tmp"
|
||||
|
||||
__checkmk_agent_agent:
|
||||
url:
|
||||
cre: "{{ __checkmk_agent_site_url }}/check_mk/agents/check-mk-agent-{{ checkmk_agent_version }}-1.noarch.rpm"
|
||||
cee: "{{ __checkmk_agent_site_url }}/check_mk/api/1.0/domain-types/agent/actions/download_by_host/invoke"
|
||||
file:
|
||||
cre: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent-{{ checkmk_agent_version }}-1.noarch-vanilla.rpm"
|
||||
cee: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent-{{ checkmk_agent_version }}-1.noarch-generic.rpm"
|
||||
host: "{{ __checkmk_agent_host_tmp_dir }}/check-mk-agent-{{ checkmk_agent_version }}-1.noarch-{{ inventory_hostname }}.rpm"
|
||||
13
vars/Windows.yml
Normal file
13
vars/Windows.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
__checkmk_agent_host_tmp_dir: "C:\\Windows\\Temp"
|
||||
__checkmk_agent_controller_binary_path: "C:\\Program Files (x86)\\checkmk\\service\\cmk-agent-ctl.exe"
|
||||
__checkmk_agent_binary_path: "C:\\Program Files (x86)\\checkmk\\service\\check_mk_agent.exe"
|
||||
|
||||
__checkmk_agent_agent:
|
||||
url:
|
||||
cre: "{{ __checkmk_agent_site_url }}/check_mk/agents/windows/check_mk_agent.msi"
|
||||
cee: "{{ __checkmk_agent_site_url }}/check_mk/api/1.0/domain-types/agent/actions/download_by_host/invoke"
|
||||
file:
|
||||
cre: "{{ __checkmk_agent_host_tmp_dir }}\\check-mk-agent_{{ checkmk_agent_version }}.msi"
|
||||
cee: "{{ __checkmk_agent_host_tmp_dir }}\\check-mk-agent_{{ checkmk_agent_version }}.msi"
|
||||
host: "{{ __checkmk_agent_host_tmp_dir }}\\check-mk-agent_{{ checkmk_agent_version }}-{{ inventory_hostname }}.msi"
|
||||
35
vars/main.yml
Normal file
35
vars/main.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
__checkmk_agent_site_url: "{{ checkmk_agent_server_protocol }}://{{ checkmk_agent_server }}:{{ checkmk_agent_server_port }}/{{ checkmk_agent_site }}"
|
||||
|
||||
__checkmk_agent_auth: |-
|
||||
{% if checkmk_agent_secret is defined and checkmk_agent_secret | length > 0 %}{{ checkmk_agent_secret }}{% else %}{{ checkmk_agent_pass }}{% endif %}
|
||||
|
||||
# Due to inconsistent naming of editions, we normalize them here for convenience
|
||||
# Due to inconsistent naming of editions, we normalize them here for convenience.
|
||||
__checkmk_var_legacy_edition_mapping:
|
||||
cre: raw
|
||||
cfe: free
|
||||
cee: enterprise
|
||||
cce: cloud
|
||||
cme: managed
|
||||
|
||||
# Due to renaming of editions starting with 2.5.0, we normalize them here for convenience. Again.
|
||||
__checkmk_var_modern_edition_mapping:
|
||||
cre: community
|
||||
cee: pro
|
||||
cce: ultimate
|
||||
cme: ultimatemt
|
||||
cse: cloud
|
||||
|
||||
# Bringing the above two mappings back together.
|
||||
__checkmk_agent_edition_mapping: >-
|
||||
{{
|
||||
( (checkmk_agent_version | regex_replace('p.*', '')) is version('2.5.0', '<') )
|
||||
| ternary(__checkmk_var_legacy_edition_mapping, __checkmk_var_modern_edition_mapping)
|
||||
}}
|
||||
|
||||
__checkmk_agent_files_mapping:
|
||||
Debian: linux_deb
|
||||
RedHat: linux_rpm
|
||||
Suse: linux_rpm
|
||||
Windows: windows_msi
|
||||
Loading…
Reference in a new issue