X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7c4174b2f08a5c142f6c4b8eedfe69a3586b9df7..2915ebac652fcc0521325cf1aae5a2f56f792549:/cookbooks/accounts/recipes/default.rb diff --git a/cookbooks/accounts/recipes/default.rb b/cookbooks/accounts/recipes/default.rb index fa7dc2814..b395aeca6 100644 --- a/cookbooks/accounts/recipes/default.rb +++ b/cookbooks/accounts/recipes/default.rb @@ -19,7 +19,7 @@ package "zsh" -administrators = [] +administrators = node[:accounts][:administrators].to_a search(:accounts, "*:*").each do |account| name = account["id"] @@ -64,10 +64,10 @@ search(:accounts, "*:*").each do |account| source name.to_s owner name.to_s group name.to_s - mode 0o755 + mode "755" files_owner name.to_s files_group name.to_s - files_mode 0o644 + files_mode "644" only_if do cookbook = run_context.cookbook_collection[cookbook_name] files = cookbook.relative_filenames_in_preferred_directory(node, :files, name.to_s)