deploy eidastest - take 2
This commit is contained in:
parent
185f0bb25d
commit
3c15e80c08
3 changed files with 55 additions and 14 deletions
37
eidastest-1.qa.sveidas.se/overlay/etc/hiera/data/local.yaml
Normal file
37
eidastest-1.qa.sveidas.se/overlay/etc/hiera/data/local.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
eidastest_compose:
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
selenium-hub:
|
||||||
|
image: selenium/hub
|
||||||
|
container_name: selenium-hub
|
||||||
|
ports:
|
||||||
|
- "4444:4444"
|
||||||
|
firefox:
|
||||||
|
image: selenium/node-firefox
|
||||||
|
depends_on:
|
||||||
|
- selenium-hub
|
||||||
|
environment:
|
||||||
|
- HUB_PORT_4444_TCP_ADDR=selenium-hub
|
||||||
|
- HUB_PORT_4444_TCP_PORT=4444
|
||||||
|
|
||||||
|
chrome:
|
||||||
|
image: selenium/node-chrome
|
||||||
|
depends_on:
|
||||||
|
- selenium-hub
|
||||||
|
environment:
|
||||||
|
- HUB_PORT_4444_TCP_ADDR=selenium-hub
|
||||||
|
- HUB_PORT_4444_TCP_PORT=4444
|
||||||
|
|
||||||
|
eidastest-testid:
|
||||||
|
image: eidastest-testid:1.0.6
|
||||||
|
container_name: eidastest-testid
|
||||||
|
ports:
|
||||||
|
- "8099:8099"
|
||||||
|
environment:
|
||||||
|
- CERTNAME=eidastest-1.qa.sveidas.se
|
||||||
|
volumes:
|
||||||
|
- "/etc/ssl:/etc/ssl"
|
||||||
|
depends_on:
|
||||||
|
- firefox
|
||||||
|
- chrome
|
|
@ -799,6 +799,4 @@ eidastest-1.qa.sveidas.se:
|
||||||
openstack_dockerhost:
|
openstack_dockerhost:
|
||||||
sunet_iaas_cloud:
|
sunet_iaas_cloud:
|
||||||
autoupdate:
|
autoupdate:
|
||||||
eidastest_controller:
|
eidastest:
|
||||||
version: 1.0.2
|
|
||||||
hostname: eidastest-1.qa.sveidas.se
|
|
||||||
|
|
|
@ -381,17 +381,23 @@ class test_my_eid($version="1.0.1",$hostname='localhost',$environment='qa') {
|
||||||
ensure_resource('class','https_server',{})
|
ensure_resource('class','https_server',{})
|
||||||
}
|
}
|
||||||
|
|
||||||
class eidastest_controller($version="1.0.0", $hostname="locahost") {
|
class eidastest($version="1.0.0", $hostname="locahost") {
|
||||||
$_version = safe_hiera('eidastest_controller_version',$version)
|
$_version = safe_hiera('eidastest_version',$version)
|
||||||
$_hostname = safe_hiera('eidastest_controller_hostname',$hostname)
|
$_hostname = safe_hiera('eidastest_hostname',$hostname)
|
||||||
sunet::docker_run {'eidastest':
|
$home = '/etc/eidastest'
|
||||||
image => 'docker.sunet.se/eidastest-controller',
|
file { "${home}":
|
||||||
imagetag => $_version,
|
ensure => directory,
|
||||||
hostname => "${::fqdn}",
|
owner => 'root',
|
||||||
ports => ['443:8443'],
|
group => 'root',
|
||||||
volumes => ['/dev/log:/dev/log',
|
path => "${home}",
|
||||||
'/etc/ssl:/etc/ssl'],
|
mode => '0755',
|
||||||
extra_parameters => ["--log-driver=syslog"]
|
}
|
||||||
|
$compose = hiera("eidastest_compose")
|
||||||
|
sunet::docker_compose {'eidastest_docker_compose':
|
||||||
|
service_name => 'eidastest',
|
||||||
|
description => 'eidastest service',
|
||||||
|
compose_dir => "${home}",
|
||||||
|
content => inline_template("<%= @compose.to_yaml %>\n")
|
||||||
}
|
}
|
||||||
ensure_resource('class','webserver',{})
|
ensure_resource('class','webserver',{})
|
||||||
ensure_resource('class','https_server',{})
|
ensure_resource('class','https_server',{})
|
||||||
|
|
Loading…
Add table
Reference in a new issue