summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-16 15:01:48 +0100
committervarac <varacanero@zeromail.org>2013-03-16 15:01:48 +0100
commit8c91365ca62d6f7e970f7a1fbda7be82a1fc83c3 (patch)
tree5ca58ed2e9d52f7bd4071b6902cba064a75d81f6 /puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp
parenta275999ab39b49afa2bb0c998c58aec424b4a8c0 (diff)
parent90c5b205c4764351e6ea707b965c5e6daca1c0b7 (diff)
Merge branch 'stunnel_switch' into develop
Diffstat (limited to 'puppet/modules/site_webapp/manifests/couchdb_stunnel/clients.pp')
-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
+ }
+ }