Re: [Puppet Users] Conditionals within a class based of something else than facter variable

2012-07-03 Thread Eric Shamow
On Tuesday, July 3, 2012 at 5:31 AM, Itamar Landsman wrote: > Hi All, > > First I want to apologize, I never completely dove into the fine details of > puppet. I just use it on my network of +-100 VMs for odd jobs. > > my question is: I know how to set up a class that would, for example, insta

[Puppet Users] Conditionals within a class based of something else than facter variable

2012-07-03 Thread Itamar Landsman
Hi All, First I want to apologize, I never completely dove into the fine details of puppet. I just use it on my network of +-100 VMs for odd jobs. my question is: I know how to set up a class that would, for example, install a package on a machine based on a facter variable (e.g. operating sys

Re: [Puppet Users] Conditionals

2011-05-04 Thread Nigel Kersten
On Wed, May 4, 2011 at 8:01 AM, Felix Frank wrote: > > Can I somehow pass variables or other tokens around the catalogue and > > make conditional decisions in other modules based on them? > > Excellent question. > > You more or less can, but you shouldn't. Scoping issues will bite you > sooner or

Re: [Puppet Users] Conditionals

2011-05-04 Thread Felix Frank
> Can I somehow pass variables or other tokens around the catalogue and > make conditional decisions in other modules based on them? Excellent question. You more or less can, but you shouldn't. Scoping issues will bite you sooner or later. For your use case, you should take a hard look at Custom

Re: [Puppet Users] Conditionals

2011-05-02 Thread Martin Alfke
Hi, general: it would be nice if you could also send logoutput. On 05/03/2011 08:34 AM, Giovanni Bordello wrote: > Hi guys, > > I'm trying to get my head around conditionals and variables. > > What I'm trying to do now is to distinguish between puppet servers and > puppet clients and deliver s

[Puppet Users] Conditionals

2011-05-02 Thread Giovanni Bordello
Hi guys, I'm trying to get my head around conditionals and variables. What I'm trying to do now is to distinguish between puppet servers and puppet clients and deliver some settings differently. How can I do that? I tried to put a variable in the node classes: node 'puppet1' { $p

[Puppet Users] conditionals?

2009-03-08 Thread Steve Wray
Hi there, we have a mixed deployment of sarge, etch and now lenny servers. The first example works: case $lsbdistcodename { sarge: { package { ntp: ensure => present } } default: { package { ntp: ensure => absent } } } This does not: package { ntp: case $lsbdistcodenam

[Puppet Users] Conditionals allowed within types?

2008-12-23 Thread gary
Hello, I'm trying to do this: service { monit: ensure => running, enable => true, hasrestart => true, if ($operatingsystem == 'centos') { hasstatus => true, }, require => Package['monit'], subscribe => File['monit.conf'], } And it doesn't