Handle sudo with Puppet
Remove password input on sudo
This commit is contained in:
parent
abae19f92e
commit
f3e880263c
3 changed files with 58 additions and 0 deletions
|
@ -110,6 +110,8 @@ class rhizo_base {
|
|||
include rhizo_base::runit
|
||||
include rhizo_base::openbsc
|
||||
include rhizo_base::lcr
|
||||
include rhizo_base::sudo
|
||||
|
||||
|
||||
#Rizhomatica scripts
|
||||
file { '/home/rhizomatica/bin':
|
||||
|
|
27
modules/rhizo_base/manifests/sudo.pp
Normal file
27
modules/rhizo_base/manifests/sudo.pp
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Class: rhizo_base::sudo
|
||||
#
|
||||
# This module manages the sudo package
|
||||
#
|
||||
# Parameters: none
|
||||
#
|
||||
# Actions:
|
||||
#
|
||||
# Requires: see Modulefile
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
class rhizo_base::sudo {
|
||||
|
||||
package { 'sudo':
|
||||
ensure => installed,
|
||||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
|
||||
file { '/etc/sudoers':
|
||||
ensure => present,
|
||||
source => 'puppet:///modules/rhizo_base/etc/sudoers',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0440',
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue