From ccaaa81cb4c7ea19d4b6cf16e36c4fdeb05549b3 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 23 Nov 2020 00:52:14 +0900 Subject: [PATCH] Modify owner and group for `consul` config from `root` to `consul`. --- cookbooks/gitea/setup-go-mmproxy.rb | 4 ++-- cookbooks/gitea/setup.rb | 4 ++-- cookbooks/grafana/setup.rb | 4 ++-- cookbooks/loki/setup.rb | 4 ++-- cookbooks/prometheus-exporters/filestat_exporter_setup.rb | 4 ++-- cookbooks/prometheus-exporters/node_exporter_setup.rb | 4 ++-- cookbooks/prometheus/prometheus_setup.rb | 4 ++-- cookbooks/prometheus/snmp_exporter_setup.rb | 4 ++-- cookbooks/vector/syslog_setup.rb | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/cookbooks/gitea/setup-go-mmproxy.rb b/cookbooks/gitea/setup-go-mmproxy.rb index 6803a71..2006378 100644 --- a/cookbooks/gitea/setup-go-mmproxy.rb +++ b/cookbooks/gitea/setup-go-mmproxy.rb @@ -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]' diff --git a/cookbooks/gitea/setup.rb b/cookbooks/gitea/setup.rb index 283617a..2bf1cbe 100644 --- a/cookbooks/gitea/setup.rb +++ b/cookbooks/gitea/setup.rb @@ -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]' diff --git a/cookbooks/grafana/setup.rb b/cookbooks/grafana/setup.rb index 8f5a6fa..5169437 100644 --- a/cookbooks/grafana/setup.rb +++ b/cookbooks/grafana/setup.rb @@ -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]' diff --git a/cookbooks/loki/setup.rb b/cookbooks/loki/setup.rb index 9a335f7..368abf4 100644 --- a/cookbooks/loki/setup.rb +++ b/cookbooks/loki/setup.rb @@ -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']) diff --git a/cookbooks/prometheus-exporters/filestat_exporter_setup.rb b/cookbooks/prometheus-exporters/filestat_exporter_setup.rb index 3669e61..71b2a9f 100644 --- a/cookbooks/prometheus-exporters/filestat_exporter_setup.rb +++ b/cookbooks/prometheus-exporters/filestat_exporter_setup.rb @@ -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]' diff --git a/cookbooks/prometheus-exporters/node_exporter_setup.rb b/cookbooks/prometheus-exporters/node_exporter_setup.rb index c311f9f..c907a3f 100644 --- a/cookbooks/prometheus-exporters/node_exporter_setup.rb +++ b/cookbooks/prometheus-exporters/node_exporter_setup.rb @@ -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]' diff --git a/cookbooks/prometheus/prometheus_setup.rb b/cookbooks/prometheus/prometheus_setup.rb index e918e2a..975270d 100644 --- a/cookbooks/prometheus/prometheus_setup.rb +++ b/cookbooks/prometheus/prometheus_setup.rb @@ -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]' diff --git a/cookbooks/prometheus/snmp_exporter_setup.rb b/cookbooks/prometheus/snmp_exporter_setup.rb index d8a4374..5b11a89 100644 --- a/cookbooks/prometheus/snmp_exporter_setup.rb +++ b/cookbooks/prometheus/snmp_exporter_setup.rb @@ -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]' diff --git a/cookbooks/vector/syslog_setup.rb b/cookbooks/vector/syslog_setup.rb index 638d113..1da1eec 100644 --- a/cookbooks/vector/syslog_setup.rb +++ b/cookbooks/vector/syslog_setup.rb @@ -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'])