store ssh auth key snippets for buildd wb and upload access, but do not collect just yet
[mirror/dsa-puppet.git] / modules / buildd / manifests / ssh.pp
1 # SSH configuration
2 class buildd::ssh {
3   ssh::keygen {'buildd': }
4
5   ssh::authorized_key_add { 'buildd::buildd_master':
6     target_user => 'wb-buildd',
7     command     => "/srv/wanna-build/bin/wanna-build --ssh-wrapper ${::hostname}",
8     key         => $facts['buildd_key'],
9     collect_tag => 'buildd_master',
10   }
11
12   ssh::authorized_key_add { 'buildd::buildd_upload':
13     target_user => 'buildd-uploader',
14     command     => "/home/buildd-uploader/rsync-ssh-wrap ${::hostname}",
15     key         => $facts['buildd_key'],
16     collect_tag => 'buildd_upload',
17   }
18 }