Deploy `/etc/vault.d/vault.env` to enable AWS KMS.
This commit is contained in:
parent
44ca217183
commit
e21fa08291
|
@ -9,6 +9,16 @@ template '/etc/vault.d/vault.hcl' do
|
||||||
notifies :restart, 'service[vault]'
|
notifies :restart, 'service[vault]'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
encrypted_remote_file '/etc/vault.d/vault.env' do
|
||||||
|
owner 'vault'
|
||||||
|
group 'vault'
|
||||||
|
mode '600'
|
||||||
|
source 'files/etc/vault.d/vault.env'
|
||||||
|
password ENV['ITAMAE_PASSWORD']
|
||||||
|
|
||||||
|
notifies :restart, 'service[vault]'
|
||||||
|
end
|
||||||
|
|
||||||
directory '/etc/vault.d/policies' do
|
directory '/etc/vault.d/policies' do
|
||||||
owner 'vault'
|
owner 'vault'
|
||||||
group 'vault'
|
group 'vault'
|
||||||
|
|
Loading…
Reference in New Issue