Added the current puppet stuff
This commit is contained in:
commit
6acac878c3
|
@ -0,0 +1,24 @@
|
|||
# /etc/sudoers
|
||||
#
|
||||
# This file MUST be edited with the 'visudo' command as root.
|
||||
#
|
||||
# See the man page for details on how to write a sudoers file.
|
||||
#
|
||||
|
||||
Defaults env_reset
|
||||
|
||||
# Host alias specification
|
||||
|
||||
# User alias specification
|
||||
|
||||
# Cmnd alias specification
|
||||
#drizzle ALL = NOPASSWD: /usr/bin/pbuilder
|
||||
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL) ALL
|
||||
|
||||
# Uncomment to allow members of group sudo to not need a password
|
||||
# (Note that later entries override this, so you might need to move
|
||||
# it further down)
|
||||
%wheel ALL=NOPASSWD: ALL
|
|
@ -0,0 +1,25 @@
|
|||
# /etc/sudoers
|
||||
#
|
||||
# This file MUST be edited with the 'visudo' command as root.
|
||||
#
|
||||
# See the man page for details on how to write a sudoers file.
|
||||
#
|
||||
|
||||
Defaults env_reset
|
||||
|
||||
# Host alias specification
|
||||
|
||||
# User alias specification
|
||||
|
||||
# Cmnd alias specification
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL) ALL
|
||||
|
||||
# Allow members of group sudo to execute any command after they have
|
||||
# provided their password
|
||||
# (Note that later entries override this, so you might need to move
|
||||
# it further down)
|
||||
%admin ALL=(ALL) NOPASSWD: ALL
|
||||
#
|
||||
#includedir /etc/sudoers.d
|
|
@ -0,0 +1,25 @@
|
|||
# /etc/sudoers
|
||||
#
|
||||
# This file MUST be edited with the 'visudo' command as root.
|
||||
#
|
||||
# See the man page for details on how to write a sudoers file.
|
||||
#
|
||||
|
||||
Defaults env_reset
|
||||
|
||||
# Host alias specification
|
||||
|
||||
# User alias specification
|
||||
|
||||
# Cmnd alias specification
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL) ALL
|
||||
|
||||
# Allow members of group sudo to execute any command after they have
|
||||
# provided their password
|
||||
# (Note that later entries override this, so you might need to move
|
||||
# it further down)
|
||||
%sudo ALL=(ALL) NOPASSWD: ALL
|
||||
#
|
||||
#includedir /etc/sudoers.d
|
|
@ -0,0 +1,28 @@
|
|||
class sudoers {
|
||||
group { 'wheel':
|
||||
ensure => 'present'
|
||||
}
|
||||
group { 'sudo':
|
||||
ensure => 'present'
|
||||
}
|
||||
group { 'admin':
|
||||
ensure => 'present'
|
||||
}
|
||||
|
||||
file { '/etc/sudoers':
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 440,
|
||||
ensure => 'present',
|
||||
source => [
|
||||
"puppet:///modules/sudoers/sudoers.$operatingsystem",
|
||||
"puppet:///modules/sudoers/sudoers"
|
||||
],
|
||||
replace => 'true',
|
||||
}
|
||||
|
||||
file { '/etc/alternatives/editor':
|
||||
ensure => link,
|
||||
target => "/usr/bin/vim.basic",
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue