2008/10/29 Arnau <[EMAIL PROTECTED]>:
> Hi all,
> [..snip..]
> 1.-) RPM. In CFE I wanted to use "yum install", "yum group install"
> and
> "rpm -Uvh" in same host group (or class), but for different
> packages/metapackages. I was no able, and I think, for replies I got
> from list, I will not...
> So, is puppet able to use many rpm install commands in same host?
>
> *Did not find the answer here:
> http://reductivelabs.com/trac/puppet/wiki/TypeReference#package


Sure, you should be able to do that.  For the yum groupinstall you
might have to run that as an exec (someone else here might know more),
but in general you'd have something like the below completely
contrived example:

node foo {
    include example
}

class example {
    package {
        "some_rpm":
             provider => 'rpm',
             ensure  => 'installed',
             source   => 'http://my_rpm_repo/some_rpm.rpm";;
         "some_yum":
              ensure  => 'installed',
              provider => 'yum';
     }

     exec { "yum installgroup foobar":
         unless => "yum grouplist | grep foobar",
      }
}



> 2.-) CFE logs are crazy... I need syslog or nagios and parse them
> myself...
> I've seen:
> http://www.devco.net/pubwiki/Puppet/PuppetView and looks very nice,
> but
> has puppet a sumary of what has done in the client with a simple "OK"
> or "KO"?

There are a couple of ways to get this information, you could take a
look at reports:
http://reductivelabs.com/trac/puppet/wiki/ReportReference and the
"Reports and Reporting" link from there.  The puppet client can log to
a file or a syslog server, and produces logs of what has been done to
a system.  If you really really need to know the exact state that
puppet believes the system is in, you can poke at
/var/lib/puppet/state/state.yaml, but you probably should use one of
the other methods...

> So, could someone answer these questions? I'm really interested in
> using this software!
>
> TIA,
> Arnau


Hope that gives you some answer,

cheers
.r'

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to