Displaying 6 results from an estimated 6 matches for "scope_and_puppet".
2012 Feb 19
1
fully qualified variables and nodes.pp
...ookup of $var at is deprecated. Support will
be removed in Puppet 2.8. Use a fully-qualified variable name (e.g.,
$classname::variable) or parameterized classes." warning
i''m trying to apply fully-qualified variable name solution following this
Doc http://docs.puppetlabs.com/guides/scope_and_puppet.html, but i have a
problem with variable defined in nodes.pp as these variables are neither in
top scope to use $::var nor in class to use $classname::variable
So, any recommended suggestions regarding such these problems ?
Thanks in advance
--
Best Regards,
Eslam Mamdouh El Husseiny
*Systems Adm...
2012 Dec 06
3
Proper way to call variables from a parent class to a child class
I currently have a child class of a parent one. The parent defines
some variable that I need to use in the child class. I am also using
gepetto. Gepetto is complaining about the syntax of the child variable.
It is saying that "$parentVar" should be "$::parentVar" however, when
changing to what Gepetto wants to use this breaks my classes. Does anyone
know the proper
2011 Nov 16
11
What is the offical variable scope best practice?
I read the guide at
http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others''
mail, i am a little confused now, below is my understanding:
1. top scope only refers to site.pp, not include node definitions and facts.
2. in puppet class, using variables not local, must specify the namespace,
like $class::variable,
if it''s a top scope vari...
2012 Jun 18
8
Conditional with variable from facter
Hi.
I have the following facts available:
# facter | grep oper
operatingsystem => CentOS
operatingsystemrelease => 6.2
Now, if I wish to use conditionals on these facts, I have to do it like
this:
case $operatingsystem {}
case $::operatingsystemrelease {}
I''m puzzled as to why can''t I just use $operatingsystemrelease, and what
do these two semicolons mean?
Thank
2012 Jul 05
7
proper usage of global variables / node variables / +=
Hello puppet masters, I am cleaning up some puppet modules, using
puppet-lint. The warning I am getting is:
top-scope variable being used without an explicit namespace
I can turn this particular check off, but in doing my research I''m
finding all sorts of messages saying to avoid using +=, to avoid using
variables in the node scope, and to switch to a parameterized class
whenever
2012 Aug 30
2
Announce: Puppet-3.0.0-rc5 Available
...ppet
extension code (faces, types, providers) via rubygems. (#7788)
* Server Auto-Discovery - Puppet agents can use SRV records in DNS to
find CA, master, report, and file servers (#3669)
# DSL/Config Changes
* Variable Scoping - Dynamic scoping has been removed.
http://docs.puppetlabs.com/guides/scope_and_puppet.html
* Auth.conf differentiates between names and IPs - There''s a new
`allow_ip` keyword in auth.conf if you want to permit IP addresses.
(PR991)
* `unless` is available as a synonym for `if !` (#7762)
* Pluginsync now defaults to true - Yep, it''s true. (#5521)
* Updated `config.r...