On Thu, Dec 23, 2010 at 4:19 PM, Stefan Schulte <stefan.schu...@taunusstein.net> wrote: > I don't really get it. You're testing dns_role agains "master". And you > can see that dns_role is indeed "master" when you just use some simple > <%= dns_role %>. And the code inside your if statement is evaluated. So > what exactly is the problem? Or is your problem that even nodes that > dont have dns_role set are including this cp command? And dns_role is > still "master" when you never set it to "master"? > > Or do you see the comments but no cp command? I just put your snippet in > a template and it works as expected. >
The cp command is never included in the templatized shell script, no comments either, whether "dns_role" is set to "master" or "slave". That's why I called it a bug, since it makes no sense. I even have super experienced programmers that do Puppet day in and out at work, and they just scratched their heads. -- twitter: @procnetdev -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.