From: Peter Palfrader Date: Tue, 23 Dec 2014 09:13:24 +0000 (+0100) Subject: Add stunnel for search X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=18efaa54b365619f03dcd86eea3e475d94cb91ee;p=mirror%2Fdsa-puppet.git Add stunnel for search --- diff --git a/hieradata/common.yaml b/hieradata/common.yaml index c67c8b6a0..533305a09 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -83,6 +83,10 @@ roles: - soler.debian.org rtc: - vogler.debian.org + search_backend: + - wolkenstein.debian.org + search_frontend: + - search-grnet-01.debian.org sso: - diabelli.debian.org static_master: diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 09ccdc3f8..d79c0e81b 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -229,4 +229,11 @@ class roles { tlsaport => 0, } } + + if has_role('search_backend') { + include search_backend + } + if has_role('search_frontend') { + include search_frontend + } } diff --git a/modules/roles/manifests/search_backend.pp b/modules/roles/manifests/search_backend.pp new file mode 100644 index 000000000..3b14a675b --- /dev/null +++ b/modules/roles/manifests/search_backend.pp @@ -0,0 +1,6 @@ +class roles::search_backend { + stunnel4::server { 'searchsync': + accept => '17010', + connect => 7010, + } +} diff --git a/modules/roles/manifests/search_frontend.pp b/modules/roles/manifests/search_frontend.pp new file mode 100644 index 000000000..69398ee07 --- /dev/null +++ b/modules/roles/manifests/search_frontend.pp @@ -0,0 +1,7 @@ +class roles::search_frontend { + stunnel4::client { 'searchsync': + accept => '127.0.0.1:7010', + connecthost => 'wolkenstein.debian.org', + connectport => 17010, + } +}