Compare commits
No commits in common. "c52b9cac6a2f90230d19837f410cea25734ba67a" and "63935ec789208c792406c5c58f9d31ccda918441" have entirely different histories.
c52b9cac6a
...
63935ec789
|
@ -1,2 +0,0 @@
|
|||
[tools]
|
||||
ruby = "3.2.2"
|
|
@ -1,2 +1 @@
|
|||
VAULT_ADDR="http://192.168.10.142:8200"
|
||||
HOME="/tmp"
|
||||
|
|
|
@ -5,5 +5,3 @@ include_recipe './ssh.rb'
|
|||
include_recipe './vim.rb'
|
||||
|
||||
include_recipe './mc.rb'
|
||||
|
||||
include_recipe './mise.rb'
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main
|
|
@ -1,27 +0,0 @@
|
|||
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
|
|
@ -1 +0,0 @@
|
|||
deb [signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] https://apt.vector.dev/ stable vector-0
|
|
@ -1,13 +1,20 @@
|
|||
%w("DATADOG_APT_KEY_CURRENT.public" "DATADOG_APT_KEY_C0962C7D.public" "DATADOG_APT_KEY_F14F620E.public").each do |key|
|
||||
execute "wget -O /tmp/#{key} https://keys.datadoghq.com/#{key}"
|
||||
execute "cat /tmp/#{key} | gpg --import --batch --no-default-keyring --keyring /usr/share/keyrings/datadog-archive-keyring.gpg"
|
||||
KEY='https://repositories.timber.io/public/vector/gpg.3543DB2D0A2BC4B8.key'
|
||||
|
||||
execute "wget -O /tmp/vector.key #{KEY}" do
|
||||
not_if 'apt-key list | grep "1E46 C153"'
|
||||
end
|
||||
|
||||
execute 'apt-key add /tmp/vector.key' do
|
||||
not_if 'apt-key list | grep "1E46 C153"'
|
||||
end
|
||||
|
||||
# Retrieve the Ubuntu code:
|
||||
DIST = run_command('lsb_release -cs').stdout.chomp
|
||||
|
||||
# Deploy the `apt` sources:
|
||||
remote_file '/etc/apt/sources.list.d/vector.list' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '0644'
|
||||
template '/etc/apt/sources.list.d/timber-vector.list' do
|
||||
action :create
|
||||
variables(distribution: DIST)
|
||||
end
|
||||
|
||||
execute 'apt update' do
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
deb https://repositories.timber.io/public/vector/deb/ubuntu <%= @distribution %> main
|
||||
|
||||
deb-src https://repositories.timber.io/public/vector/deb/ubuntu <%= @distribution %> main
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env rake
|
||||
|
||||
desc 'Invoke itamae command for AWS Environment for the first time'
|
||||
desc 'Invoke itamae command for the first time'
|
||||
task :ubuntu do
|
||||
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
|
||||
node.chomp!
|
||||
|
|
Loading…
Reference in New Issue