Try rearrange order in attempt to make dir creation work, SC2522

This commit is contained in:
Patrik Holmqvist 2025-03-25 15:02:50 +01:00
parent 2adc58c274
commit fc45a01656
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -18,6 +18,14 @@ class eid::telegraf2 (
$influxdb2_bucket = hiera(influxdb2_bucket,'NOT_SET_IN_HIERA')
$influxdb2_bucket_proxy = hiera(influxdb2_bucket_proxy,'NOT_SET_IN_HIERA')
sunet::docker_compose { 'telegraf':
content => template('eid/telegraf2/docker-compose.yml.erb'),
service_name => 'telegraf',
compose_dir => '/opt/',
compose_filename => 'docker-compose.yml',
description => 'telegraf'
}
file {["${service_dir}/telegraf.conf.d"]: ensure => directory }
concat {"${service_dir}/telegraf.conf":
owner => 'root',
@ -45,11 +53,4 @@ class eid::telegraf2 (
}
}
sunet::docker_compose { 'telegraf':
content => template('eid/telegraf2/docker-compose.yml.erb'),
service_name => 'telegraf',
compose_dir => '/opt/',
compose_filename => 'docker-compose.yml',
description => 'telegraf'
}
}