summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/catlfish/manifests/signing.pp
blob: 70f1d8781a5c2c0ce9d01442951b0b691459546b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
define catlfish::signing(
      $logname  = undef,
      $image    = 'docker.sunet.se/ctct/catlfish-dev-lunahsm',
      $version  = 'latest'
)
{
   sunet::docker_run {"${name}_catlfish":
       image    => $image,
       imagetag => $version,
       volumes  => ["/usr/local/etc/catlfish:/usr/local/etc/catlfish:ro"],
       ports    => ["8188:8188"],
       command  => ["signing ${name} ${logname}"]
   }
   ufw:allow { "${name}-allow-8188-acl0":
      ip     => '130.242.125.0/24',
      port   => 8081
   }
}