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'),