|
With following sample project:
example ├── environments │ ├── local │ │ └── environment.conf │ └── vagrant │ └── environment.conf ├── manifests │ └── site.pp └── modules └── simplefact └── lib └── facter └── helloworld.rb
$ cat example/environments/local/environment.conf modulepath = c:/example/modules manifest = c:/example/manifests/site.pp
$ cat example/environments/vagrant/environment.conf modulepath = c:/vagrant/example/modules manifest = c:/vagrant/example/manifests/site.pp
$ cat example/manifests/site.pp notify {$hello_world: }
$ cat example/modules/simplefact/lib/facter/helloworld.rb Facter.add("hello_world") do setcode do "foo bar" end end
Running Puppet 4 (puppet-agent-1.2.2-x64.msi) inside Windows guest gives following output:
puppet apply --environmentpath environments --environment local manifests\site.pp Notice: Compiled catalog for win2008r2.fi.logica.com in environment local in 0.30 seconds Notice: foo bar Notice: /Stage[main]/Main/Notify[foo bar]/message: defined 'message' as 'foo bar' Notice: Applied catalog in 0.03 seconds
puppet apply --environmentpath environments --environment vagrant manifests\site.pp Error: Evaluation Error: Missing title. The title expression resulted in undef at C:/example/manifests/site.pp:1:9 on node win2008r2.fi.demobox.com
Both environments work with puppet-3.8.1-x64.msi. Currently this prevents us to move to Puppet 4. Full debug output for failing run is provided in attachment.
|