-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > modules/rep/templates/test_template.xml.erb > <?xml version="1.0"?> > <configuration> > <test_template cname='<%= ldap_cname %> />
The template is in a different scope than ldap::variables_common, so ldap_cname is not directly present like that and you need to use: <test_template cname='<%= scope.lookupvar('ldap::variables_common::ldap_cname') %> But for reusable modules etc. I would recommend you to look into hiera [1] and to combine it with parametrized classes as shown in [2], it makes it quite easy and really extensible. ~pete [1] http://www.devco.net/archives/2011/06/05/hiera_a_pluggable_hierarchical_data_store.php [2] http://www.devco.net/archives/2011/06/06/puppet_backend_for_hiera.php -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5CJC8ACgkQbwltcAfKi3+3lQCdEc5g80XeAE60nBuXlafiy7xE HTcAoLKfAon6XT/e7frTKboQC178hQsq =6jw/ -----END PGP SIGNATURE----- -- 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.