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'])