diff --git a/hieradata/roles/infra/metrics/grafana.yaml b/hieradata/roles/infra/metrics/grafana.yaml index 27633de..0cabd9e 100644 --- a/hieradata/roles/infra/metrics/grafana.yaml +++ b/hieradata/roles/infra/metrics/grafana.yaml @@ -11,6 +11,7 @@ profiles::metrics::grafana::db_name: "%{hiera('profiles::sql::postgresdb::dbname profiles::metrics::grafana::db_user: "%{hiera('profiles::sql::postgresdb::dbuser')}" profiles::metrics::grafana::db_pass: "%{hiera('profiles::sql::postgresdb::dbpass')}" profiles::metrics::grafana::pgsql_backend: true +profiles::metrics::grafana::version: '13.0.2' profiles::metrics::grafana::plugins: victoriametrics-logs-datasource: ensure: present diff --git a/site/profiles/manifests/metrics/grafana.pp b/site/profiles/manifests/metrics/grafana.pp index a97163c..1af9530 100644 --- a/site/profiles/manifests/metrics/grafana.pp +++ b/site/profiles/manifests/metrics/grafana.pp @@ -1,6 +1,7 @@ # profiles::metrics::grafana class profiles::metrics::grafana ( String $ldap_bind_pass, + String $version = 'installed', Stdlib::Port $http_port = 8080, String $app_mode = 'production', Boolean $allow_sign_up = false, @@ -107,6 +108,7 @@ class profiles::metrics::grafana ( # deploy grafana class { 'grafana': + version => $version, cfg => $cfg, ldap_cfg => $ldap_cfg, plugins => $plugins,