问题01:
[root@node01 ~]# puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for node01
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.rb:816:in `set_default')
……………………
解决办法:
[root@puppetserver manifests]# pwd
/etc/puppet/manifests
添加下列内容到site.pp
[root@puppetserver manifests]# vi site.pp
if versioncmp($::puppetversion,'3.6.2') >= 0 {
$allow_virtual_packages = hiera('allow_virtual_packages',false)
Package {
allow_virtual => $allow_virtual_packages,
}
}
import "modules.pp"
import "nodes.pp"
***************************************************************************************************************