Modify `consul-template` directories:

```
--- a/cookbooks/consul-template/setup.rb
+++ b/cookbooks/consul-template/setup.rb
@@ -1,6 +1,6 @@
 # Create `/var/log/vector`:
-%w( /etc/consul-template.d/conf /etc/consul-template.d/templates ).each do |d|
-  directory d do
+%w( conf templates tokens ).each do |d|
+  directory "/etc/consul-template.d/#{d}" do
     owner  'root'
     group  'root'
     mode   '0755'
```
This commit is contained in:
Kazuhiro MUSASHI 2022-07-10 16:31:55 +09:00
parent d1297a02c9
commit 91a0c444b5
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Create `/var/log/vector`:
%w( /etc/consul-template.d/conf /etc/consul-template.d/templates ).each do |d|
directory d do
%w( conf templates tokens ).each do |d|
directory "/etc/consul-template.d/#{d}" do
owner 'root'
group 'root'
mode '0755'