File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -235,13 +235,18 @@ 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_proxy ,
240+ :long => "--bootstrap-proxy PROXY_URL" ,
241+ :description => "The proxy server for the node being bootstrapped" ,
242+ :proc => Proc . new { |p | Chef ::Config [ :knife ] [ :bootstrap_proxy ] = p }
243+
238244
239245 option :bootstrap_wget_options ,
240246 :long => "--bootstrap-wget-options OPTIONS" ,
241247 :description => "Add options to wget when installing chef-client" ,
242248 :proc => Proc . new { |wo | Chef ::Config [ :knife ] [ :bootstrap_wget_options ] = wo }
243249
244-
245250 def run
246251 validate_base_options
247252
@@ -616,6 +621,7 @@ def bootstrap_common_params(bootstrap)
616621 bootstrap . config [ :first_boot_attributes ] = locate_config_value ( :first_boot_attributes )
617622 bootstrap . config [ :environment ] = locate_config_value ( :environment )
618623 bootstrap . config [ :bootstrap_wget_options ] = locate_config_value ( :bootstrap_wget_options )
624+ bootstrap . config [ :bootstrap_proxy ] = locate_config_value ( :bootstrap_proxy )
619625 bootstrap
620626 end
621627
You can’t perform that action at this time.
0 commit comments