consul-server-key-change-2024 #10

Merged
kazu634 merged 8 commits from consul-server-key-change-2024 into main 2024-03-31 11:26:14 +00:00
3 changed files with 30 additions and 0 deletions
Showing only changes of commit 5eaf0d9143 - Show all commits

View File

@ -5,3 +5,5 @@ include_recipe './ssh.rb'
include_recipe './vim.rb' include_recipe './vim.rb'
include_recipe './mc.rb' include_recipe './mc.rb'
include_recipe './mise.rb'

View File

@ -0,0 +1 @@
deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main

27
cookbooks/kazu634/mise.rb Normal file
View File

@ -0,0 +1,27 @@
directory '/etc/apt/keyrings/' do
owner 'root'
group 'root'
mode '0755'
end
execute 'wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg' do
not_if 'test -f /etc/apt/keyrings/mise-archive-keyring.gpg'
end
remote_file '/etc/apt/sources.list.d/mise.list' do
owner 'root'
group 'root'
mode '0644'
end
execute 'apt update' do
not_if 'which mise'
end
package 'mise'
# For Ruby installation:
%w( git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev ).each do |p|
package p
end