Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/adblockplus/manifests/sudo.pp

Issue 29469584: #1634 - Update file resource syntax in module adblockplus (Closed)
Patch Set: Created June 21, 2017, 10:15 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/adblockplus/manifests/puppet.pp ('k') | modules/adblockplus/manifests/user.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « modules/adblockplus/manifests/puppet.pp ('k') | modules/adblockplus/manifests/user.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld