summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/manifests/catlfish/merge.pp
diff options
context:
space:
mode:
Diffstat (limited to 'global/overlay/etc/puppet/manifests/catlfish/merge.pp')
-rw-r--r--global/overlay/etc/puppet/manifests/catlfish/merge.pp16
1 files changed, 16 insertions, 0 deletions
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"]
+ }
+}