New in version 2017.7.0.
Icinga2 Python module
See salt.modules.icinga2
for setup instructions.
The icinga2 module is used to execute commands. Its output may be stored in a file or in a grain.
command_id:
icinga2.generate_ticket:
- name: domain.tld
- output: "/tmp/query_id.txt"
salt.states.icinga2.
generate_cert
(name)¶Generate an icinga2 certificate and key on the client.
The domain name for which this certificate and key will be generated
salt.states.icinga2.
generate_ticket
(name, output=None, grain=None, key=None, overwrite=True)¶Generate an icinga2 ticket on the master.
The domain name for which this ticket will be generated
grain: output in a grain other: the file to store results None: output to the result comment (default)
grain to store the output (need output=grain)
the specified grain will be treated as a dictionary, the result of this state will be stored under the specified key.
The file or grain will be overwritten if it already exists (default)
salt.states.icinga2.
node_setup
(name, master, ticket)¶Setup the icinga2 node.
The domain name for which this certificate will be saved
Icinga2 master node for which this certificate will be saved
Authentication ticket generated on icinga2 master
salt.states.icinga2.
request_cert
(name, master, ticket, port='5665')¶Request CA certificate from master icinga2 node.
The domain name for which this certificate will be saved
Icinga2 master node for which this certificate will be saved
Authentication ticket generated on icinga2 master
Icinga2 port, defaults to 5665
salt.states.icinga2.
save_cert
(name, master)¶Save the certificate on master icinga2 node.
The domain name for which this certificate will be saved
Icinga2 master node for which this certificate will be saved