X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbuildd%2Fmanifests%2Fssh.pp;h=55173e36199baf25297ebca9eef186f487c938f4;hb=772f5b526c1f1e57ccb3354c2aeecebe378d3ae5;hp=e4c08522b287d8afe5a09f16be14d39126f646da;hpb=027b3896cbbea053e99aa61b8f212bbb65c5dc86;p=mirror%2Fdsa-puppet.git 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', + } }