aboutsummaryrefslogtreecommitdiff
path: root/personal_infra
diff options
context:
space:
mode:
Diffstat (limited to 'personal_infra')
-rw-r--r--personal_infra/puppet/site/clickhouse.h1.int.pdp7.net.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/personal_infra/puppet/site/clickhouse.h1.int.pdp7.net.pp b/personal_infra/puppet/site/clickhouse.h1.int.pdp7.net.pp
index dd9e15c8..edefe23f 100644
--- a/personal_infra/puppet/site/clickhouse.h1.int.pdp7.net.pp
+++ b/personal_infra/puppet/site/clickhouse.h1.int.pdp7.net.pp
@@ -53,4 +53,24 @@ node 'clickhouse.h1.int.pdp7.net' {
require => Package['otelcol-contrib'],
notify => Service['otelcol-contrib'],
}
+
+ Package['otelcol-contrib']
+ ->
+ file {'/etc/systemd/system/otelcol-contrib.service.d':
+ ensure => directory,
+ }
+ ->
+ Package['clickhouse-server']
+ ->
+ file {'/etc/systemd/system/otelcol-contrib.service.d/depends.conf':
+ content => @(EOT)
+ [Unit]
+ Requires=clickhouse-server.service
+ | EOT
+ ,
+ }
+ ~>
+ exec {'/usr/bin/systemctl daemon-reload':}
+ ~>
+ Service['otelcol-contrib']
}