From ab088ebee7f505ae60d6e118892ab802c34d02bf Mon Sep 17 00:00:00 2001 From: Clay Baenziger Date: Fri, 28 Sep 2018 01:24:51 -0400 Subject: [PATCH] Add admin to MySQL data bags to allow reinstalling machines by having C-A-R add them to the vault --- cookbooks/bcpc/recipes/mysql_data_bags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/bcpc/recipes/mysql_data_bags.rb b/cookbooks/bcpc/recipes/mysql_data_bags.rb index 1bdf7351e..d7c3465fb 100644 --- a/cookbooks/bcpc/recipes/mysql_data_bags.rb +++ b/cookbooks/bcpc/recipes/mysql_data_bags.rb @@ -23,7 +23,7 @@ # vault_admins = - get_all_nodes.map{ |x| x['fqdn'] }.compact.join(',') + get_all_nodes.map{ |x| x['fqdn'] }.compact.push('admin').join(',') { check: 'check',