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_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 = {
|
||||||
|
@ -36,12 +39,15 @@ class grafana (
|
||||||
} else {
|
} else {
|
||||||
file {$container_data_folder:
|
file {$container_data_folder:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
|
owner => 'grafana',
|
||||||
}
|
}
|
||||||
file {$container_logs_folder:
|
file {$container_logs_folder:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
|
owner => 'grafana',
|
||||||
}
|
}
|
||||||
file {$container_config_folder:
|
file {$container_config_folder:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
|
owner => 'grafana',
|
||||||
}
|
}
|
||||||
$flags = {
|
$flags = {
|
||||||
publish => [
|
publish => [
|
||||||
|
|
Loading…
Reference in a new issue