In a Puppet 4 environment, I'm getting the following error when declaring the ::grafana class:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, default expression for $archive_source tries to illegally access not yet evaluated $version at /etc/puppetlabs/code/environments/production/manifests/profile.grafana.pp:6:3 on node metrics01.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
From what I can tell, this is because the $version parameter is defined after the $archive_source parameter, which is trying to use it. I moved $version above $archive_source on my puppetmaster and I was able to get a successful run, but I haven't had time to thoroughly vet the change.
In a Puppet 4 environment, I'm getting the following error when declaring the ::grafana class:
From what I can tell, this is because the $version parameter is defined after the $archive_source parameter, which is trying to use it. I moved $version above $archive_source on my puppetmaster and I was able to get a successful run, but I haven't had time to thoroughly vet the change.