voxpupuli / puppet-staging

⛔️ Deprecated in favor of puppet-archive
https://forge.puppet.com/puppet/archive
Apache License 2.0
51 stars 109 forks source link

Variable $path not correctly scoped #59

Closed mkrakowitzer closed 9 years ago

mkrakowitzer commented 9 years ago

When using this module to run my tests with strict variables, I typically get the below error:

Undefined variable "::path"; Undefined variable "path" at confluence/spec/fixtures/modules/staging/manifests/extract.pp:53 on node merritt-l.home

./spec/classes/confluence_spec.rb:15:in `block (3 levels) in <top (required)>'

It does not seem to be correctly scoped. PR to follow shortly.

mkrakowitzer commented 9 years ago

Resolved this by setting fact :path => '/usr/local/bin:/usr/bin:/bin',