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:
Kazuhiro MUSASHI 2022-07-10 14:42:25 +09:00
parent 48702191fe
commit 37d51b5ed5
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,14 @@ include_recipe './attributes.rb'
include_recipe './install.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'] if node['vault']['manager']
include_recipe './setup.rb' include_recipe './setup.rb'
end end