Peter Meier wrote:
> Hi
>
>> Ok well, of neccessity, I am running in a mixed environment.
>
> I can understand that, on the otherside I would recommend to run a
> unique puppet environment and the custom packaging time you have to do
> for that is really worth the time.
Thats the objective.
In order to converge on uniformity it will be nice to have puppets help...
but in order to get puppet to help I have to get it to help in a diverse
environment. Catch 22 kind of.
I came up with this but I'm not really sure how correct it is:
package { ntp-simple:
ensure => $lsbdistcodename? {
'sarge' => present,
default =>
$virtual? {
'xenu' => absent,
'xen0' => present,
'openvz' => absent,
'physical' => present,
default => present
}
}
Any comment or advice? Is this going to do something unexpected?
>> Is there a nice way to get what I am trying to achieve in a mixed
>> environment?
>>
>> Ie: a conditional with boolean conditionals ie something logically
>> equivalent of:
>>
>> "if (a or b) then c"
>
> with ugly statements: yes, with nice statements: not that I know. These
> new language features are exactly for that. :) I'm currently happily
> getting rid of these ugly statements.
>
> cheers pete
>
> >
--
Please remember that an email is just like a postcard; it is not
confidential nor private nor secure and can be read by many other people
than the intended recipient. A postcard can be read by anyone at the mail
sorting office and expecting what is written on it to be private and secret
is not realistic. Please hold no higher expectation of email.
If you need to send confidential information in an email you need to use
encryption. PGP is Pretty good for this.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---