Hi, Then I'm guessing the only other solution, which also works with 0.25 and any higher version would be :
$local_scope_fqdn = $::fqdn Then : <%= local_scope_fqdn %> In order to use a local scope variable from within templates. It's really too bad to not be able to use scoped variables from erb templates directly, as it won't ever be as convenient as before for facts and global scope variables. Matthias Alessandro Franceschi <a...@lab42.it> wrote: > scope.lookupvar() works also on Puppet 2.6 and 0.25 and maybe earlier > versions, and AFAIK will keep on working in future versions. > Incidentally it has the benefit of not throwing an exception when the > referred variables is not set (it just returns an empty field) > I find it useful to refer to fully qualified variables (ie > apache::params::port) that are not usable in the traitional form (<%= > apache::params::port %> > > Al > -- 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.