add network
This commit is contained in:
parent
c6a8f70897
commit
d2d203a6b2
1 changed files with 6 additions and 0 deletions
|
@ -22,9 +22,14 @@ class grafana (
|
||||||
'GF_LOG_MODE=console file',
|
'GF_LOG_MODE=console file',
|
||||||
"GF_SECURITY_ADMIN_USER=${admin_password}",
|
"GF_SECURITY_ADMIN_USER=${admin_password}",
|
||||||
]
|
]
|
||||||
|
podman::network {'grafana':
|
||||||
|
driver => 'bridge',
|
||||||
|
internal => true,
|
||||||
|
}
|
||||||
if (!$container_mount_data_folder) {
|
if (!$container_mount_data_folder) {
|
||||||
podman::volume{$container_volume_name:}
|
podman::volume{$container_volume_name:}
|
||||||
$flags = {
|
$flags = {
|
||||||
|
network => 'grafana',
|
||||||
publish => [
|
publish => [
|
||||||
"${container_port}:3000",
|
"${container_port}:3000",
|
||||||
],
|
],
|
||||||
|
@ -56,6 +61,7 @@ class grafana (
|
||||||
owner => 'grafana',
|
owner => 'grafana',
|
||||||
}
|
}
|
||||||
$flags = {
|
$flags = {
|
||||||
|
network => 'grafana',
|
||||||
publish => [
|
publish => [
|
||||||
"${container_port}:3000",
|
"${container_port}:3000",
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue