I've written a module and I've defined a variable called "master" in the location: /etc/puppet/network/manifests/vlan/vlan.pp. In vlan.pp I make a call to a template file: file { "ifcfg-${interface}": content => template('net/vlan.erb'), } However I can't access the variable "master" in the file location:
/etc/puppet/modules/net/templates/vlan.erb
When puppet runs on the client it doesn't get printed. My understanding would be this is a scope issue, but I'm stuck as to what the scope call should be, can someone please help me with this?
I've tried the following calls already in the erb file: <%= scope.lookupvar('network::vlan::master') %> <%= scope.lookupvar('network::vlan::vlan::master') %> <%= master %>
Thanks Dan