From f54c4f0e27d1ff4c0805a8b6902f0b7e1b772b19 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 8 Sep 2019 00:39:59 +0200 Subject: [PATCH] store ssh auth key snippets for buildd wb and upload access, but do not collect just yet --- modules/buildd/manifests/ssh.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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', + } } -- 2.20.1