blob: f466be2e44a7f8ec16250233cfc53f5711e7e8f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"]
}
}
|