]> git.openstreetmap.org Git - chef.git/commitdiff
Allow wordpress themes to be installed from zip
authorGuillaume Rischard <git@stereo.lu>
Tue, 23 Apr 2024 21:06:10 +0000 (17:06 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2024 21:06:10 +0000 (17:06 -0400)
cookbooks/accounts/files/default/mikel/.ssh/authorized_keys [new file with mode: 0644]
cookbooks/accounts/files/default/rtnf/.ssh/authorized_keys [new file with mode: 0644]
cookbooks/devices/recipes/default.rb
roles/blog-staging.rb [new file with mode: 0644]
roles/dev.rb
roles/fume.rb

diff --git a/cookbooks/accounts/files/default/mikel/.ssh/authorized_keys b/cookbooks/accounts/files/default/mikel/.ssh/authorized_keys
new file mode 100644 (file)
index 0000000..e52e3ae
--- /dev/null
@@ -0,0 +1,2 @@
+# DO NOT EDIT - This file is being maintained by Chef - use authorized_keys2 instead
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmMyloQ+2+9Din4JPv11cu8EHgHREz3zljaxUDcU/zh2XoZIZn5jm9+qev+ga2ewX2gS8HflIIY5LG3sHCxhzUAvv5vFUha1qZVOA6CIi4WEqJfNkkyBuPFwYQDFwMgxQV/tOIAc/94lJ1DT/BrfJmeayh08OKgEpLLFTUDdlSA79sbQoT4JwTQM46H1s6r1adYjjZmz6vdyJ2yq3ODGWz356ad7hCch4AzK79MVkitaY2v17Zy+gKLkT75G1Fy4J0wBsDszNZHbNO95Exyqld4L4AvTGsz6JHglceMb/r7ma/Od0T+VT5TI5cQwZUqXOEOWRf2VptYQ7RrgSPKRq7 mikel_maron
diff --git a/cookbooks/accounts/files/default/rtnf/.ssh/authorized_keys b/cookbooks/accounts/files/default/rtnf/.ssh/authorized_keys
new file mode 100644 (file)
index 0000000..c513ddf
--- /dev/null
@@ -0,0 +1,2 @@
+# DO NOT EDIT - This file is being maintained by Chef - use authorized_keys2 instead
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCZmRTAN92TeqR9iIFsPFGmNdC7fGoH112eoY3D4JskfnezgdF+knA5qRf62VGnoa3oHfDZKGNaMexLZmyFLycyqFUln+TjzUpBLO3Ni7GykmIoxpTvzbs7iCtY9YChUUHz4qq7LP9W7QBRYYhgGMfa8IZUqTE3ogAG8uyKl+jn20PyVkkQabwePfCEm6WhcqKWA86u6R7SuE3O4YJsXIq9uaUZJVBomg rtnf
index d92bd025994c06a6ef082b8a6293885b67c95f84..9bcaf898f07a8d166d76b6705ec1383e32526a71 100644 (file)
@@ -44,6 +44,8 @@ template "/etc/modprobe.d/nvme.conf" do
   only_if { ::File.exist?("/sys/module/nvme/parameters/poll_queues") }
 end
 
+package "initramfs-tools"
+
 execute "update-initramfs" do
   action :nothing
   command "/usr/sbin/update-initramfs -u"
diff --git a/roles/blog-staging.rb b/roles/blog-staging.rb
new file mode 100644 (file)
index 0000000..3ad17f2
--- /dev/null
@@ -0,0 +1,19 @@
+name "blog-staging"
+description "Role applied to staging blog servers"
+
+default_attributes(
+  :accounts => {
+    :users => {
+      :mikel => { :status => :administrator },
+      :wordpress => {
+        :status => :role,
+        :members => [:mikel]
+      }
+    },
+  }
+)
+
+# FIXME: Disable while site under development
+# run_list(
+#   "recipe[blog::staging]"
+# )
index 1f4ac30c3a21c477b5017ab43e6ec5a3e17b0efa..84d29716dd90c51ea609d83fb92482c02165e360 100644 (file)
@@ -61,6 +61,7 @@ default_attributes(
       :ppawel => { :status => :user },
       :random => { :status => :user },
       :richard => { :status => :user },
+      :rtnf => { :status => :user },
       :ris => { :status => :user },
       :russ => { :status => :user },
       :rweait => { :status => :user },
index 7404d07b7d8bb0a86ea9583c4b1f8dcbe39f4b44..5b4c5a670ac12ea6d5d06a36866e2c5be272fe44 100644 (file)
@@ -33,5 +33,5 @@ default_attributes(
 
 run_list(
   "role[equinix-dub]",
-  "recipe[blog::staging]"
+  "role[blog-staging]"
 )