If you are using hiera, you can set the default value to UNSET for those
variables, it should do it.

*rabbitmq_port = hiera('**rabbitmq_port','UNSET')*
*
*
If you are using host facts, you can modify if condition like this:

*<% if **@rabbitmq_port != '' and **@rabbitmq_port != 'UNSET' -%>*
*
*
-Virender


On Sat, Jul 13, 2013 at 8:01 AM, <badge...@hotmail.com> wrote:

> Could you show the puppet code that sets '$rabbitmq_port' and
> '$rabbitmq_address' ?
>
> I'd recommend dropping a line like this in your template:
>
> *NODE_PORT=<%= @rabbitmq_port.inspect %>*
>
> (If you see 'nil', the variable either hasn't been set or has been set to
> 'undef').
>
> Eric
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to