Skip to content

Instantly share code, notes, and snippets.

@itmustbejj
Last active December 2, 2015 21:55
Show Gist options
  • Save itmustbejj/c949739b26fb08e54ae5 to your computer and use it in GitHub Desktop.
Save itmustbejj/c949739b26fb08e54ae5 to your computer and use it in GitHub Desktop.
Using Knife ACL to allow members of the "users" group to properly do validatorless bootstraps
~/lab/repos/chef-server-ha-provisioning/src/chef-server-ha-aws-install   master ●  knife acl show containers nodes
create:
actors: pivotal
groups:
clients
users
admins
delete:
actors: pivotal
groups:
users
admins
grant:
actors: pivotal
groups: admins
read:
actors: pivotal
groups:
clients
users
admins
update:
actors: pivotal
groups:
users
admins
~/lab/repos/chef-server-ha-provisioning/src/chef-server-ha-aws-install   master ●  knife acl show containers clients
create:
actors: pivotal
groups: admins
delete:
actors: pivotal
groups:
users
admins
grant:
actors: pivotal
groups: admins
read:
actors: pivotal
groups:
users
admins
update:
actors: pivotal
groups: admins
~/lab/repos/chef-server-ha-provisioning/src/chef-server-ha-aws-install   master ●  knife acl add group users containers clients create,grant,update
Adding 'users' to 'create' ACE of 'clients'
Adding 'users' to 'grant' ACE of 'clients'
Adding 'users' to 'update' ACE of 'clients'
~/lab/repos/chef-server-ha-provisioning/src/chef-server-ha-aws-install   master ●  knife acl show containers clients
create:
actors: pivotal
groups:
users
admins
delete:
actors: pivotal
groups:
users
admins
grant:
actors: pivotal
groups:
users
admins
read:
actors: pivotal
groups:
users
admins
update:
actors: pivotal
groups:
users
admins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment