morpheus-cli 2.11.3.1 → 2.11.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/morpheus/cli/clouds.rb +2 -0
- data/lib/morpheus/cli/mixins/provisioning_helper.rb +11 -5
- data/lib/morpheus/cli/remote.rb +4 -0
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3f427d3041554bf62a805b36b293a058b8a89b
|
4
|
+
data.tar.gz: 4a1c1fb29ebd0f247751cf8d8a92c338c917353b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2d64120026284e5cc0540aaa82481da3065de12052dd9a82e578af45957bd3987c2bb8afd91e191ed9e771a5f2b4d19c91351b8bd5e130738865aeaeb095fa
|
7
|
+
data.tar.gz: f62bb9929eff3405742a500af3270d24f8a315d66136ccf8cf736f6f349a34334d86b436b1cc545cb378e770e69fe241c8befb5cdf774d55b9fc431b73a82506
|
data/lib/morpheus/cli/clouds.rb
CHANGED
@@ -633,6 +633,8 @@ class Morpheus::Cli::Clouds
|
|
633
633
|
out << "#{white}UNKNOWN#{return_color}"
|
634
634
|
elsif status_string == 'ok'
|
635
635
|
out << "#{green}#{status_string.upcase}#{return_color}"
|
636
|
+
elsif status_string == 'syncing'
|
637
|
+
out << "#{yellow}#{status_string.upcase}#{return_color}"
|
636
638
|
else
|
637
639
|
out << "#{red}#{status_string ? status_string.upcase : 'N/A'}#{cloud['statusMessage'] ? "#{return_color} - #{cloud['statusMessage']}" : ''}#{return_color}"
|
638
640
|
end
|
@@ -878,16 +878,22 @@ module Morpheus::Cli::ProvisioningHelper
|
|
878
878
|
end
|
879
879
|
|
880
880
|
# choose IP unless network has a pool configured
|
881
|
+
ip_required = true
|
881
882
|
if selected_network['id'].to_s.include?('networkGroup')
|
882
|
-
puts "IP Address: Using network group." if !no_prompt
|
883
|
+
#puts "IP Address: Using network group." if !no_prompt
|
884
|
+
ip_required = false
|
883
885
|
elsif selected_network['pool']
|
884
|
-
puts "IP Address: Using pool '#{selected_network['pool']['name']}'" if !no_prompt
|
886
|
+
#puts "IP Address: Using pool '#{selected_network['pool']['name']}'" if !no_prompt
|
887
|
+
ip_required = false
|
885
888
|
elsif selected_network['dhcpServer']
|
886
|
-
puts "IP Address: Using DHCP" if !no_prompt
|
887
|
-
|
888
|
-
|
889
|
+
#puts "IP Address: Using DHCP" if !no_prompt
|
890
|
+
ip_required = false
|
891
|
+
end
|
892
|
+
v_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldContext' => field_context, 'fieldName' => 'ipAddress', 'type' => 'text', 'fieldLabel' => "IP Address", 'required' => ip_required, 'description' => 'Enter an IP for this network interface. x.x.x.x', 'defaultValue' => network_interface['ipAddress']}], options[:options])
|
893
|
+
if v_prompt[field_context] && !v_prompt[field_context]['ipAddress'].to_s.empty?
|
889
894
|
network_interface['ipAddress'] = v_prompt[field_context]['ipAddress']
|
890
895
|
end
|
896
|
+
|
891
897
|
network_interfaces << network_interface
|
892
898
|
interface_index += 1
|
893
899
|
has_another_interface = options[:options] && options[:options]["networkInterface#{interface_index}"]
|
data/lib/morpheus/cli/remote.rb
CHANGED
@@ -683,6 +683,10 @@ EOT
|
|
683
683
|
optparse = Morpheus::Cli::OptionParser.new do|opts|
|
684
684
|
opts.banner = subcommand_usage()
|
685
685
|
build_common_options(opts, options, [:options, :json, :dry_run])
|
686
|
+
opts.on('-I','--insecure', "Allow insecure HTTPS communication. i.e. bad SSL certificate.") do |val|
|
687
|
+
options[:insecure] = true
|
688
|
+
Morpheus::RestClient.enable_ssl_verification = false
|
689
|
+
end
|
686
690
|
opts.footer = "This can be used to initialize a new appliance.\n" +
|
687
691
|
"You will be prompted to create the master account.\n" +
|
688
692
|
"This is only available on a new, freshly installed, remote appliance."
|
data/lib/morpheus/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morpheus-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.3.
|
4
|
+
version: 2.11.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|