From 6d7e837d2ab6296355af10bd28af9269ddf1bf8f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 7 Sep 2019 17:06:09 +0200 Subject: [PATCH] Add roles for the dsa gitolite host and the dsa wiki buildhost The gitolite host ssh triggers the buildhost. --- modules/roles/manifests/dsa_gitolite.pp | 15 +++++++++++++++ modules/roles/manifests/dsa_wiki_buildhost.pp | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/roles/manifests/dsa_gitolite.pp create mode 100644 modules/roles/manifests/dsa_wiki_buildhost.pp 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', + } +} -- 2.20.1