scope.lookupvar(share_module::varname)
in the ERB.
scope.lookupvar(share_module::varname)" in the erb file
hiera
but got a blank line (empty value)
i will have a look on
also ,
thank you
--To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/xbGfZaxVlPoJ.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
thank you for the answer .
i tried to use the "scope.lookupvar(share_module::varname)" in the erb file
I have used the <% and <%= but didn't use the share_module
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/J7wTxTL3j58J.
Sorry .
My mistake . I have used the share_module:varname
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
<%= scope.lookupvar('sharedvar::vartest') %>
i get a blank line without my test1 parameter
what am i doing wrong here .
i can workaround this by declaring the vars in the same module that i want to use them but i want it to be cross module vars .