node setup: indent accept_config and accept_commands

fixes #9450

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
Benedikt Heine 2015-06-18 19:13:10 +02:00 committed by Michael Friedrich
parent 197ae9541e
commit 7cd0077ab5
2 changed files with 8 additions and 4 deletions

View File

@ -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"

View File

@ -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";