define catlfish::merge( $image = 'docker.sunet.se/ctct/catlfish-dev', $version = 'latest' ) { $base = '/var/local/db' $db = ""${base}/${name}" file {$base: ensure => directory } -> file {$db: ensure => directory } -> sunet::docker_run {'${name}_merge': image => $image, env => ["MERGE_EXTRA_ARGS=--timing"], imagetag => $version, volumes => ["/usr/local/etc/catlfish:/usr/local/etc/catlfish:ro","${db}:/var/local/db/catlfish"], command => ["merge /var/local/db/catlfish"] } }