Right, didn't properly read your original post. You're declaring this in 
node.pp.

Where are you declaring the template call? Can you paste how you are doing this 
so we can see?

http://docs.puppetlabs.com/learning/templates.html#some-simple-erb

In that link puppetlabs talk about the scopes of variables when using 
templates. You might need to use scope.lookupvar in your case.

Den

On 02/03/2012, at 15:18, "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.

Reply via email to