Add plugins
This commit is contained in:
parent
b6f246c70d
commit
00a6a05f4c
1 changed files with 3 additions and 0 deletions
|
@ -14,7 +14,9 @@ class grafana (
|
||||||
$container_port = '3000',
|
$container_port = '3000',
|
||||||
$configuration = {}, # Refer to https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/
|
$configuration = {}, # Refer to https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/
|
||||||
$ldap_config = {},
|
$ldap_config = {},
|
||||||
|
$plugins = '',
|
||||||
) {
|
) {
|
||||||
|
$string_plugins = join($plugins, ',')
|
||||||
$env = [
|
$env = [
|
||||||
"GF_PATHS_CONFIG=${container_config_folder}/grafana.ini",
|
"GF_PATHS_CONFIG=${container_config_folder}/grafana.ini",
|
||||||
"GF_PATHS_DATA=${$container_data_folder}",
|
"GF_PATHS_DATA=${$container_data_folder}",
|
||||||
|
@ -24,6 +26,7 @@ class grafana (
|
||||||
"GF_PATHS_PROVISIONING=${container_config_folder}/provisioning",
|
"GF_PATHS_PROVISIONING=${container_config_folder}/provisioning",
|
||||||
'GF_LOG_MODE=console file',
|
'GF_LOG_MODE=console file',
|
||||||
"GF_SECURITY_ADMIN_PASSWORD=${admin_password}",
|
"GF_SECURITY_ADMIN_PASSWORD=${admin_password}",
|
||||||
|
"GF_INSTALL_PLUGINS=${string_plugins}",
|
||||||
]
|
]
|
||||||
if (!$container_mount_data_folder) {
|
if (!$container_mount_data_folder) {
|
||||||
podman::volume { $container_volume_name: }
|
podman::volume { $container_volume_name: }
|
||||||
|
|
Loading…
Reference in a new issue