With *import* is being phased out, what's the equivalent? I did go through
this deprecation notice
<http://docs.puppetlabs.com/puppet/latest/reference/lang_import.html#deprecation-notice>
but didn't really get it.
Say, I've some side-wide global variables defines in *sites.pp*:
*#/etc/puppet/manifests/sites.pp*
$my_var1 = 'ThisIsMyVar-2'
$my_var2 = 'ThisIsMyVar-2'
$my_other_var1 = 'ThisIsMyOtherVar-1'
$my_other_var2 = 'ThisIsMyOtherVar-2'
And in my does *nodes.pp*, I want to use them:
*#/etc/puppet/manifests/nodes.pp*
node default {
notify { "This is my MY_VAR: ${my_var}": }
}
How do I do this? Doing above, yields variable not found. Any idea?
Best!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/7d4860a9-b210-49ca-860a-2b6b24f7d52d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.