Merge pull request '`Vault`をインストールする' (#1) from install-vault into master
Reviewed-on: #1
This commit is contained in:
commit
9be1deae21
|
@ -0,0 +1,8 @@
|
|||
# -------------------------------------------
|
||||
# Specifying the default settings:
|
||||
# -------------------------------------------
|
||||
node.reverse_merge!({
|
||||
'vault' => {
|
||||
'manager' => false,
|
||||
}
|
||||
})
|
|
@ -0,0 +1,4 @@
|
|||
include_recipe './attributes.rb'
|
||||
|
||||
include_recipe './install.rb'
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# Install `Consul`:
|
||||
KEYSRV = "https://apt.releases.hashicorp.com/gpg"
|
||||
ID = "A3219F7B"
|
||||
|
||||
execute "apt-key adv --keyserver #{KEYSRV} --recv-keys #{ID}" do
|
||||
not_if 'apt-key list | grep HashiCorp'
|
||||
end
|
||||
|
||||
# Retrieve the Ubuntu code:
|
||||
DIST = run_command('lsb_release -cs').stdout.chomp
|
||||
|
||||
# Deploy the `apt` sources:
|
||||
template '/etc/apt/sources.list.d/hashicorp.list' do
|
||||
action :create
|
||||
variables(distribution: DIST)
|
||||
end
|
||||
|
||||
execute 'apt update'
|
||||
|
||||
package 'vault'
|
|
@ -0,0 +1 @@
|
|||
deb [arch=amd64] https://apt.releases.hashicorp.com <%= @distribution %> main
|
|
@ -8,3 +8,4 @@ include_recipe '../cookbooks/promtail/default.rb'
|
|||
include_recipe '../cookbooks/vector/default.rb'
|
||||
include_recipe '../cookbooks/prometheus-exporters/default.rb'
|
||||
include_recipe '../cookbooks/nomad/default.rb'
|
||||
include_recipe '../cookbooks/vault/default.rb'
|
||||
|
|
Loading…
Reference in New Issue