aboutsummaryrefslogtreecommitdiff
path: root/manifests/sshserver.pp
blob: a525b5511e11c9d907841dc1bc5f3c63b600afc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# include to export your ssh key
class monkeysphere::sshserver {
  include monkeysphere
  if $::monkeysphere_has_hostkey {
    @@file { "/var/lib/puppet/modules/monkeysphere/hosts/${::fqdn}":
      ensure  => present,
      content => template('monkeysphere/host.erb'),
      require => Package['monkeysphere'],
      tag     => 'monkeysphere-host',
    }
  }

  cron {'update-monkeysphere-auth':
    command => '/usr/sbin/monkeysphere-authentication update-users > /dev/null 2>&1',
    user    => root,
    minute  => fqdn_rand(60),
    require => Package['monkeysphere'],
  }
}