Skip to content

Commit

Permalink
fix(role/agent): cleanup to a working state (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Feb 23, 2024
1 parent 950e97d commit f746870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion roles/agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Opinionated Zabbix agent installation

| Variable | Default |
| -------- | ------- |
| `foreman_fqdn` | from [Foreman](https://theforeman.org/) |
| `foreman.foreman_fqdn` | from [Foreman](https://theforeman.org/) |
| `radiorabe_core_int_hostname` | from [`radiorabe.common.core`](https://github.com/radiorabe/ansible-collection-common/tree/main/roles/core) |

## Dependencies
Expand Down
12 changes: 6 additions & 6 deletions roles/agent/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
- name: zabbix-agent
group: zabbix
ca: ipa
dns: "{{ foreman_fqdn }}"
principal: "zabbix/{{ foreman_fqdn }}@{{ radiorabe_core_int_hostname | ansible.builtin.upper }}"
dns: "{{ foreman.foreman_fqdn }}"
principal: "zabbix/{{ foreman.foreman_fqdn }}@{{ radiorabe_core_int_hostname | upper }}"
ansible.builtin.include_role:
name: "{{ _radiorabe_zabbix_agent_certificates_rolename }}"
tags:
Expand All @@ -33,16 +33,16 @@
# config
zabbix_agent_dont_detect_ip: true
# environment specific
zabbix_agent2_server: "{{ radiorabe_zabbix_server }}"
zabbix_agent2_serveractive: "{{ radiorabe_zabbix_serveractive }}"
zabbix_agent2_server: "{{ radiorabe_zabbix_agent_server }}"
zabbix_agent2_serveractive: "{{ radiorabe_zabbix_agent_serveractive }}"
# tls
zabbix_agent2_tlsaccept: "{{ _radiorabe_zabbix_agent_zabbix_agent_tls }}"
zabbix_agent2_tlsconnect: "{{ _radiorabe_zabbix_agent_zabbix_agent_tls }}"
zabbix_agent2_tlscafile: "{{ _radiorabe_zabbix_agent_zabbix_agent_cafile }}"
zabbix_agent2_tlscertfile: "{{ _radiorabe_zabbix_agent_zabbix_agent_tlscertfile }}"
zabbix_agent2_tlskeyfile: "{{ _radiorabe_zabbix_agent_zabbix_agent_tlskeyfile }}"
zabbix_agent2_tlsservercertissuer: "CN=Certificate Authority,O={{ radiorabe_core_int_hostname | ansible.builtin.upper }}"
zabbix_agent2_tlsservercertsubject: "CN={{ radiorabe_zabbix_server }},O={{ radiorabe_core_int_hostname | ansible.builtin.upper }}"
zabbix_agent2_tlsservercertissuer: "CN=Certificate Authority,O={{ radiorabe_core_int_hostname | upper }}"
zabbix_agent2_tlsservercertsubject: "CN={{ radiorabe_zabbix_agent_server }},O={{ radiorabe_core_int_hostname | upper }}"
ansible.builtin.include_role:
name: "{{ _radiorabe_zabbix_agent_zabbix_agent_rolename }}"
tags:
Expand Down

0 comments on commit f746870

Please sign in to comment.