Allow password-less sudo
This commit is contained in:
parent
6ba6bb5df1
commit
bfa8138774
3 changed files with 9 additions and 0 deletions
|
@ -3,4 +3,5 @@ forge "http://forge.puppetlabs.com"
|
|||
mod 'camptocamp/augeas', '0.0.1'
|
||||
mod 'puppetlabs/apache', '0.10.0'
|
||||
mod 'saz/ssh', '1.2.0'
|
||||
mod 'saz/sudo', '2.4.3'
|
||||
|
||||
|
|
|
@ -10,9 +10,11 @@ FORGE
|
|||
puppetlabs/stdlib (4.1.0)
|
||||
saz/ssh (1.2.0)
|
||||
puppetlabs/stdlib (>= 2.2.1)
|
||||
saz/sudo (2.4.3)
|
||||
|
||||
DEPENDENCIES
|
||||
camptocamp/augeas (= 0.0.1)
|
||||
puppetlabs/apache (= 0.10.0)
|
||||
saz/ssh (= 1.2.0)
|
||||
saz/sudo (= 2.4.3)
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ package { 'zsh': }
|
|||
|
||||
# CLASSES
|
||||
include augeas
|
||||
include sudo
|
||||
|
||||
class { 'ssh::server':
|
||||
require => Class['augeas'],
|
||||
|
@ -39,6 +40,11 @@ ssh::server::configline { 'PermitRootLogin': value => 'no' }
|
|||
ssh::server::configline { 'PasswordAuthentication': value => 'no' }
|
||||
ssh::server::configline { 'AllowUsers/1': value => 'atomaka' }
|
||||
|
||||
sudo::conf { 'sudo':
|
||||
priority => 10,
|
||||
content => "%sudo ALL=(ALL) NOPASSWD: ALL\n",
|
||||
}
|
||||
|
||||
# FILES
|
||||
file { '/var/www/index.html':
|
||||
ensure => present,
|
||||
|
|
Loading…
Reference in a new issue