geppetto icon indicating copy to clipboard operation
geppetto copied to clipboard

Default parameter value that is using other parameters is giving warning in Geppetto

Open aadamovich opened this issue 11 years ago • 1 comments

The following simple define gives an error in Geppetto. Even though it works in Puppet.

define test(
  $user = $title,
  $group = $user
) {
  exec { "$user":
    command => "echo $group",
    path => "/usr/bin:/bin"
  }
}

geppetto

aadamovich avatar Oct 23 '13 23:10 aadamovich

This also occurs with interpolated variables, e.g.:

define test (
  $foo = $title,
  $bar = "/${foo}/bar",
) {
  ...
}

SteveMaddison avatar Dec 20 '13 10:12 SteveMaddison