summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/couchdb_stunnel
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-03-14 18:36:40 -0400
committerMicah Anderson <micah@riseup.net>2013-03-14 18:40:20 -0400
commit90c5b205c4764351e6ea707b965c5e6daca1c0b7 (patch)
treeb34b1fe6a0c200a8bff08b55190f8ac5bae8f7f9 /puppet/modules/site_webapp/manifests/couchdb_stunnel
parent42a040ac79e1c92d12b6bb9661bbf05ace44d622 (diff)
add couchdb stunnel clients
Diffstat (limited to 'puppet/modules/site_webapp/manifests/couchdb_stunnel')
-rw-r--r--puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp b/puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp
new file mode 100644
index 00000000..eac43b08
--- /dev/null
+++ b/puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp
@@ -0,0 +1,17 @@
+define site_webapp::couchdb_stunnel::clients
+ ( $accept_port, $connect, $client, $cafile, $key, $cert,
+ $verify, $pid = $name, $rndfile, $debuglevel ) {
+
+ stunnel::service { $name:
+ accept => "127.0.0.1:${accept_port}",
+ connect => "${connect}:6984",
+ client => $client,
+ cafile => $cafile,
+ key => $key,
+ cert => $cert,
+ verify => $verify,
+ pid => "/var/run/stunnel4/${pid}.pid",
+ rndfile => $rndfile,
+ debuglevel => $debuglevel
+ }
+ }