Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created November 20, 2012 19:22
Show Gist options
  • Save big-samantha/4120392 to your computer and use it in GitHub Desktop.
Save big-samantha/4120392 to your computer and use it in GitHub Desktop.
class sudoers {
include sudoers::neckbeards
}
class sudoers::neckbeards {
$sudofile = $hostname ? {
/^d-/ => 'puppet:///modules/sudoers/dev_sudo',
default => 'puppet:///modules/sudoers/neckbeards_sudo'
}
file { '/etc/sudoers.d/neckbeards_sudo':
owner => root,
group => root,
mode => '0440',
source => 'puppet:///modules/sudoers/neckbeards_sudo',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment