From 635a62002768849b86b797544d4030001d8a1bbc Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 22 May 2015 21:01:48 +0200 Subject: storage --- .../overlay/etc/puppet/manifests/catlfish/storage.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 global/overlay/etc/puppet/manifests/catlfish/storage.pp (limited to 'global/overlay/etc/puppet/manifests/catlfish/storage.pp') diff --git a/global/overlay/etc/puppet/manifests/catlfish/storage.pp b/global/overlay/etc/puppet/manifests/catlfish/storage.pp new file mode 100644 index 0000000..a98e107 --- /dev/null +++ b/global/overlay/etc/puppet/manifests/catlfish/storage.pp @@ -0,0 +1,20 @@ +define catlfish::storage( + $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}_storage': + image => $image, + imagetag => $version, + volumes => ["/data/${name}/catlfish:/usr/local/etc/catlfish:ro","${base}/${name}:/var/local/db/catlfish"], + ports => ["8081:8081"], + command => ["storage"] + } + ufw:allow { "${name}-allow-8081-acl0": + ip => '130.242.125.0/24', + port => 8081 + } +} -- cgit v1.1