James Turnbull wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
> Matt McLeod wrote:
> > OK.  So the docco is completely wrong:  everything referenced in the
> > template needs to be set as a variable prior to defining the zone.
> > I'd assumed from context that the template was going to have the
> > previously-declared object properties passed to it.
> >
> Sorry - how is the documentation wrong?  You can't define a variable
> in a template without declaring the variable.  If you don't reference
> said variable in a template then where is the value going to come from?
> 
> Can you point me to the documentation that confused you?

As per my original message:

  http://reductivelabs.com/trac/puppet/wiki/TypeReference#zone

The example provided doesn't work because it doesn't define any of the
variables used in the template.  As this was my first exposure to the
template system (we haven't had any need for it thusfar, most of our
configs are site-wide) it wasn't obvious that the template wasn't
going to pick that stuff up from the zone type definition it was
being called from where "realhostname" *is* being defined, just not
as a variable.

-- 
* Matt McLeod | mail: m...@boggle.org | blog: http://abortrephrase.com/ *
     --- People can do the work, so machines have time to think ---

--~--~---------~--~----~------------~-------~--~----~
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