Last active
March 20, 2016 21:22
-
-
Save jgoulah/cdcd9fc22bfae82b8e96 to your computer and use it in GitHub Desktop.
create chef provisioner node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install acl gem | |
| chef gem install knife-acl | |
| # only if you need a new node | |
| knife client create -d chefconf-provisioner > ~/.chef/chefconf-provisioner.pem | |
| knife node create -d chefconf-provisioner | |
| # create group | |
| knife group create provisioners | |
| # chefconf-provisioner can be an existing client node | |
| knife group add client chefconf-provisioner provisioners | |
| # grant permissions | |
| for i in read create update grant delete | |
| do | |
| knife acl add group provisioners containers clients $i | |
| done | |
| for i in read create update grant delete | |
| do | |
| knife acl add group provisioners containers nodes $i | |
| done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment