From: Peter Palfrader Date: Sat, 7 Sep 2019 22:39:59 +0000 (+0200) Subject: store ssh auth key snippets for buildd wb and upload access, but do not collect just yet X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f54c4f0e27d1ff4c0805a8b6902f0b7e1b772b19;hp=079082a0c7925f9c019b7cbdd7dee728da3dea2e;p=mirror%2Fdsa-puppet.git store ssh auth key snippets for buildd wb and upload access, but do not collect just yet --- diff --git a/modules/buildd/manifests/ssh.pp b/modules/buildd/manifests/ssh.pp index e4c08522b..55173e361 100644 --- a/modules/buildd/manifests/ssh.pp +++ b/modules/buildd/manifests/ssh.pp @@ -1,4 +1,18 @@ # SSH configuration class buildd::ssh { ssh::keygen {'buildd': } + + ssh::authorized_key_add { 'buildd::buildd_master': + target_user => 'wb-buildd', + command => "/srv/wanna-build/bin/wanna-build --ssh-wrapper ${::hostname}", + key => $facts['buildd_key'], + collect_tag => 'buildd_master', + } + + ssh::authorized_key_add { 'buildd::buildd_upload': + target_user => 'buildd-uploader', + command => "/home/buildd-uploader/rsync-ssh-wrap ${::hostname}", + key => $facts['buildd_key'], + collect_tag => 'buildd_upload', + } }