def node_setup(domain, master, ticket):
 result = __salt__['cmd.run']('icinga2 node setup --ticket {0} --endpoint {1} --zone {2} --master_host {1} --trustedcert /etc/icinga2/pki/trusted-master.crt'.format(ticket, master, domain))
 return result

def node_setup ( domain , master , ticket ) : result = __salt__ [ 'cmd.run' ] ( 'icinga2 node setup --ticket {0} --endpoint {1} --zone {2} --master_host {1} --trustedcert /etc/icinga2/pki/trusted-master.crt' . format ( ticket , master , domain ) ) return result
setup the icinga2 node .