From: Guillaume Rischard Date: Tue, 23 Apr 2024 21:06:10 +0000 (-0400) Subject: Allow wordpress themes to be installed from zip X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/480f8e5f3601af21957083dbc248d57a03af1b42?hp=420f4e7479fb21e5066151c99e15ff2e7eab972f Allow wordpress themes to be installed from zip --- diff --git a/cookbooks/accounts/files/default/mikel/.ssh/authorized_keys b/cookbooks/accounts/files/default/mikel/.ssh/authorized_keys new file mode 100644 index 000000000..e52e3aedf --- /dev/null +++ b/cookbooks/accounts/files/default/mikel/.ssh/authorized_keys @@ -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 index 000000000..c513ddf2b --- /dev/null +++ b/cookbooks/accounts/files/default/rtnf/.ssh/authorized_keys @@ -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 diff --git a/cookbooks/devices/recipes/default.rb b/cookbooks/devices/recipes/default.rb index d92bd0259..9bcaf898f 100644 --- a/cookbooks/devices/recipes/default.rb +++ b/cookbooks/devices/recipes/default.rb @@ -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 index 000000000..3ad17f229 --- /dev/null +++ b/roles/blog-staging.rb @@ -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]" +# ) diff --git a/roles/dev.rb b/roles/dev.rb index 1f4ac30c3..84d29716d 100644 --- a/roles/dev.rb +++ b/roles/dev.rb @@ -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 }, diff --git a/roles/fume.rb b/roles/fume.rb index 7404d07b7..5b4c5a670 100644 --- a/roles/fume.rb +++ b/roles/fume.rb @@ -33,5 +33,5 @@ default_attributes( run_list( "role[equinix-dub]", - "recipe[blog::staging]" + "role[blog-staging]" )