chrnie / ansible-role-icinga2

install icinga2 on rhel or debian
Apache License 2.0
2 stars 6 forks source link

Task "node setup" for agents expects not existing parameters #2

Open cstegm opened 6 years ago

cstegm commented 6 years ago

Non existent parameters parent_host and parent_zone used in Task:

- name: node setup
  shell: |
    {{ icinga2_binary }} node setup \
    --ticket {{ icinga2_client_ticket['stdout'] }} \
    --zone {{ inventory_hostname }} \
    --parent_host {{ icinga2_cert_request_host }} \
    --parent_zone {{ icinga2_ZoneName }} \
    --trustedcert /var/lib/icinga2/certs/trustedcert.crt \
    --cn {{ icinga2_nodename }} \
    --accept-commands \
    --accept-config
  args:
    creates: /etc/icinga2/zones.conf.orig
  notify: Test config before restart icinga 2
  when: icinga2_role == "agent"
  ignore_errors: '{{ ansible_check_mode }}'
icinga2 node setup --help
icinga2 - The Icinga 2 network monitoring daemon (version: r2.8.4-1)

Usage:
  icinga2 node setup [<arguments>]

Sets up an Icinga 2 node.

Global options:
  -h [ --help ]             show this help message
  -V [ --version ]          show version information
  --color                   use VT100 color codes even when stdout is not a
                            terminal
  -D [ --define ] arg       define a constant
  -a [ --app ] arg          application library name (default: icinga)
  -l [ --library ] arg      load a library
  -I [ --include ] arg      add include search directory
  -x [ --log-level ] arg    specify the log level for the console log.
                            The valid value is either debug, notice,
                            information (default), warning, or critical
  -X [ --script-debugger ]  whether to enable the script debugger

Command options:
  --zone arg            The name of the local zone
  --master_host arg     The name of the master host for auto-signing the csr;
                        syntax: host[,port]
  --endpoint arg        Connect to remote endpoint; syntax: cn[,host,port]
  --listen arg          Listen on host,port
  --ticket arg          Generated ticket number for this request (optional)
  --trustedcert arg     Trusted master certificate file
  --cn arg              The certificate's common name
  --accept-config       Accept config from master
  --accept-commands     Accept commands from master
  --master              Use setup for a master instance

Report bugs at <https://github.com/Icinga/icinga2>
Get support: <https://www.icinga.com/support/>
Icinga home page: <https://www.icinga.com/>