lib/cloudstack-nagios/commands/nagios_config.rb in cloudstack-nagios-0.8.2 vs lib/cloudstack-nagios/commands/nagios_config.rb in cloudstack-nagios-0.9.0

- old
+ new

@@ -10,10 +10,18 @@ option :if_speed, desc: 'network interface speed in bits per second', type: :numeric, default: 1000000, aliases: '-s' + option :ssh_key, + desc: 'ssh private key to use', + default: '/var/lib/cloud/management/.ssh/id_rsa' + option :ssh_port, + desc: 'ssh port to use', + type: :numeric, + default: 3922, + aliases: '-p' option :over_provisioning, type: :numeric, default: 1.0 def generate(*configs) configs = get_configs(configs) if configs.size == 0 say "Please specify a valid configuration.", :green @@ -48,9 +56,11 @@ config_file: options[:config], zones: zones, capacity_types: Capacity::CAPACITY_TYPES, storage_pools: pools, over_provisioning: options[:over_provisioning], + ssh_key: options[:ssh_key], + ssh_port: options[:ssh_port] ) end footer = load_template(File.join(TEMPLATE_DIR, "footer.cfg.erb")) output += footer.result( config_name: config_name \ No newline at end of file