Skip to content

Commit 6d73812

Browse files
committed
Merge pull request #112 from rtenijenhuis/bootstrap-proxy
adding boostrap-proxy option to cs srv create
2 parents d1793a0 + e2fe993 commit 6d73812

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/chef/knife/cs_server_create.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)