Skip to content

Instantly share code, notes, and snippets.

@patrickkelso patrickkelso/crontab.pp
Last active Aug 29, 2015

Embed
What would you like to do?
Puppet profile
class profile::crontab {
$cronfiles = ['/etc/at.allow', '/etc/crontab']
$crondirs = ['/etc/cron.hourly']
$remove = ['/etc/cron.deny']
file { $cronfiles:
ensure => file,
owner => 'root',
group => 'root',
mode => 'og-rwx',
}
file { $crondirs:
ensure => directory,
owner => 'root',
group => 'root',
mode => 'og-rwx',
}
file { $remove:
ensure => absent,
}
}
class profile::sshserver {
class { 'ssh':
storeconfigs_enabled => false,
server_options => {
'PasswordAuthentication' => 'yes',
'X11Forwarding' => 'no',
'MaxAuthTries' => '4',
'ClientAliveInterval' => '300',
'Port' => [22,],
'ClientAliveCountMax' => '0',
'PermitRootLogin' => 'no',
'Protocol' => '2',
'IgnoreRhosts' => 'yes',
'Banner' => '/etc/issue.net',
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.