bfraser / puppet-grafana

Puppet module to manage Grafana
Apache License 2.0
39 stars 204 forks source link

Error: $archive_source tries to illegally access not yet evaluated $version #87

Open bgshacklett opened 8 years ago

bgshacklett commented 8 years ago

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.

bfraser commented 8 years ago

This should be fixed in acc8075 as a result of moving the version logic to the install manifest.

brettswift commented 8 years ago

I ran into this as well. I could use the hash but I'm curious when the new release is planned?