From bb9bf8e65cde59677e2bfa90f6a283d7503be249 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 17 Feb 2023 13:23:13 +0200 Subject: [PATCH] use network host --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index bfa80ba..44e9d4c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -19,6 +19,7 @@ class prometheus ( publish => [ "${container_port}:9090", ], + network => 'host', sysctl => 'net.ipv6.conf.all.disable_ipv6=1', volume => [ "${container_volume_name}:/prometheus", @@ -41,6 +42,7 @@ class prometheus ( "${container_port}:9090", ], sysctl => 'net.ipv6.conf.all.disable_ipv6=1', + network => 'host', volume => [ "${container_data_folder}:/prometheus", "${container_config_folder}:/etc/prometheus",