Hi
You saved my day. Actually there was a lot of white space :-) Now my
module looks like:
...
if ($manufacturer == 'Xen') or ($manufacturer == "Sun Microsystems
"){
...
Thanks a lot for the great Tip!
BR, Rene
On Apr 20, 8:54 am, Ohad Levy <[email protected]> wrote:
> I've seen cases where there were white spaces at the end of the fact name,
> double check your facts yaml file on the master
> (~puppet/yaml/facts/hostname)
>
> Ohad
>
>
>
> On Tue, Apr 20, 2010 at 2:39 PM, Rene <[email protected]> wrote:
> > Hi
>
> > I have the following module for installing HP software on HP Servers:
> > class hpasm {
>
> > tag('hpasm')
>
> > $packagelist = [ "hpasm", "hpacucli" ]
>
> > if ($manufacturer == 'Xen') or ($manufacturer == 'Sun
> > Microsystems'){
> > }
> > else {
> > file { "/opt/compaq":
> > owner => root,
> > group => root,
> > mode => 755,
> > ensure => directory,
> > }
> > file { "/opt/compaq/cma.conf":
> > owner => root,
> > group => root,
> > mode => 600,
> > ensure => file,
> > require => File["/opt/compaq"],
> > source => "puppet:///hpasm/cma.conf",
> > }
> > package { $packagelist:
> > ensure => installed,
> > }
> > service { "hpasm":
> > ensure => running,
> > enable => true,
> > require => Package['hpasm'],
> > }
> > }
> > }
>
> > The Software should not be installed on XEN or SUN systems. But on a
> > Testsystem I get the following:
>
> > # facter |grep manu
> > manufacturer => Sun Microsystems
>
> > And when I run puppet:
> > /usr/sbin/puppetd --waitforcert 60 --masterport 7002 --no-daemonize --
> > onetime -l console --noop --tags hpasm
> > notice: Starting catalog run
> > notice: //Node[default]/hpasm/Package[hpasm]/ensure: is absent, should
> > be present (noop)
> > notice: //Node[default]/hpasm/Service[hpasm]/enable: is false, should
> > be true (noop)
> > notice: //Node[default]/hpasm/File[/opt/compaq/cma.conf]/ensure: is
> > absent, should be file (noop)
> > notice: Finished catalog run in 2.58 seconds
>
> > But this should not be. Has Puppet problems, when I have serveral
> > words in afact, since it works perfectly for Xen Systems.
>
> > Any Ideas are appreciated.
>
> > BR, Rene
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Puppet Users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<puppet-users%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.