use podman user for folders
This commit is contained in:
parent
efff58d734
commit
a79c421e14
1 changed files with 3 additions and 6 deletions
|
@ -22,9 +22,6 @@ class grafana (
|
||||||
'GF_LOG_MODE=console file',
|
'GF_LOG_MODE=console file',
|
||||||
"GF_SECURITY_ADMIN_USER=${admin_password}",
|
"GF_SECURITY_ADMIN_USER=${admin_password}",
|
||||||
]
|
]
|
||||||
user {'grafana':
|
|
||||||
ensure => present,
|
|
||||||
}
|
|
||||||
if (!$container_mount_data_folder) {
|
if (!$container_mount_data_folder) {
|
||||||
podman::volume{$container_volume_name:}
|
podman::volume{$container_volume_name:}
|
||||||
$flags = {
|
$flags = {
|
||||||
|
@ -39,15 +36,15 @@ class grafana (
|
||||||
} else {
|
} else {
|
||||||
file {$container_data_folder:
|
file {$container_data_folder:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'grafana',
|
owner => 'podman',
|
||||||
}
|
}
|
||||||
file {$container_logs_folder:
|
file {$container_logs_folder:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'grafana',
|
owner => 'podman',
|
||||||
}
|
}
|
||||||
file {$container_config_folder:
|
file {$container_config_folder:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'grafana',
|
owner => 'podman',
|
||||||
}
|
}
|
||||||
$flags = {
|
$flags = {
|
||||||
publish => [
|
publish => [
|
||||||
|
|
Loading…
Reference in a new issue