Hi,
We''ve been using puppet for a couple of months now (started with a
new deployment for a customer, and it''s slowly taking over their
whole environment). We''re gradually getting our heads around it, but
there are some things that we''re hoping other people have encountered
and solved before us.
First one is to do with scoping...
We have defined some generic nodes (which define some site wide
variables and set up a system to our base requirements) that are
inherited by more role specific nodes (which include class
definitions that add functionality to the base node), which are
eventually inherited by host nodes (that define specific host details
like IP addresses and host names).
We have a situation where we want to define a variable in some of the
specific host nodes, which is substituted into a template that''s used
in a class which is imported in one of the role specific nodes in the
inheritance path for that host, but we seem to be having a scoping
problem, where the variable we''re defining isn''t visible to
the
template.
The error message we''re seeing is:
Could not retrieve configuration: Failed to parse template asterisk/
etc/asterisk/sip.conf: Could not find value for ''proxy_ipaddr''
at /
etc/puppet/modules/asterisk/manifests/init.pp:15
We could probably solve this by importing the class in the host
specific node, but then we have to import it on each host, rather
than just once at the role level. We have no problems using the site
wide variables that are defined on the base nodes in the role nodes.
I can post example configs if the question doesn''t make sense.
Thanks,
Bernard.
--
Bernard Gardner
Spry Business Technology Solutions Pty. Ltd.
http://www.sprybts.com/
PO Box 860, Strawberry Hills, NSW 2012, AUSTRALIA
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users