diff options
author | Leif Johansson <leifj@sunet.se> | 2015-05-22 21:01:48 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-05-22 21:01:48 +0200 |
commit | 635a62002768849b86b797544d4030001d8a1bbc (patch) | |
tree | 0a48677ab1e01c8e2f2d913252cb91c2c8460e65 /global/overlay/etc/puppet/manifests/catlfish/storage.pp | |
parent | 2b788f9f8d87ff36e347dc80db939d08db113493 (diff) |
storagect-ops-2015-05-22-v02
Diffstat (limited to 'global/overlay/etc/puppet/manifests/catlfish/storage.pp')
-rw-r--r-- | global/overlay/etc/puppet/manifests/catlfish/storage.pp | 20 |
1 files changed, 20 insertions, 0 deletions
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 + } +} |