Skip to content

Instantly share code, notes, and snippets.

@jgoulah
Last active March 20, 2016 21:22
Show Gist options
  • Select an option

  • Save jgoulah/cdcd9fc22bfae82b8e96 to your computer and use it in GitHub Desktop.

Select an option

Save jgoulah/cdcd9fc22bfae82b8e96 to your computer and use it in GitHub Desktop.
create chef provisioner node
# 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