From fb0eeba826e069ecddadbc11d9160a6d63aed149 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 15 Sep 2018 14:46:09 +0100 Subject: [PATCH] Use a planet-current role to handle keeping an up to date planet --- roles/planet-current.rb | 16 ++++++++++++++++ roles/taginfo.rb | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 roles/planet-current.rb diff --git a/roles/planet-current.rb b/roles/planet-current.rb new file mode 100644 index 000000000..97f23d247 --- /dev/null +++ b/roles/planet-current.rb @@ -0,0 +1,16 @@ +name "planet-current" +description "Role applied to all servers needing an up to date planet file" + +default_attributes( + :accounts => { + :users => { + :planet => { + :status => :role + } + } + } +) + +run_list( + "recipe[planet::current]" +) diff --git a/roles/taginfo.rb b/roles/taginfo.rb index b7233afca..05e4bf9bf 100644 --- a/roles/taginfo.rb +++ b/roles/taginfo.rb @@ -50,6 +50,6 @@ default_attributes( ) run_list( - "recipe[planet::current]", + "role[planet-current]", "recipe[taginfo]" ) -- 2.43.2