From 8c36a71fe23f51f35732ad22e7b43dace2978f73 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 22 Oct 2014 19:26:31 +0200 Subject: [PATCH] Cli: Update agent wizard todos refs #7248 --- lib/cli/agentwizardcommand.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/lib/cli/agentwizardcommand.cpp b/lib/cli/agentwizardcommand.cpp index 8e39222e3..974f70db3 100644 --- a/lib/cli/agentwizardcommand.cpp +++ b/lib/cli/agentwizardcommand.cpp @@ -56,5 +56,36 @@ int AgentWizardCommand::Run(const boost::program_options::variables_map& vm, con Log(LogWarning, "cli", "TODO: Not implemented yet."); + /* + * The wizard will get all information from the user, + * and then call all required functions. + */ + + std::cout << "Welcome to the Icinga 2 Setup Wizard!\n" + << "\n" + << "We'll guide you through all required configuration details.\n" + << "\n" + << "If you have questions, please consult the documentation at http://docs.icinga.org\n" + << "or join the community support channels at https://support.icinga.org\n" + << "\n\n"; + + //TODO: Add sort of bash completion to path input? + + + /* 0. master or agent setup? + * 1. Ticket + * 2. Master information for autosigning + * 3. Trusted cert location + * 4. CN to use (defaults to FQDN) + * 5. Local CA + * 6. New self signed certificate + * 7. Request signed certificate from master + * 8. copy key information to /etc/icinga2/pki + * 9. enable ApiListener feature + * 10. generate zones.conf with endpoints and zone objects + * 11. set NodeName = cn in constants.conf + * 12. reload icinga2, or tell the user to + */ + return 0; }