summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-05-08 10:09:01 -0700
committerClaire McQuin <claire@getchef.com>2014-05-08 15:37:48 -0700
commit2481b6740b6de0ede97574e422dd2980a27b8363 (patch)
tree9e77640b94aee3f36aa0bfc5c9b47f51326b356d /lib/chef/knife/bootstrap.rb
parentca384a949df634ef1a2a1cd27df77c9fca02e097 (diff)
downloadchef-2481b6740b6de0ede97574e422dd2980a27b8363.tar.gz
add knife options for chef-full customization
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r--lib/chef/knife/bootstrap.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index cb49cfbb2e..aae927e0ca 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -154,6 +154,26 @@ class Chef
:description => "A file containing the secret key to use to encrypt data bag item values",
:proc => Proc.new { |sf| Chef::Config[:knife][:secret_file] = sf }
+ option :bootstrap_url,
+ :long => "--bootstrap-url URL",
+ :description => "URL to a custom installation script",
+ :proc => Proc.new { |u| Chef::Config[:knife][:bootstrap_url] = u }
+
+ option :bootstrap_install_command,
+ :long => "--bootstrap-install-command COMMANDS",
+ :description => "Custom command to install chef-client",
+ :proc => Proc.new { |ic| Chef::Config[:knife][:bootstrap_install_command] = ic }
+
+ option :bootstrap_wget_options,
+ :long => "--bootstrap-wget-options OPTIONS",
+ :description => "Add options to wget when installing chef-client",
+ :proc => Proc.new { |wo| Chef::Config[:knife][:bootstrap_wget_options] = wo }
+
+ option :bootstrap_curl_options,
+ :long => "--bootstrap-curl-options OPTIONS",
+ :description => "Add options to curl when install chef-client",
+ :proc => Proc.new { |co| Chef::Config[:knife][:bootstrap_curl_options] = co }
+
def find_template(template=nil)
# Are we bootstrapping using an already shipped template?
if config[:template_file]