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