Mercurial > repos > other > Puppet
diff manifests/site.pp @ 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 | 956e484adc12 |
children | ea72ea1f7320 |
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, + } +}