Create `/etc/vault.d/agent` & `/etc/vault.d/tokens` directory.
``` --- a/cookbooks/vault/default.rb +++ b/cookbooks/vault/default.rb @@ -2,6 +2,14 @@ include_recipe './attributes.rb' include_recipe './install.rb' +%w( agent tokens ).each do |d| + directory "/etc/vault.d/#{d}" do + owner 'vault' + group 'vault' + mode '0755' + end +end + if node['vault']['manager'] include_recipe './setup.rb' end ```
This commit is contained in:
parent
48702191fe
commit
37d51b5ed5
|
@ -2,6 +2,14 @@ include_recipe './attributes.rb'
|
|||
|
||||
include_recipe './install.rb'
|
||||
|
||||
%w( agent tokens ).each do |d|
|
||||
directory "/etc/vault.d/#{d}" do
|
||||
owner 'vault'
|
||||
group 'vault'
|
||||
mode '0755'
|
||||
end
|
||||
end
|
||||
|
||||
if node['vault']['manager']
|
||||
include_recipe './setup.rb'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue