diff --git a/stx.conf.sample b/stx.conf.sample index 4c0a78a17..791801783 100644 --- a/stx.conf.sample +++ b/stx.conf.sample @@ -8,7 +8,9 @@ proxyport = 8080 buildbranch = master manifest = default.xml ostree_osname = debian +debian_distribution = bullseye debian_snapshot = http://snapshot.debian.org/archive/debian/20220331T000000Z +debian_security_snapshot = http://snapshot.debian.org/archive/debian-security/20220331T000000Z [builder] uid = 1000 diff --git a/stx/lib/stx/stx_control.py b/stx/lib/stx/stx_control.py index 3778eadf4..0c02fb538 100644 --- a/stx/lib/stx/stx_control.py +++ b/stx/lib/stx/stx_control.py @@ -88,6 +88,8 @@ class HandleControlTask: dsclist = self.config.get('repomgr', 'dsclist') ostree_osname = self.config.get('project', 'ostree_osname') debian_snapshot = self.config.get('project', 'debian_snapshot') + debian_security_snapshot = self.config.get('project', 'debian_security_snapshot') + debian_distribution = self.config.get('project', 'debian_distribution') if sourceslist: if not (deblist or dsclist): self.logger.warning('*************************************\ @@ -161,6 +163,8 @@ stx-pkgbuilder/configmap/') line = line.replace("@CENGNSTRATEGY@", cengnstrategy) line = line.replace("@OSTREE_OSNAME@", ostree_osname) line = line.replace("@DEBIAN_SNAPSHOT@", debian_snapshot) + line = line.replace("@DEBIAN_SECURITY_SNAPSHOT@", debian_security_snapshot) + line = line.replace("@DEBIAN_DISTRIBUTION@", debian_distribution) line = line.replace("@MAX_CPUS@", max_cpus) if sourceslist: line = line.replace("@fetch@", "true") diff --git a/stx/stx-build-tools-chart/stx-builder/configmap/localrc.sample b/stx/stx-build-tools-chart/stx-builder/configmap/localrc.sample index 84716d072..748ea9571 100644 --- a/stx/stx-build-tools-chart/stx-builder/configmap/localrc.sample +++ b/stx/stx-build-tools-chart/stx-builder/configmap/localrc.sample @@ -55,6 +55,10 @@ export BUILDER_URL=http://@PROJECT@-stx-pkgbuilder:8080/pkgbuilder/ export OSTREE_OSNAME=@OSTREE_OSNAME@ -export DEBIAN_SNAPSHOT=@DEBIAN_SNAPSHOT@ +export DEBIAN_SNAPSHOT="@DEBIAN_SNAPSHOT@" + +export DEBIAN_SECURITY_SNAPSHOT="@DEBIAN_SECURITY_SNAPSHOT@" + +export DEBIAN_DISTRIBUTION="@DEBIAN_DISTRIBUTION@" export MAX_CPUS=@MAX_CPUS@