It turns out that you do always need the {}, and this just works because
the / in the path breaks the variable-finding regex.
Thanks to rodjek on irc! :-D
On Saturday, September 22, 2012 3:15:07 PM UTC-4, Zachary Alex Stern wrote:
Possibly stupid question - how do I know when I have to use
Sorry typo:
class puppet (
$server = $puppet::params::server
) inherits puppet::params {
FWIW, this works:
class puppet::config {
include puppet::params
$puppetserver=$puppet::params::puppetserver
$runinterval=$puppet::params::runinterval
file { '/etc/puppet/puppet.conf':
So, your explanation makes sense to me - but that doesn't exactly explain
to me why the include statement isn't enough.
E.g. when I'm including the puppet::params class in the puppet::config
class, what affect is it having at all, if not setting things like the
variables included in the
Sorry, that should be
$puppetserver = $puppet::params::puppetserver
-Eric
Seems like at that point I may as well just do this inside the template:
%= scope.lookupvar('puppet::params::puppetserver') %
--
You received this message because you are subscribed to the Google Groups
Also, fwiw, I've read that document on scoping beginning to end several
times. Doesn't mean much to me I'm afraid - pretty new to all this.
On Saturday, August 11, 2012 10:36:48 PM UTC-4, Eric Shamow wrote:
The best reference to explain how variable scoping works in Puppet is this
one -