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`: # Create `/var/log/vector`:
%w( /etc/consul-template.d/conf /etc/consul-template.d/templates ).each do |d| %w( conf templates tokens ).each do |d|
directory d do directory "/etc/consul-template.d/#{d}" do
owner 'root' owner 'root'
group 'root' group 'root'
mode '0755' mode '0755'