-
Notifications
You must be signed in to change notification settings - Fork 204
Description
Generates the following error after upgrading to 4.4:
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
This appears to be because the default definition of
$archive_source = "https://grafanarel.s3.amazonaws.com/builds/grafana-${version}.linux-x64.tar.gz"
utilises the expression
$version = $::grafana::params::version
The behaviour of this changes in 4.4 as detailed in https://github.com/puppetlabs/puppet-specifications/blob/master/language/parameter_scope.md
Workaround
Specify $version
in calling manifest
If using a RedHat/Amazon os family, you also need to specify $rpm_iteration
in the calling manifest