added new container for eidastest

This commit is contained in:
Maria Haider 2021-04-16 16:39:38 +02:00
parent 8dbf2e2d52
commit 97b532b1ac
Signed by: mariah
GPG key ID: 7414A760CA747E57
2 changed files with 27 additions and 0 deletions

View file

@ -31,3 +31,11 @@ eidastest_compose:
depends_on:
- chrome
restart: on-failure
scheduler1:
image: mcuadros/ofelia:latest
container_name: supvervising_standalone-chrome
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config.ini:/etc/ofelia/config.ini
depends_on:
- chrome

View file

@ -444,6 +444,25 @@ class eidastest($version="1.0.0", $hostname="locahost") {
path => "${home}",
mode => '0755',
}
file { "${home}/eidastest/scripts":
ensure => directory,
owner => 'root',
group => 'root',
path => "${home}/eidastest/scripts",
mode => '0755',
}
file { "${home}/eidastest/config.ini":
content => template('eid/eidastest/config.ini.erb'),
owner => 'root',
group => 'root',
mode => '0755',
}
file { "${home}/eidastest/scripts/supervise_chrome_processes.sh":
content => template('eid/eidastest/supervise_chrome_processes.sh.erb'),
owner => 'root',
group => 'root',
mode => '0755',
}
$compose = hiera("eidastest_compose")
sunet::docker_compose {'eidastest_docker_compose':
service_name => 'eidastest',