From a8896544fa1c6cd4f10f0826e088ec6c9b512621 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 4 Aug 2020 19:36:51 +0100 Subject: [PATCH] Restore admin powers to remote hands on lockheed --- cookbooks/accounts/attributes/default.rb | 1 + cookbooks/accounts/recipes/default.rb | 2 +- roles/lockheed.rb | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) 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" }, -- 2.39.5