Add stunnel for search
authorPeter Palfrader <peter@palfrader.org>
Tue, 23 Dec 2014 09:13:24 +0000 (10:13 +0100)
committerPeter Palfrader <peter@palfrader.org>
Tue, 23 Dec 2014 09:13:24 +0000 (10:13 +0100)
hieradata/common.yaml
modules/roles/manifests/init.pp
modules/roles/manifests/search_backend.pp [new file with mode: 0644]
modules/roles/manifests/search_frontend.pp [new file with mode: 0644]

index c67c8b6..533305a 100644 (file)
@@ -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:
index 09ccdc3..d79c0e8 100644 (file)
@@ -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 (file)
index 0000000..3b14a67
--- /dev/null
@@ -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 (file)
index 0000000..69398ee
--- /dev/null
@@ -0,0 +1,7 @@
+class roles::search_frontend {
+       stunnel4::client { 'searchsync':
+               accept      => '127.0.0.1:7010',
+               connecthost => 'wolkenstein.debian.org',
+               connectport => 17010,
+       }
+}