Hey All,

I've started to upgrade a few puppet clients to the latest version and have 
hit the issue which everyone had a while ago around this error

"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')"

I've implemented the fix in manfests/sites.pp in my test environment but 
the error message isn't going away!

Puppet masters are 3.7.4, but are setup under RVM so i can run > ruby 1.8.7 
due to an ordering issue.

Why is puppet not picking up the config is it a bug or am I missing 
something obvious?

The below is what i'm using in my site.pp and yes, i do see the notify 
message.

if versioncmp($::puppetversion,'3.6.1') >= 0 {
  notify {'I Am here':}


  $allow_virtual_packages = hiera('allow_virtual_packages',false)


  Package {
    allow_virtual => $allow_virtual_packages,
  }
}


# puppet agent -t --environment=dlscratch --server=int-puppet-dev
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
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')
Info: Caching catalog for xxx
Info: Applying configuration version '1423457136'
Notice: I Am here
Notice: /Stage[main]/Base/Notify[I Am here]/message: defined 'message' as 
'I Am here'
Notice: Finished catalog run in 6.62 seconds

Any suggestions as to where to look next?

I am aware that I can add this into the puppet.conf to disable all 
warnings, but i'd prefer to keep the config inside the manifests and only 
disable this one warning.

Cheers
David

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a5380933-a138-4f76-9f23-8b16df92f117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to