Use a planet-current role to handle keeping an up to date planet
authorTom Hughes <tom@compton.nu>
Sat, 15 Sep 2018 13:46:09 +0000 (14:46 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 15 Sep 2018 13:50:01 +0000 (14:50 +0100)
roles/planet-current.rb [new file with mode: 0644]
roles/taginfo.rb

diff --git a/roles/planet-current.rb b/roles/planet-current.rb
new file mode 100644 (file)
index 0000000..97f23d2
--- /dev/null
@@ -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]"
+)
index b7233afca73dcbcb5296423d1284bed53354e815..05e4bf9bf6dbd8431c69307ad0acaa260557c4cc 100644 (file)
@@ -50,6 +50,6 @@ default_attributes(
 )
 
 run_list(
-  "recipe[planet::current]",
+  "role[planet-current]",
   "recipe[taginfo]"
 )