From 2b788f9f8d87ff36e347dc80db939d08db113493 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 22 May 2015 16:50:12 +0200 Subject: catlfish models --- global/overlay/etc/puppet/manifests/catlfish/frontend.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 global/overlay/etc/puppet/manifests/catlfish/frontend.pp (limited to 'global/overlay/etc/puppet/manifests/catlfish/frontend.pp') diff --git a/global/overlay/etc/puppet/manifests/catlfish/frontend.pp b/global/overlay/etc/puppet/manifests/catlfish/frontend.pp new file mode 100644 index 0000000..9307e1d --- /dev/null +++ b/global/overlay/etc/puppet/manifests/catlfish/frontend.pp @@ -0,0 +1,16 @@ +define catlfish::frontend( + $image = 'docker.sunet.se/ctct/catlfish-dev', + $version = 'latest' +) +{ + $base = '/var/local/db/urd.appendto.org' + file {$base: ensure => directory } -> + file {"${base}/${name}": ensure => directory } -> + sunet::docker_run {'${name}_frontend': + image => $image, + imagetag => $version + ports => ["8080:8080","8082:8082"], + volumes => ["/data/${name}/catlfish:/usr/local/etc/catlfish:ro","${base}/${name}:/var/local/db/catlfish"], + command => ["frontend"] + } +} -- cgit v1.1