diff options
author | Leif Johansson <leifj@sunet.se> | 2015-05-22 16:50:12 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-05-22 16:50:12 +0200 |
commit | 2b788f9f8d87ff36e347dc80db939d08db113493 (patch) | |
tree | ca501064a2404dcab50e2d3b01e5dc239b69ef19 | |
parent | 6adfc84aea023ec512c827e62c7ee67bfeefef29 (diff) |
catlfish modelsct-ops-2015-05-22-v01
-rw-r--r-- | global/overlay/etc/puppet/manifests/catlfish/frontend.pp | 16 | ||||
-rw-r--r-- | global/overlay/etc/puppet/manifests/catlfish/merge.pp | 16 | ||||
l--------- | manifests | 1 |
3 files changed, 33 insertions, 0 deletions
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"] + } +} diff --git a/global/overlay/etc/puppet/manifests/catlfish/merge.pp b/global/overlay/etc/puppet/manifests/catlfish/merge.pp new file mode 100644 index 0000000..f466be2 --- /dev/null +++ b/global/overlay/etc/puppet/manifests/catlfish/merge.pp @@ -0,0 +1,16 @@ +define catlfish::merge( + $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, + env => ["MERGE_EXTRA_ARGS=--timing"], + imagetag => $version + volumes => ["/data/${name}/catlfish:/usr/local/etc/catlfish:ro","${base}/${name}:/var/local/db/catlfish"], + command => ["merge /var/local/db/catlfish"] + } +} diff --git a/manifests b/manifests new file mode 120000 index 0000000..21997a1 --- /dev/null +++ b/manifests @@ -0,0 +1 @@ +global/overlay/etc/puppet/manifests
\ No newline at end of file |