Sha256: 7f68e9965ce7a470683ef10f98b34d10b73f8b3dcefeca100b3411ef8f530625

Contents?: true

Size: 819 Bytes

Versions: 4

Compression:

Stored size: 819 Bytes

Contents

Restoring acl permissions globally
============




* If a key group is deleted (such as users)

Create/restore the group

Add the users/groups back to the group

Set the group ACL appropriately

Restore users to the appropriate container ACLs
```ruby
o = ORGS[THE_ORG]
cl = %w(cookbooks data nodes roles environments policies policy_groups cookbook_artifacts)
cl.each {|c| o.containers[c].ace_add([:create,:read,:update,:delete], o.groups['users']) }
%w(clients).each { |c| o.containers[c].ace_add([:read,:delete], o.groups['users']) }
%w(groups containers).each { |c| o.containers[c].ace_add([:read], o.groups['users']) }
%w(sandboxes).each { |c| o.containers[c].ace_add([:create], o.groups['users']) }
```

Then update the objects from the containers:
```ruby
Fixie::BulkEditPermissions::copy_from_containers(o)
```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chef_fixie-0.3.0 doc/BulkFixup.md~
chef_fixie-0.2.1 doc/BulkFixup.md~
chef_fixie-0.2.0 doc/BulkFixup.md~
chef_fixie-0.1.0 doc/BulkFixup.md~