class varnish {
$required = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat|scientific)/ => [ 'varnish', 'varnish-libs' ],
}
package { $required: ensure => 'latest' }
file { '/etc/varnish':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0750',
}
group { 'varnish':
ensure => present,
gid => 241,
}
user { 'varnish':
ensure => present,
gid => 241,
home => '/var/lib/varnish',
shell => '/sbin/nologin',
managehome => true,
uid => 241,
}
}
Could be that the selector is not returning what you expect?
Btw i think that its easier to use $::osfamily
Regards,
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/38fbf242-389a-4c07-a358-3c567da98411%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
osfamily => RedHat
operatingsystem => CentOS
I would try setting a notify to check if $required really got the value, or setting the array directly in the package resource.
Regards,
--