Sha256: 0b2d056d0f505b7aa0306c0f079d007a113288ca559f1894807cec06a0fdfcf6

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

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

If a key group is deleted (such as users)

* Verify that the org has issues

* Create/restore the group
(TBW)

* Add the users/groups back to the group
(TBW)

* Set the group ACL appropriately
```ruby
users_group.ace_add([:create,:read,:update,:delete], org.groups['admins'])
users_group.ace_add([:create,:read,:update,:delete], USERS['pivotal'])
```

* Restore users to the appropriate container ACLs
```ruby
org = 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], org.groups['users']) }
%w(clients).each { |c| org.containers[c].ace_add([:read,:delete], org.groups['users']) }
%w(groups containers).each { |c| org.containers[c].ace_add([:read], org.groups['users']) }
%w(sandboxes).each { |c| org.containers[c].ace_add([:create], org.groups['users']) }
```

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
chef_fixie-1.0.8 doc/BulkFixup.md
chef_fixie-1.0.7 doc/BulkFixup.md
chef_fixie-1.0.3 doc/BulkFixup.md
chef_fixie-1.0.2 doc/BulkFixup.md
chef_fixie_shahid-0.5.2 doc/BulkFixup.md
chef_fixie-0.5.1 doc/BulkFixup.md
chef_fixie-0.5.0 doc/BulkFixup.md