knife-setup 0.0.3 → 0.0.4
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.
- data/lib/chef/knife/knife-setup.rb +5 -4
- data/lib/knife-setup/version.rb +1 -1
- metadata +1 -1
|
@@ -76,15 +76,16 @@ class Chef
|
|
|
76
76
|
:default => false
|
|
77
77
|
|
|
78
78
|
option :environment,
|
|
79
|
+
:short => "-e ENVIRONMENT",
|
|
79
80
|
:long => "--environment ENVIRONMENT",
|
|
80
81
|
:description => "Set environment for node",
|
|
81
82
|
:default => "_default"
|
|
82
83
|
|
|
83
|
-
option :
|
|
84
|
-
:long => "--
|
|
84
|
+
option :norunchef,
|
|
85
|
+
:long => "--norunchef",
|
|
85
86
|
:description => "Run chef after install bootstrap",
|
|
86
87
|
:boolean => true,
|
|
87
|
-
:default =>
|
|
88
|
+
:default => true
|
|
88
89
|
|
|
89
90
|
option :nobootstrap,
|
|
90
91
|
:long => "--nobootstrap",
|
|
@@ -184,7 +185,7 @@ class Chef
|
|
|
184
185
|
bootstrap_client unless config[:nobootstrap]
|
|
185
186
|
set_run_list(get_node, config[:run_list]) unless config[:run_list].empty?
|
|
186
187
|
set_env(get_node, config[:environment]) unless config[:environment] == "_default"
|
|
187
|
-
knife_ssh("chef-client").run
|
|
188
|
+
knife_ssh("chef-client").run unless config[:norunchef]
|
|
188
189
|
|
|
189
190
|
end
|
|
190
191
|
|
data/lib/knife-setup/version.rb
CHANGED