mofa 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mofa/cli.rb +2 -0
- data/lib/mofa/mofa_cmd.rb +1 -1
- data/lib/mofa/provision_cmd.rb +1 -1
- data/lib/mofa/version.rb +1 -1
- metadata +1 -1
data/lib/mofa/cli.rb
CHANGED
@@ -16,6 +16,7 @@ module Mofa
|
|
16
16
|
class_option :debug, :type => :boolean, :aliases => '-vv', :desc => 'be very vebose'
|
17
17
|
|
18
18
|
desc 'provision <cookbook>', 'provisions Targethost(s) using a given cookbook.'
|
19
|
+
method_option :ignore_ping, :type => :boolean, :aliases => '-p'
|
19
20
|
method_option :target, :type => :string, :aliases => '-t'
|
20
21
|
method_option :concrete_target, :type => :string, :aliases => '-T'
|
21
22
|
method_option :runlist, :type => :string, :aliases => '-o'
|
@@ -42,6 +43,7 @@ module Mofa
|
|
42
43
|
cmd.hostlist = hostlist
|
43
44
|
cmd.runlist_map = runlist_map
|
44
45
|
cmd.attributes_map = attributes_map
|
46
|
+
cmd.options = options
|
45
47
|
|
46
48
|
cmd.prepare
|
47
49
|
cmd.execute
|
data/lib/mofa/mofa_cmd.rb
CHANGED
data/lib/mofa/provision_cmd.rb
CHANGED
@@ -142,7 +142,7 @@ class ProvisionCmd < MofaCmd
|
|
142
142
|
host_index = host_index + 1
|
143
143
|
chef_solo_runs.store(hostname, {})
|
144
144
|
|
145
|
-
|
145
|
+
if host_avail?(hostname) == false || options[:ignore_ping] == true
|
146
146
|
chef_solo_runs[hostname].store('status', 'UNAVAIL')
|
147
147
|
chef_solo_runs[hostname].store('status_msg', "Host #{hostname} unreachable.")
|
148
148
|
next
|
data/lib/mofa/version.rb
CHANGED