Use collabora enterprise image

This commit is contained in:
Micke Nordin 2023-10-10 10:26:43 +02:00
parent 829f3f01c7
commit 88ee8c2b67

View file

@ -3,6 +3,8 @@ class sunetdrive::onlyoffice () {
$environment = sunetdrive::get_environment() $environment = sunetdrive::get_environment()
$extra_hosts = hiera_hash($environment)['extra_hosts'] $extra_hosts = hiera_hash($environment)['extra_hosts']
$docker_tag = hiera_hash($environment)['collabora_tag'] $docker_tag = hiera_hash($environment)['collabora_tag']
$token_name = 'Sunet'
$access_token = safe_hiera('collabora_access_token')
$customers = hiera('fullnodes') $customers = hiera('fullnodes')
$multinode_customers = keys(hiera_hash('multinode_mapping')) $multinode_customers = keys(hiera_hash('multinode_mapping'))
if $environment == 'prod' { if $environment == 'prod' {
@ -10,11 +12,15 @@ class sunetdrive::onlyoffice () {
} else { } else {
$domain = 'drive.test.sunet.se' $domain = 'drive.test.sunet.se'
} }
exec { 'collabora_docker_login':
cmd => "docker login registry.gitlab.collabora.com -u ${token_name} -p ${access_token}",
}
sunet::collabora::docs { 'sunet-onlyoffice': sunet::collabora::docs { 'sunet-onlyoffice':
dns => [ '89.32.32.32' ], dns => [ '89.32.32.32' ],
extra_hosts => $extra_hosts, extra_hosts => $extra_hosts,
extra_volumes => ['/opt/collabora/coolwsd.xml:/etc/coolwsd/coolwsd.xml'], extra_volumes => ['/opt/collabora/coolwsd.xml:/etc/coolwsd/coolwsd.xml'],
docker_tag => $docker_tag, docker_tag => $docker_tag,
docker_image => 'registry.gitlab.collabora.com/productivity/collabora-online-nc',
} }
file {'/opt/collabora/coolwsd.xml': file {'/opt/collabora/coolwsd.xml':
ensure => present, ensure => present,