From 18efaa54b365619f03dcd86eea3e475d94cb91ee Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 23 Dec 2014 10:13:24 +0100 Subject: [PATCH] Add stunnel for search --- hieradata/common.yaml | 4 ++++ modules/roles/manifests/init.pp | 7 +++++++ modules/roles/manifests/search_backend.pp | 6 ++++++ modules/roles/manifests/search_frontend.pp | 7 +++++++ 4 files changed, 24 insertions(+) create mode 100644 modules/roles/manifests/search_backend.pp create mode 100644 modules/roles/manifests/search_frontend.pp diff --git a/hieradata/common.yaml b/hieradata/common.yaml index c67c8b6a..533305a0 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 09ccdc3f..d79c0e81 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 00000000..3b14a675 --- /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 00000000..69398ee0 --- /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, + } +} -- 2.39.2