I have a custom fact called:  gu_app_oracle_rac

Which gets set, indirectly, by puppet itself... and so in the very
first run it does not exist... I will be changing the whole business
of how I set these facts, but I need a quick workaround to the
following issue...

I have some templates using that variable and so the first run fails
because the var is undefined, and so I added this to site.pp:


if !defined(gu_app_oracle_rac) {
    $gu_app_oracle_rac = false
}


Now, this allows the first run, maybe a few, to work... then when the
fact comes to life, I get:

Cannot reassign variable gu_app_oracle_rac in site.pp

Why doesn't the *if* statement do what I expect it to do?

Thanks a lot,
Mohamed.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to