Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cstegm opened this issue May 23, 2018 · 0 comments
Open

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

cstegm opened this issue May 23, 2018 · 0 comments

Comments

@cstegm
Copy link

cstegm commented May 23, 2018

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/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant