mirror of https://github.com/Icinga/icinga2.git
node setup: indent accept_config and accept_commands
fixes #9450 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
197ae9541e
commit
7cd0077ab5
|
@ -463,15 +463,18 @@ int NodeSetupCommand::SetupNode(const boost::program_options::variables_map& vm,
|
|||
if (tokens.size() > 1)
|
||||
fp << " bind_port = " << tokens[1] << "\n";
|
||||
}
|
||||
|
||||
fp << "\n";
|
||||
|
||||
if (vm.count("accept-config"))
|
||||
fp << "accept_config = true\n";
|
||||
fp << " accept_config = true\n";
|
||||
else
|
||||
fp << "accept_config = false\n";
|
||||
fp << " accept_config = false\n";
|
||||
|
||||
if (vm.count("accept-commands"))
|
||||
fp << "accept_commands = true\n";
|
||||
fp << " accept_commands = true\n";
|
||||
else
|
||||
fp << "accept_commands = false\n";
|
||||
fp << " accept_commands = false\n";
|
||||
|
||||
fp << "\n"
|
||||
<< " ticket_salt = TicketSalt\n"
|
||||
|
|
|
@ -394,6 +394,7 @@ wizard_ticket:
|
|||
<< " cert_path = SysconfDir + \"/icinga2/pki/\" + NodeName + \".crt\"\n"
|
||||
<< " key_path = SysconfDir + \"/icinga2/pki/\" + NodeName + \".key\"\n"
|
||||
<< " ca_path = SysconfDir + \"/icinga2/pki/ca.crt\"\n"
|
||||
<< "\n"
|
||||
<< " accept_config = " << accept_config << "\n"
|
||||
<< " accept_commands = " << accept_commands << "\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue