Re: [Puppet Users] accessing out of class/scope variables in template

2019-08-16 Thread Henrik Lindberg
On 2019-08-16 16:31, Matt Zagrabelny wrote: Hello, I'm running puppet 5.5 OSE. I've got a class foo: class foo {     $bar = 'hi' } class foo::configure {     file { '/tmp/foo.conf':         content => template('foo/foo.conf.erb'),     } } and then in the template: <%= scope['foo::bar']

[Puppet Users] accessing out of class/scope variables in template

2019-08-16 Thread Matt Zagrabelny
Hello, I'm running puppet 5.5 OSE. I've got a class foo: class foo { $bar = 'hi' } class foo::configure { file { '/tmp/foo.conf': content => template('foo/foo.conf.erb'), } } and then in the template: <%= scope['foo::bar'] %> but suppose I want to access an out of class v