Re: [Puppet Users] puppet class if

2013-10-14 Thread jcbollinger
On Friday, October 11, 2013 8:59:10 AM UTC-5, Werner Flamme wrote: > > I'm not Jakub (the OP), it is not my problem. > > I'm only the one who wanted to know where the "couple of errors" are. > > Peter was mistaken. There are no actual errors in the OP's manifest, and it might work in some en

Re: [Puppet Users] puppet class if

2013-10-11 Thread Bernd Weber
Guys, check this out: http://docs.puppetlabs.com/puppet/3/reference/lang_expressions.html Either way should work. @Jakub, 2 things I see here: * you should generally make sure to use the right scope in your variables. I'm assuming from your code that you want the global facter variable hostnam

Re: [Puppet Users] puppet class if

2013-10-11 Thread Werner Flamme
Peter Bukowinski [11.10.2013 15:57]: > On Oct 11, 2013, at 9:06 AM, Werner Flamme wrote: > >> Peter Bukowinski [11.10.2013 14:39]: >>> On Oct 11, 2013, at 5:48 AM, Jakub Bittner wrote: >>> Hello, I created puppet class and I want the file operation to be executed on all serv

Re: [Puppet Users] puppet class if

2013-10-11 Thread Peter Bukowinski
On Oct 11, 2013, at 9:06 AM, Werner Flamme wrote: > Peter Bukowinski [11.10.2013 14:39]: >> On Oct 11, 2013, at 5:48 AM, Jakub Bittner wrote: >> >>> Hello, >>> >>> I created puppet class and I want the file operation to be executed on all >>> servers but not on server with hostname "'server1.

Re: [Puppet Users] puppet class if

2013-10-11 Thread Werner Flamme
Peter Bukowinski [11.10.2013 14:39]: > On Oct 11, 2013, at 5:48 AM, Jakub Bittner wrote: > >> Hello, >> >> I created puppet class and I want the file operation to be executed on all >> servers but not on server with hostname "'server1.domain.com". I tried this >> class, but it does not work. Is

Re: [Puppet Users] puppet class if

2013-10-11 Thread Peter Bukowinski
On Oct 11, 2013, at 5:48 AM, Jakub Bittner wrote: > Hello, > > I created puppet class and I want the file operation to be executed on all > servers but not on server with hostname "'server1.domain.com". I tried this > class, but it does not work. Is there any other way? Thanks > > > class te

[Puppet Users] puppet class if

2013-10-11 Thread Jakub Bittner
Hello, I created puppet class and I want the file operation to be executed on all servers but not on server with hostname "'server1.domain.com". I tried this class, but it does not work. Is there any other way? Thanks class test { if $hostname != 'server1.domain.com' { file