| OLD | NEW |
| 1 # == Class: adblockplus::sudo | 1 # == Class: adblockplus::sudo |
| 2 # | 2 # |
| 3 # Mixin class to ensure super-user privileges can only be acquired through | 3 # Mixin class to ensure super-user privileges can only be acquired through |
| 4 # the sudo(8) system daemon. | 4 # the sudo(8) system daemon. |
| 5 # | 5 # |
| 6 # === Parameters: | 6 # === Parameters: |
| 7 # | 7 # |
| 8 # [*ensure*] | 8 # [*ensure*] |
| 9 # Whether associated resources are meant to be 'present' or 'absent'. | 9 # Whether associated resources are meant to be 'present' or 'absent'. |
| 10 # | 10 # |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 # The root account must not be accessible directly via SSH | 30 # The root account must not be accessible directly via SSH |
| 31 file {'/root/.ssh/authorized_keys': | 31 file {'/root/.ssh/authorized_keys': |
| 32 ensure => 'absent', | 32 ensure => 'absent', |
| 33 } | 33 } |
| 34 | 34 |
| 35 # Prerequisite for the accompanying kick.py and run.py scripts | 35 # Prerequisite for the accompanying kick.py and run.py scripts |
| 36 file {'/etc/sudoers.d/puppet': | 36 file {'/etc/sudoers.d/puppet': |
| 37 ensure => $ensure, | 37 ensure => $ensure, |
| 38 group => 'root', | 38 group => 'root', |
| 39 mode => 0440, | 39 mode => '0440', |
| 40 owner => 'root', | 40 owner => 'root', |
| 41 require => Package['sudo'], | 41 require => Package['sudo'], |
| 42 source => 'puppet:///modules/adblockplus/sudoers/puppet' | 42 source => 'puppet:///modules/adblockplus/sudoers/puppet' |
| 43 } | 43 } |
| 44 } | 44 } |
| OLD | NEW |