Hi,
You setting sudoenv to default in the default node. That is not overridden by
subsequent node declarations.
If you are using 2.6 and above I would pass a parameter to the sudoers class.
> class sudoers::config (env = 'default') {
> file { "/etc/sudoers":
>ensure => file,
>owner =>
Hi
I'm having some trouble with the following setup:
node 'serverA' inherits server-defaults {
include myApp::install
}
node 'server-defaults' inherits default {
$sudoenv = 'custom_server'
}
node default {
$sudoenv = 'default'
include sudoers::config
}
class sudoers::config {
file {