set host network
This commit is contained in:
parent
ca650aa56b
commit
2342c6fcb7
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ class prometheus (
|
||||||
"${container_volume_name}:/prometheus",
|
"${container_volume_name}:/prometheus",
|
||||||
],
|
],
|
||||||
env => $env,
|
env => $env,
|
||||||
|
network => 'host',
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
user { $system_user:
|
user { $system_user:
|
||||||
|
@ -46,6 +47,7 @@ class prometheus (
|
||||||
"${container_config_folder}:/etc/prometheus",
|
"${container_config_folder}:/etc/prometheus",
|
||||||
],
|
],
|
||||||
env => $env,
|
env => $env,
|
||||||
|
network => 'host',
|
||||||
}
|
}
|
||||||
file { "${container_config_folder}/prometheus.yml":
|
file { "${container_config_folder}/prometheus.yml":
|
||||||
content => template('prometheus/prometheus.yml.erb'),
|
content => template('prometheus/prometheus.yml.erb'),
|
||||||
|
|
Loading…
Reference in a new issue