2008/10/29 Arnau Bria <[EMAIL PROTECTED]>:
>
>
> 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...
Yeah, the package type is platform independent, and pretty
configurable. You can read more about the built-in types over at:
http://reductivelabs.com/trac/puppet/wiki/TypeReference
>> 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?
Honestly I wouldn't use package groups like this. I would just create
a RPM that requires all the stuff that I want installed and use
yum/apt to install that particular rpm. Also, for what its worth, I
would probably not ever use RPM directly. Setting up a local yum or
apt repository is easy and it will save you quite a bit of work in the
long run.
Also I'm not sure there isn't a way to get puppet's default package
provider to handle yum grouplists like the above, I've just never done
it.
.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
-~----------~----~----~----~------~----~------~--~---