File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,11 @@ class CsServerCreate < Chef::Knife
235235 :description => "Set the same server display name as Chef node name." ,
236236 :boolean => true ,
237237 :default => false
238+
239+ option :bootstrap_wget_options ,
240+ :long => "--bootstrap-wget-options OPTIONS" ,
241+ :description => "Add options to wget when installing chef-client" ,
242+ :proc => Proc . new { |wo | Chef ::Config [ :knife ] [ :bootstrap_wget_options ] = wo }
238243
239244
240245 def run
@@ -610,6 +615,7 @@ def bootstrap_common_params(bootstrap)
610615 bootstrap . config [ :template_file ] = locate_config_value ( :template_file )
611616 bootstrap . config [ :first_boot_attributes ] = locate_config_value ( :first_boot_attributes )
612617 bootstrap . config [ :environment ] = locate_config_value ( :environment )
618+ bootstrap . config [ :bootstrap_wget_options ] = locate_config_value ( :bootstrap_wget_options )
613619 bootstrap
614620 end
615621
You can’t perform that action at this time.
0 commit comments