From 0ce7d129528e0f2de9f32eb41404670a14db591a Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 26 May 2015 15:02:56 +0200 Subject: re-organized --- .../etc/puppet/modules/catlfish/manifests/merge.pp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 global/overlay/etc/puppet/modules/catlfish/manifests/merge.pp (limited to 'global/overlay/etc/puppet/modules/catlfish/manifests/merge.pp') diff --git a/global/overlay/etc/puppet/modules/catlfish/manifests/merge.pp b/global/overlay/etc/puppet/modules/catlfish/manifests/merge.pp new file mode 100644 index 0000000..2a54724 --- /dev/null +++ b/global/overlay/etc/puppet/modules/catlfish/manifests/merge.pp @@ -0,0 +1,18 @@ +define catlfish::merge( + $logname = undef, + $image = 'docker.sunet.se/ctct/catlfish-dev', + $version = 'latest' +) +{ + $base = '/var/local/db' + $db = ""${base}/${logname}" + file {$base: ensure => directory } -> + file {$db: ensure => directory } -> + sunet::docker_run {"${name}_catlfish": + image => $image, + env => ["MERGE_EXTRA_ARGS=--timing","MERGE_DB_DIR=/var/local/db/catlfish"], + imagetag => $version, + volumes => ["/usr/local/etc/catlfish/${name}:/usr/local/etc/catlfish:ro","${db}:/var/local/db/catlfish"], + command => ["merge ${name} ${logname}"] + } +} -- cgit v1.1