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