From: Peter Palfrader Date: Sat, 7 Sep 2019 15:06:09 +0000 (+0200) Subject: Add roles for the dsa gitolite host and the dsa wiki buildhost X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6d7e837d2ab6296355af10bd28af9269ddf1bf8f;p=mirror%2Fdsa-puppet.git Add roles for the dsa gitolite host and the dsa wiki buildhost The gitolite host ssh triggers the buildhost. --- diff --git a/modules/roles/manifests/dsa_gitolite.pp b/modules/roles/manifests/dsa_gitolite.pp new file mode 100644 index 000000000..32c5d1563 --- /dev/null +++ b/modules/roles/manifests/dsa_gitolite.pp @@ -0,0 +1,15 @@ +# dsa's gitolite host +class roles::dsa_gitolite { + # we push the dsa-wiki build host + # + $key = $facts['git_key'] + + if ($key) { + ssh::authorized_key_add { 'dsa_gitolite::dsa_wiki_buildhost': + target_user => 'dsa', + command => '/srv/dsa.debian.org/bin/update', + key => $facts['git_key'], + collect_tag => 'dsa_wiki_buildhost', + } + } +} diff --git a/modules/roles/manifests/dsa_wiki_buildhost.pp b/modules/roles/manifests/dsa_wiki_buildhost.pp new file mode 100644 index 000000000..d74165954 --- /dev/null +++ b/modules/roles/manifests/dsa_wiki_buildhost.pp @@ -0,0 +1,7 @@ +# buildhost for dsa-wiki +class roles::dsa_wiki_buildhost { + ssh::authorized_key_collect { 'dsa_wiki_buildhost': + target_user => 'dsa', + collect_tag => 'dsa_wiki_buildhost', + } +}