cloudsmith/geppetto — Issue #211: Variables references not picked up from definition argument
Author: hlindberg
Created: 2011-10-19 14:34:10+00:00
State: open

As reported in #202.

Variables that have been passed through as parameters or are otherwise in the local scope, aren't being detected, and Geppetto would like to correct them to the global scope.

For example, in this method we use for managing background daemons, we pass a range of parameters, and use $script_name to name the target file on the node, however Geppetto wants to correct $script_name to $::script_name.

define background_process_daemons($project_name, $script_name, $daemon_count=1, $env_type="RACK_ENV")
{
file { "/etc/monit.d/ih_background_process_daemons_$script_name.monitrc":
etc => true,
etc => false,
}
}