include roles::snapshot_web
}
+ if has_role('snapshot_shell') {
+ include roles::snapshot_shell
+ }
+
if has_role('veyepar.debian.org') {
ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, }
}
--- /dev/null
+class roles::snapshot_shell {
+ # give ftpmaster/the dak user some environment so they can poll the
+ # list of files we have
+ file { '/etc/ssh/userkeys/dak':
+ ensure => present,
+ owner => dak,
+ mode => '0644',
+ }
+ file { '/etc/ssh/userkeys/dak':
+ ensure => present,
+ owner => 'dak',
+ mode => '0644',
+ }
+ file { '/home/dak':
+ ensure => link,
+ target => '/srv/ftp-master.debian.org',
+ }
+ file { '/srv/ftp-master.debian.org':
+ ensure => directory,
+ owner => 'root',
+ group => 'debadmin',
+ mode => '02775',
+ }
+}