From 2342c6fcb76c9371597ff8b0d1bb53145c81cb79 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 12 Feb 2023 19:07:59 +0200 Subject: [PATCH] set host network --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index bfa80ba..7c7de25 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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'),