bfraser / puppet-grafana

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

Error: default expression for $package_source tries to illegally access not yet evaluated $rpm_iteration #89

Open ltutar opened 8 years ago

ltutar commented 8 years ago

When I use the module with PE 2016.1.1, I get the following error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, default expression for $package_source tries to illegally access not yet evaluated $rpm_iteration

I did not have this error with PE 2015.3.3 Moving the line in init.pp

  $rpm_iteration       = $::grafana::params::rpm_iteration,

above

  $package_source      = $::osfamily ? {

solved the issue.

bfraser commented 8 years ago

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

ltutar commented 8 years ago

Hi,

The commit 774f8a6 is indeed taking care of the ordering but acc8075 is undoing the previous change. The master is now not working with PE2016.1.1. Any chance to get 774f8a62e7ed7e856dc8fd246c3c76b336358e7e in the master?