Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4959

Custom facts are missing when modules are shared between machines in VirtualBox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Epic Link:
    • Team:
      Coremunity

      Description

      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. Full debug output for failing run is provided in attachment. Host is Windows 7 and VirtualBox version is 5.0.0 r101573

      Currently this prevents us to move to Puppet 4 because Vagrant/VirtualBox is a critical piece in our acceptance testing process.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            vainikkaj Juha Vainikka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support