From 6d8abf623dfe3f0a20ffddf4d977ec82a462c332 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 22 May 2015 22:10:07 +0200 Subject: basic classes to stick on vm's --- global/overlay/etc/puppet/manifests/catlfish/signing.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 global/overlay/etc/puppet/manifests/catlfish/signing.pp (limited to 'global/overlay/etc/puppet/manifests/catlfish') diff --git a/global/overlay/etc/puppet/manifests/catlfish/signing.pp b/global/overlay/etc/puppet/manifests/catlfish/signing.pp new file mode 100644 index 0000000..2c255df --- /dev/null +++ b/global/overlay/etc/puppet/manifests/catlfish/signing.pp @@ -0,0 +1,17 @@ +define catlfish::signing( + $image = 'docker.sunet.se/ctct/catlfish-dev-lunahsm', + $version = 'latest' +) +{ + sunet::docker_run {'${name}_signing': + image => $image, + imagetag => $version, + volumes => ["/data/${name}/catlfish:/usr/local/etc/catlfish:ro"], + ports => ["8188:8188"], + command => ["signing"] + } + ufw:allow { "${name}-allow-8188-acl0": + ip => '130.242.125.0/24', + port => 8081 + } +} -- cgit v1.1