In this case, you should check for the variable's value, as well: <% if has_variable?("mysqlsrv") and mysqlsrv == 'mysqlsrv' %>
But it sounds like you might be having a variable scoping issue. Where in your nodes.pp file do you have $mysqlsrv defined? -- Peter (from phone) On Mar 1, 2012, at 11:18 PM, "Will S. G." <w...@arw.in> wrote: > Thanks Den, > > What if I were to define a string instead of boolean? > > $mysqlsrv = 'mysqlsrv' > > That means <% if has_variable?( "mysqlsrv" ) then %> should work, no? > > Even with your recommended solution, I end up with Could not find value for > 'mysqlsrv,' which is what I ran into while troubleshooting/experimenting with > the variable, etc. > > Any other suggestions? > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/lIgz5GOgewYJ. > To post to this group, send email to puppet-users@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. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.