From 37d51b5ed5a4bec50f72111b487b4835cd4c95d3 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 10 Jul 2022 14:42:25 +0900 Subject: [PATCH] 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 ``` --- cookbooks/vault/default.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cookbooks/vault/default.rb b/cookbooks/vault/default.rb index 33e6a83..7f9bcc1 100644 --- 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