Try rearrange order in attempt to make dir creation work, SC2522
This commit is contained in:
parent
2adc58c274
commit
fc45a01656
1 changed files with 8 additions and 7 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue