| Hi, if I'm using a variable named `$require` within a defined resource,I cannot add the $require metaparameter to it. Failing code:
package { 'htop': |
ensure => 'insalled' |
} |
define bla { |
$require = 'a string' |
notify { $require:} |
} |
|
bla {'foobar': |
require => Package['htop'], |
}
|
this fails during a puppet apply with:
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Cannot reassign variable '$require'
|
I can reproduce this on Puppet 6.23.0 on Arch Linux. I checked https://puppet.com/docs/puppet/6/lang_reserved.html and require isn't listed as reserved keyword. |