Modify owner and group for `consul` config from `root` to `consul`.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-23 00:52:14 +09:00
parent 0d9e65359a
commit ccaaa81cb4
9 changed files with 18 additions and 18 deletions

View File

@ -13,8 +13,8 @@ end
# Depoy `consul` service configuration for `gitea`:
remote_file '/etc/consul.d/service-go-mmproxy.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -70,8 +70,8 @@ end
# Depoy `consul` service configuration for `gitea`:
remote_file '/etc/consul.d/service-gitea.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -42,8 +42,8 @@ end
# Deploy `consul` config for `grafana`:
remote_file '/etc/consul.d/service-grafana.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -32,8 +32,8 @@ end
# Depoy `consul` service configuration for `loki`:
template '/etc/consul.d/service-loki.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
variables(ipaddr: node['consul']['ipaddr'])

View File

@ -18,8 +18,8 @@ end
# Deploy `consul` config for `node_exporter`:
remote_file '/etc/consul.d/service-filestat_exporter.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -9,8 +9,8 @@ end
# Deploy `consul` config for `node_exporter`:
remote_file '/etc/consul.d/service-node_exporter.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -25,8 +25,8 @@ end
# Depoy `consul` service configuration for `prometheus`:
remote_file '/etc/consul.d/service-prometheus.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -14,8 +14,8 @@ end
# Deploy `consul` config:
remote_file '/etc/consul.d/service-snmp_exporter.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
notifies :reload, 'service[consul]'

View File

@ -50,8 +50,8 @@ end
# Depoy `consul` service configuration for `loki`:
template '/etc/consul.d/service-vector-syslog.json' do
owner 'root'
group 'root'
owner 'consul'
group 'consul'
mode '644'
variables(ipaddr: node['vector']['ipaddr'])