summaryrefslogtreecommitdiff
path: root/lib/chef_zero/chef_data/default_creator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/chef_data/default_creator.rb')
-rw-r--r--lib/chef_zero/chef_data/default_creator.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef_zero/chef_data/default_creator.rb b/lib/chef_zero/chef_data/default_creator.rb
index b066a25..38be6f3 100644
--- a/lib/chef_zero/chef_data/default_creator.rb
+++ b/lib/chef_zero/chef_data/default_creator.rb
@@ -148,6 +148,7 @@ module ChefZero
DEFAULT_ORG_SPINE = {
'clients' => {},
+ 'cookbook_artifacts' => {},
'cookbooks' => {},
'data' => {},
'environments' => %w(_default),
@@ -281,7 +282,8 @@ module ChefZero
'delete' => { 'groups' => %w(admins) },
'grant' => { 'groups' => %w(admins) },
}
- when 'containers/cookbooks', 'containers/environments', 'containers/roles'
+ when 'containers/cookbook_artifacts', 'containers/cookbooks',
+ 'containers/environments', 'containers/policies', 'containers/policy_groups', 'containers/roles'
{
'create' => { 'groups' => %w(admins users) },
'read' => { 'groups' => %w(admins users clients) },
@@ -289,7 +291,7 @@ module ChefZero
'delete' => { 'groups' => %w(admins users) },
'grant' => { 'groups' => %w(admins) },
}
- when 'containers/cookbooks', 'containers/data'
+ when 'containers/data'
{
'create' => { 'groups' => %w(admins users clients) },
'read' => { 'groups' => %w(admins users clients) },