Skip to content

Commit

Permalink
feat(agent): Allow disabling certificate generation via var (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Nov 18, 2024
1 parent c3e7c2a commit 764d020
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Opinionated Zabbix agent installation
| `radiorabe_zabbix_agent_server` | `monitoring.service.int.rabe.ch` |
| `radiorabe_zabbix_agent_serveractive` | `monitoring.service.int.rabe.ch` |
| `radiorabe_zabbix_agent_extra_allow_key` | `[]`, the role add some defaults that are sane for our case |
| `radiorabe_zabbix_agent_generate_cert` | `true` |

### Other Variables

Expand Down
1 change: 1 addition & 0 deletions roles/agent/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
radiorabe_zabbix_agent_server: monitoring.service.int.rabe.ch
radiorabe_zabbix_agent_serveractive: monitoring.service.int.rabe.ch
radiorabe_zabbix_agent_extra_allow_key: []
radiorabe_zabbix_agent_generate_cert: true

_radiorabe_zabbix_agent_package_name: zabbix-agent2
_radiorabe_zabbix_agent_package_state: present
Expand Down
1 change: 1 addition & 0 deletions roles/agent/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
principal: "zabbix/{{ foreman.foreman_fqdn }}@{{ radiorabe_core_int_hostname | upper }}"
ansible.builtin.include_role:
name: "{{ _radiorabe_zabbix_agent_certificate_rolename }}"
when: radiorabe_zabbix_agent_generate_cert
tags:
- role::rabe_zabbix.agent
- role::rabe_zabbix.agent.certificates
Expand Down

0 comments on commit 764d020

Please sign in to comment.