|
@@ -43,11 +43,20 @@ class public::common {
|
|
'man-db','vim','zsh','bash','iputils-ping','dnsutils',
|
|
'man-db','vim','zsh','bash','iputils-ping','dnsutils',
|
|
'python-apt','aptitude','debian-goodies','molly-guard'])
|
|
'python-apt','aptitude','debian-goodies','molly-guard'])
|
|
|
|
|
|
- # TODO, sudo / sudo-ldap
|
|
|
|
- # TODO, sudo %puppetdev
|
|
|
|
- # TODO, ssh_auth_sock
|
|
|
|
# TODO, backup user
|
|
# TODO, backup user
|
|
|
|
|
|
|
|
+ include '::sudo'
|
|
|
|
+
|
|
|
|
+ sudo::conf { 'ssh_auth_sock':
|
|
|
|
+ priority => 90,
|
|
|
|
+ content => 'Defaults env_reset, env_keep += "SSH_AUTH_SOCK"',
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ sudo::conf { 'puppetdev':
|
|
|
|
+ priority => 10,
|
|
|
|
+ content => '%puppetdev ALL=(ALL) NOPASSWD: /usr/bin/puppet',
|
|
|
|
+ }
|
|
|
|
+
|
|
file {
|
|
file {
|
|
'/usr/local/bin/cronic':
|
|
'/usr/local/bin/cronic':
|
|
ensure => file,
|
|
ensure => file,
|
|
@@ -67,6 +76,36 @@ class public::common {
|
|
target => '/bin/dash';
|
|
target => '/bin/dash';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ package { 'openssh-server': ensure => present; }
|
|
|
|
+ service { 'ssh':
|
|
|
|
+ ensure => running,
|
|
|
|
+ hasstatus => true,
|
|
|
|
+ hasrestart => true,
|
|
|
|
+ enable => true,
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # Setup ssh
|
|
|
|
+ public::common::sshconfigline {
|
|
|
|
+ 'Port':
|
|
|
|
+ value => '2222';
|
|
|
|
+ 'PermitRootLogin':
|
|
|
|
+ value => 'no';
|
|
|
|
+ 'LoginGraceTime':
|
|
|
|
+ value => '60';
|
|
|
|
+ 'UsePrivilegeSeparation':
|
|
|
|
+ value => 'yes';
|
|
|
|
+ 'PermitEmptyPasswords':
|
|
|
|
+ value => 'no';
|
|
|
|
+ 'PasswordAuthentication':
|
|
|
|
+ value => 'no';
|
|
|
|
+ 'StrictModes':
|
|
|
|
+ value => 'yes';
|
|
|
|
+ 'UseDNS':
|
|
|
|
+ value => 'no';
|
|
|
|
+ 'MaxStartups':
|
|
|
|
+ value => '10:30:60';
|
|
|
|
+ }
|
|
|
|
+
|
|
file {
|
|
file {
|
|
'/etc/hostname':
|
|
'/etc/hostname':
|
|
ensure => file,
|
|
ensure => file,
|