On 09.12.2009 16:11, Silviu Paragina wrote:
> On 09.12.2009 09:25, David Schmitt wrote:
>>
>> If you can detect from the facts that an erreneous situation is
>> ocurring, you could change the environment at the node level or in an
>> external node script.
>>
>>
>> Regards, DavidS
>>
> You mean something like
> node problem
> {
> if (condition)
> {
> }else
> {
> #normal stuff
> }
> }
Exactly!
> On 09.12.2009 15:56, jcbollinger wrote:
>> Or, if you can know from the facts presented (or otherwise) what the
>> correct provider is, but you can't rely on Puppet to autodetect it
>> correctly, then you can specify the provider explicitly. Resource
>> default parameters are good for doing that. That removes the need to
>> perform multiple runs.
>>
>> Note also that the above is a general principle of Puppet; it is not
>> restricted to this particular scenario.
>>
>
> My problem case is on Ubuntu sytem where lsb-release isn't installed as
> such the system is detected as debian.
> I don't want any debian specific stuff going on a ubuntu system.
Well, you can have ($lsb_release == '') as condition. Then you can just
install the lsb-release package and the next run will have the correct
facts.
Regards, DavidS
--
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.