On Wed, Oct 29, 2008 at 8:48 PM, RijilV <[EMAIL PROTECTED]> wrote:
>
> 2008/10/29 Arnau <[EMAIL PROTECTED]>:
[...]
> 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';
> }
Here I'm mixing rpm and yum depending on the rpm, is it? Always with package
type?
*I really like and need this one...
>
> exec { "yum installgroup foobar":
> unless => "yum grouplist | grep foobar",
> }
> }
>
So, I'm not using "package" here, I'm doing it with exec, telling that if
the package is foobar, execute "yum groupinstall"... but then, it will be
logged out of package type section... is it?
>
> > 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...
>
Really interesting, I must look it.
> > So, could someone answer these questions? I'm really interested in
> > using this software!
> >
> > TIA,
> > Arnau
>
>
> Hope that gives you some answer,
Sure, many thanks for your reply!
>
> cheers
> .r'
>
Cheers,
Arnau
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---