puppet 3.6をインストール時「please explicitly set allow_virtual to false」の対策

1.エラーメッセージ:
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’)

2.対策:
site.ppを設定する、次の内容を追加する
if versioncmp($::puppetversion,’3.6.1′) >= 0 {
$allow_virtual_packages = hiera('allow_virtual_packages’,false)

Package {
allow_virtual => $allow_virtual_packages,
}
}

Linux

Posted by arkgame