Skip to content

Module breaks with puppet 4.4 #75

@dalesit

Description

@dalesit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions