From 1ddf93c330fa6571aa48c99baa5cfa5dd704da5c Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Tue, 22 Oct 2024 15:20:09 +0200 Subject: [PATCH] Disable cilium by default We will go for IPVS for now which can deal with the l4lb hosts being multihomed. --- .../etc/puppet/modules/cdn/manifests/l4lb.pp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/global/overlay/etc/puppet/modules/cdn/manifests/l4lb.pp b/global/overlay/etc/puppet/modules/cdn/manifests/l4lb.pp index f914a0b..9366834 100644 --- a/global/overlay/etc/puppet/modules/cdn/manifests/l4lb.pp +++ b/global/overlay/etc/puppet/modules/cdn/manifests/l4lb.pp @@ -1,14 +1,17 @@ # Configure the SUNET CDN l4lb service class cdn::l4lb( + Bool $cilium_enabled = false, String $cilium_version = 'v1.16.1', String $cilium_devices = 'enp129s0f1np1', ) { - sunet::docker_compose { 'sunet-cdn-l4lb': - content => template('cdn/l4lb/docker-compose.yml.erb'), - service_name => 'cdn-l4lb', - compose_dir => '/opt/sunet-cdn/compose/l4lb', - compose_filename => 'docker-compose.yml', - description => 'SUNET CDN l4lb', + if $cilium_enabled { + sunet::docker_compose { 'sunet-cdn-l4lb': + content => template('cdn/l4lb/docker-compose.yml.erb'), + service_name => 'cdn-l4lb', + compose_dir => '/opt/sunet-cdn/compose/l4lb', + compose_filename => 'docker-compose.yml', + description => 'SUNET CDN l4lb', + } } }