diff options
author | Thom May <thom@may.lt> | 2015-09-02 13:40:06 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-09-02 13:40:06 +0100 |
commit | b86ba5b0858676da98e0456d340ac2f1a031a0d1 (patch) | |
tree | 2764c4238aa13f872c029ef9b71facf14d9f3574 /lib/chef/knife/bootstrap.rb | |
parent | e42eaec8f13babcc5553db631ee9cdadade89294 (diff) | |
parent | f6835a4f5af4a380d7e35e32ddd8c3a0fe7f2ac3 (diff) | |
download | chef-b86ba5b0858676da98e0456d340ac2f1a031a0d1.tar.gz |
Merge pull request #3190 from swalberg/tag_nodes_on_bootstrap
Allow tags to be set on a node during bootstrap
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 5b29591fcc..f173b6b909 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -143,6 +143,12 @@ class Chef :proc => lambda { |o| o.split(/[\s,]+/) }, :default => [] + option :tags, + :long => "--tags TAGS", + :description => "Comma separated list of tags to apply to the node", + :proc => lambda { |o| o.split(/[\s,]+/) }, + :default => [] + option :first_boot_attributes, :short => "-j JSON_ATTRIBS", :long => "--json-attributes", |