summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsawanoboly <sawanoboriyu@higanworks.com>2019-12-11 13:19:46 +0900
committersawanoboly <sawanoboriyu@higanworks.com>2019-12-11 13:21:46 +0900
commitb97caf5a48cf50dfcf17da2af30a9a0198cd6ae5 (patch)
tree5a258ac86234c2b973d6f95951529e51b82a2009
parent4097bb0603e3a18bb3be66f7512b2ac0ed6a96ba (diff)
downloadchef-b97caf5a48cf50dfcf17da2af30a9a0198cd6ae5.tar.gz
/bootstrap_project/bootstrap_product/
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
-rw-r--r--lib/chef/knife/bootstrap.rb7
-rw-r--r--lib/chef/knife/bootstrap/templates/chef-full.erb2
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 89192cd76f..3279f7970a 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -296,10 +296,9 @@ class Chef
description: "URL to a custom installation script.",
proc: Proc.new { |u| Chef::Config[:knife][:bootstrap_url] = u }
- option :bootstrap_project,
- long: "--bootstrap-project PROJECT",
- description: "Project to install.",
- proc: Proc.new { |u| Chef::Config[:knife][:bootstrap_project] = u },
+ option :bootstrap_product,
+ long: "--bootstrap-product PRODUCT",
+ description: "Product to install.",
default: "chef"
option :msi_url, # Windows target only
diff --git a/lib/chef/knife/bootstrap/templates/chef-full.erb b/lib/chef/knife/bootstrap/templates/chef-full.erb
index 9bb4f5050b..febc414b13 100644
--- a/lib/chef/knife/bootstrap/templates/chef-full.erb
+++ b/lib/chef/knife/bootstrap/templates/chef-full.erb
@@ -177,7 +177,7 @@ do_download() {
else
echo "-----> Installing Chef Omnibus (<%= @config[:channel] %>/<%= version_to_install %>)"
do_download ${install_sh} $tmp_dir/install.sh
- sh $tmp_dir/install.sh -P <%= @config[:bootstrap_project] %> -c <%= @config[:channel] %> -v <%= version_to_install %>
+ sh $tmp_dir/install.sh -P <%= @config[:bootstrap_product] %> -c <%= @config[:channel] %> -v <%= version_to_install %>
fi
<% end %>