2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-10-17 15:13:17 +02:00
|
|
|
|
2015-06-24 14:13:54 +02:00
|
|
|
#ifndef NODEWIZARDCOMMAND_H
|
|
|
|
#define NODEWIZARDCOMMAND_H
|
2014-10-17 15:13:17 +02:00
|
|
|
|
2014-10-20 13:58:21 +02:00
|
|
|
#include "cli/clicommand.hpp"
|
2014-10-17 15:13:17 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
2015-06-24 14:13:54 +02:00
|
|
|
* The "node wizard" command.
|
2014-10-17 15:13:17 +02:00
|
|
|
*
|
|
|
|
* @ingroup cli
|
|
|
|
*/
|
2018-01-04 06:11:04 +01:00
|
|
|
class NodeWizardCommand final : public CLICommand
|
2014-10-17 15:13:17 +02:00
|
|
|
{
|
|
|
|
public:
|
2014-11-07 12:32:25 +01:00
|
|
|
DECLARE_PTR_TYPEDEFS(NodeWizardCommand);
|
2014-10-17 15:13:17 +02:00
|
|
|
|
2018-01-04 05:12:56 +01:00
|
|
|
String GetDescription() const override;
|
|
|
|
String GetShortDescription() const override;
|
|
|
|
int GetMaxArguments() const override;
|
|
|
|
int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
|
|
|
|
ImpersonationLevel GetImpersonationLevel() const override;
|
|
|
|
void InitParameters(boost::program_options::options_description& visibleDesc,
|
2017-12-19 15:50:05 +01:00
|
|
|
boost::program_options::options_description& hiddenDesc) const override;
|
2017-09-06 17:33:54 +02:00
|
|
|
|
|
|
|
private:
|
2019-07-20 12:53:19 +02:00
|
|
|
int AgentSatelliteSetup() const;
|
2018-01-04 04:25:35 +01:00
|
|
|
int MasterSetup() const;
|
2014-10-17 15:13:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-06-24 14:13:54 +02:00
|
|
|
#endif /* NODEWIZARDCOMMAND_H */
|