From: Tom Hughes Date: Tue, 4 Aug 2020 18:36:51 +0000 (+0100) Subject: Restore admin powers to remote hands on lockheed X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/a8896544fa1c6cd4f10f0826e088ec6c9b512621?ds=sidebyside Restore admin powers to remote hands on lockheed --- diff --git a/cookbooks/accounts/attributes/default.rb b/cookbooks/accounts/attributes/default.rb index 8535ee403..e529fe2fd 100644 --- a/cookbooks/accounts/attributes/default.rb +++ b/cookbooks/accounts/attributes/default.rb @@ -4,3 +4,4 @@ default[:accounts][:manage_home] = true default[:accounts][:groups] = {} default[:accounts][:users] = {} +default[:accounts][:administrators] = [] diff --git a/cookbooks/accounts/recipes/default.rb b/cookbooks/accounts/recipes/default.rb index e1023682a..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"] diff --git a/roles/lockheed.rb b/roles/lockheed.rb index d261f7901..dde4cdb3f 100644 --- a/roles/lockheed.rb +++ b/roles/lockheed.rb @@ -2,6 +2,9 @@ name "lockheed" description "Master role applied to lockheed" default_attributes( + :accounts => { + :administrators => %w[luc qt fat115 tcit chocobozzz qdupont josephk spf pyg] + }, :hardware => { :shm_size => "12g" },