Commit e63fd73d authored by Matthew Smith's avatar Matthew Smith
Browse files

improve comments

add ip and fall back fqdn for degelate to
parent 5e256a30
---
# Client settings (self: satellite, agent)
## Client settings (self: satellite, agent)
icinga_client_fqdn: "{{ ansible_fqdn }}"
icinga_client_ip: "{{ ansible_default_ipv4.address }}"
icinga_client_ip: "{{ ansible_host }}"
icinga_client_certs_path: /var/lib/icinga2/certs/
icinga_client_win_certs_path: 'C:\ProgramData\icinga2\etc\icinga2\pki\'
# How to get the ticket from the master; choice (ansible, director)
## How to get the ticket from the master; choice (ansible, director)
icinga_client_generate_ticket: "ansible"
# Parent setting (upstream: master, satellite)
## Parent setting (upstream: master, satellite)
icinga_parent_port: 5665
icinga_parent_endpoint: "{{ icinga_parent_fqdn ~ ',' ~ icinga_parent_ip ~ ',' ~ icinga_parent_port }}"
# Director settings
## Director settings
icinga_director_user: admin
# icinga_director_pass: set this in vaulted group or host vars
icinga_director_host_protocol: http
icinga_director_url: "{{ icinga_director_host_protocol ~ '://' ~ icinga_master_fqdn ~ '/icingaweb2/director' }}"
## Icinga Master settings
# icinga_master_fqdn: in http connection or icinga_client_generate_ticket == "ansible"
# icinga_master_ip: used if icinga_master_fqdn when using icinga_client_generate_ticket == "ansible"
- name: Get Icinga client ticket using ansible (icinga master)
command: sudo -u nagios /usr/sbin/icinga2 pki ticket --cn {{ icinga_client_fqdn }} # Added nagios line to /etc/sudoers on above host, after #include line
delegate_to: "{{ icinga_master_fqdn }}"
delegate_to: "{{ icinga_master_ip | default(icinga_master_fqdn) }}"
become: false
register: icinga_client_ticket
......
Supports Markdown
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