set host network

This commit is contained in:
Antonio J. Delgado 2023-02-12 19:07:59 +02:00
parent ca650aa56b
commit 2342c6fcb7

View file

@ -24,6 +24,7 @@ class prometheus (
"${container_volume_name}:/prometheus",
],
env => $env,
network => 'host',
}
} else {
user { $system_user:
@ -46,6 +47,7 @@ class prometheus (
"${container_config_folder}:/etc/prometheus",
],
env => $env,
network => 'host',
}
file { "${container_config_folder}/prometheus.yml":
content => template('prometheus/prometheus.yml.erb'),