Displaying 1 result from an estimated 1 matches for "include_pkg".
Did you mean:
includepkg
2012 Jul 05
7
proper usage of global variables / node variables / +=
...g the variable $::epel_includepkgs,
but that generates the error:
err: Could not parse for environment production: Cannot assign to
variables in other #namespaces
So what is the ''proper'' puppet way to accomplish this?
I tried a parameterized class like this:
class repo_epel ($include_pkgs) {
notify { "include_pkgs = $include_pkgs":}
}
class denyhosts {
$repo_epel::include_pkgs += "denyhosts "
}
but from what I understand that only changes the include_pkgs variable
inside the denyhosts scope (or maybe I''m confused).
Any help would be appreciate...