Puppet 1.7.3 "please explicitly set allow_virtual to false"

Sorry if this is a dumb question, but I was wondering in Foreman how do you
specify the Package allow_virtual to false to remove the warning messages
during a

puppet agent --test?

Warning: The package type's allow_virtual parameter will be changing its
default value from false to true in a future release. If you do not want to
allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in `default')

The puppet references I find say to put this in the site.pp, but that is
empty by design in foreman. I tried setting it in various areas but it is
not being picked up.

Thanks,

A few things to note here:

  1. Puppet will use the enc to classify the node
  2. Puppet will also load site.pp to load any global variables or defaults.
  3. If the node is not in foreman thus the enc script returns not found,
    puppet will consult site.pp to see if the node is defined

So with that in mind site.pp is still useful.

Perform the following:

site.pp

Package{
allow_virtual => false
}

If you decide you want virtual packages than just set the value to true.

ยทยทยท On Wednesday, January 14, 2015 at 11:17:23 AM UTC-8, Terrence Martin wrote: > > Sorry if this is a dumb question, but I was wondering in Foreman how do > you specify the Package allow_virtual to false to remove the warning > messages during a > > puppet agent --test? > > Warning: The package type's allow_virtual parameter will be changing its > default value from false to true in a future release. If you do not want to > allow virtual packages, please explicitly set allow_virtual to false. > (at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in `default') > > The puppet references I find say to put this in the site.pp, but that is > empty by design in foreman. I tried setting it in various areas but it is > not being picked up. > > Thanks, > > > > >