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`:
|
# Depoy `consul` service configuration for `gitea`:
|
||||||
remote_file '/etc/consul.d/service-go-mmproxy.json' do
|
remote_file '/etc/consul.d/service-go-mmproxy.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -70,8 +70,8 @@ end
|
||||||
|
|
||||||
# Depoy `consul` service configuration for `gitea`:
|
# Depoy `consul` service configuration for `gitea`:
|
||||||
remote_file '/etc/consul.d/service-gitea.json' do
|
remote_file '/etc/consul.d/service-gitea.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -42,8 +42,8 @@ end
|
||||||
|
|
||||||
# Deploy `consul` config for `grafana`:
|
# Deploy `consul` config for `grafana`:
|
||||||
remote_file '/etc/consul.d/service-grafana.json' do
|
remote_file '/etc/consul.d/service-grafana.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -32,8 +32,8 @@ end
|
||||||
|
|
||||||
# Depoy `consul` service configuration for `loki`:
|
# Depoy `consul` service configuration for `loki`:
|
||||||
template '/etc/consul.d/service-loki.json' do
|
template '/etc/consul.d/service-loki.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
variables(ipaddr: node['consul']['ipaddr'])
|
variables(ipaddr: node['consul']['ipaddr'])
|
||||||
|
|
|
@ -18,8 +18,8 @@ end
|
||||||
|
|
||||||
# Deploy `consul` config for `node_exporter`:
|
# Deploy `consul` config for `node_exporter`:
|
||||||
remote_file '/etc/consul.d/service-filestat_exporter.json' do
|
remote_file '/etc/consul.d/service-filestat_exporter.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -9,8 +9,8 @@ end
|
||||||
|
|
||||||
# Deploy `consul` config for `node_exporter`:
|
# Deploy `consul` config for `node_exporter`:
|
||||||
remote_file '/etc/consul.d/service-node_exporter.json' do
|
remote_file '/etc/consul.d/service-node_exporter.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -25,8 +25,8 @@ end
|
||||||
|
|
||||||
# Depoy `consul` service configuration for `prometheus`:
|
# Depoy `consul` service configuration for `prometheus`:
|
||||||
remote_file '/etc/consul.d/service-prometheus.json' do
|
remote_file '/etc/consul.d/service-prometheus.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -14,8 +14,8 @@ end
|
||||||
|
|
||||||
# Deploy `consul` config:
|
# Deploy `consul` config:
|
||||||
remote_file '/etc/consul.d/service-snmp_exporter.json' do
|
remote_file '/etc/consul.d/service-snmp_exporter.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[consul]'
|
notifies :reload, 'service[consul]'
|
||||||
|
|
|
@ -50,8 +50,8 @@ end
|
||||||
|
|
||||||
# Depoy `consul` service configuration for `loki`:
|
# Depoy `consul` service configuration for `loki`:
|
||||||
template '/etc/consul.d/service-vector-syslog.json' do
|
template '/etc/consul.d/service-vector-syslog.json' do
|
||||||
owner 'root'
|
owner 'consul'
|
||||||
group 'root'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
variables(ipaddr: node['vector']['ipaddr'])
|
variables(ipaddr: node['vector']['ipaddr'])
|
||||||
|
|
Loading…
Reference in New Issue