diff options
| author | alex <alex@pdp7.net> | 2025-10-07 08:17:33 +0200 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2025-10-07 08:18:16 +0200 |
| commit | 2292b1228b43298027503778b8aa6e7d8beca0ee (patch) | |
| tree | 88d4f3485f317a198093b99cfaeb8edfb69c62a7 /personal_infra | |
| parent | 854c4ab7cf8521b23570a24583930ff8b153cc21 (diff) | |
Try to improve otelcol-contrib startup
Diffstat (limited to 'personal_infra')
| -rw-r--r-- | personal_infra/puppet/site/clickhouse.h1.int.pdp7.net.pp | 20 |
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'] } |
