Info: Loading facts
Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Grafana]: has no parameter named 'cfg' (file: /tmp/puppet/modules/extends_grafana/manifests/init.pp, line: 19, column: 5) on node infra-grafana-001.test.local
Any additional information you'd like to impart
Into the hiera style, we can see that the module reset the initial grafana.ini file and change the permissions/owner with root and 0744. Whereas into the grafana::config class, normally we should have 0644 for the user/group grafana
Into puppet style, the grafana class has a cfg parameter. So I don't understand why I got that error
class grafana (
Optional[String] $archive_source,
String $cfg_location,
Hash $cfg,
....
Furthermore, I test other modules versions : 10.0.1, 12.0.0 and 13.1.0. I got the same error.
Last information, I want to use the hiera style (instead of puppet style) because I can configure my grafana instance without create a puppet module
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I used 2 methods :
What are you seeing
grafana::cfg
variables are setup into the grafana.ini filecfg
parameterWhat behaviour did you expect instead
Regardless of the method used, my grafana.ini should contain the defined variables
Output log
With hiera cf hiera_output.log
With puppet
Any additional information you'd like to impart
grafana.ini
file and change the permissions/owner with root and 0744. Whereas into thegrafana::config
class, normally we should have 0644 for the user/groupgrafana
grafana
class has a cfg parameter. So I don't understand why I got that errorFurthermore, I test other modules versions : 10.0.1, 12.0.0 and 13.1.0. I got the same error.
Last information, I want to use the hiera style (instead of puppet style) because I can configure my grafana instance without create a puppet module
Thanks in advance for your help