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",