Mercurial > repos > other > Puppet
changeset 19:e3aeb8761950 puppet-3.6
Prevent warning by setting a value for allow_virtual (when we need it)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 08 Mar 2015 20:47:27 +0000 |
parents | ed5edb4c9412 |
children | 393acb5f672d |
files | manifests/site.pp |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/manifests/site.pp Tue Mar 03 19:30:07 2015 +0000 +++ b/manifests/site.pp Sun Mar 08 20:47:27 2015 +0000 @@ -1,3 +1,9 @@ -import "nodes" +Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } + +if versioncmp($::puppetversion, '3.6.1') >= 0 { + $allow_virtual_packages = hiera('allow_virtual_packages', false) -Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } + Package { + allow_virtual => $allow_virtual_packages, + } +}