]> git.openstreetmap.org Git - chef.git/commitdiff
Configure idris as an APT repository
authorTom Hughes <tom@compton.nu>
Mon, 5 Aug 2024 19:08:22 +0000 (20:08 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 5 Aug 2024 19:17:05 +0000 (20:17 +0100)
roles/apt.rb [new file with mode: 0644]
roles/idris.rb

diff --git a/roles/apt.rb b/roles/apt.rb
new file mode 100644 (file)
index 0000000..d0fec39
--- /dev/null
@@ -0,0 +1,19 @@
+name "apt"
+description "Role applied to APT repositories"
+
+default_attributes(
+  :accounts => {
+    :users => {
+      :apt => {
+        :status => :role,
+        :members => [
+          :tomh, :grant
+        ]
+      }
+    }
+  }
+)
+
+run_list(
+  "recipe[apt::repository]"
+)
index 0a7f593ab0e80f3b7163e61e907969b4ef5bbba3..b0edcc1413810a7faa6a2fc4b01f630a0d6630f1 100644 (file)
@@ -41,5 +41,6 @@ run_list(
   "role[letsencrypt]",
   "role[oxidized]",
   "role[supybot]",
+  "role[apt]",
   "recipe[serverinfo]"
 )