Try running in /etc instead of /opt

This commit is contained in:
Patrik Holmqvist 2025-03-25 16:20:27 +01:00
parent 98e381c712
commit 0bcbf398ba
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -8,7 +8,7 @@ class eid::telegraf2 (
String $version = 'latest',
String $server_fqdn = $facts['networking']['fqdn'],
Array $ports = [],
String $service_dir = '/opt/telegraf',
String $service_dir = '/etc/telegraf',
) {
# Get influx values
@ -21,7 +21,7 @@ class eid::telegraf2 (
sunet::docker_compose { 'telegraf':
content => template('eid/telegraf2/docker-compose.yml.erb'),
service_name => 'telegraf',
compose_dir => '/opt/',
compose_dir => '/etc/',
compose_filename => 'docker-compose.yml',
description => 'telegraf'
}