summaryrefslogtreecommitdiff
path: root/puppet/modules/site_stunnel/manifests/clients.pp
blob: 44b31aaa239e9ac53712647ee20595aee3e3fa00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# usage:
#   create_resource(site_stunnel::clients, hiera('stunnel')['clients'])
#
# example hiera yaml:
#
#   stunnel:
#     clients:
#       ednp_clients:
#         thrips_9002:
#           accept_port: 4001
#           connect: thrips.demo.bitmask.i
#           connect_port: 19002
#       epmd_clients:
#         thrips_4369:
#           accept_port: 4000
#           connect: thrips.demo.bitmask.i
#           connect_port: 14369
#
# In the above example, this resource definition is called twice, with $name
# 'ednp_clients' and 'epmd_clients'
#

define site_stunnel::clients {
  create_resources(site_stunnel::client, $site_stunnel::clients[$name])
}