Modify owner and group for `consul` config from `root` to `consul`.
This commit is contained in:
parent
0d9e65359a
commit
ccaaa81cb4
|
@ -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]'
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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'])
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue