diff --git a/global/overlay/etc/puppet/setup_cosmos_modules b/global/overlay/etc/puppet/setup_cosmos_modules index 32b8440..02bb57c 100755 --- a/global/overlay/etc/puppet/setup_cosmos_modules +++ b/global/overlay/etc/puppet/setup_cosmos_modules @@ -5,6 +5,7 @@ import hashlib import os import os.path import sys +import re import socket @@ -115,11 +116,9 @@ def main(): if OS_INFO["VERSION_CODENAME"] == "bullseye": pass - # if host_info: - # if "internal-sto1-test-backup-1.geteduroam.sunet.se" in host_info["fqdn"]: - # modules["sunet"]["tag"] = "jocar-mariadb-backup-2*" - # if "internal-sto1-test-db-1.geteduroam.sunet.se" in host_info["fqdn"]: - # modules["sunet"]["tag"] = "jocar-mariadb-backup-2*" + if host_info: + if re.match('^internal-(sto1|sto3|dco)-test-radius-[1-3].geteduroam.sunet.se$', host_info["fqdn"]): + modules["sunet"]["tag"] = "patlu-certbot-sync-dir-2*" # Build list of expected file content file_lines = create_file_content(modules)