summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2018-11-14 11:21:49 +0100
committerKim Hagen <kim.sidney@gmail.com>2018-11-14 11:21:49 +0100
commit3d777aa2aa8503d0bec5cebfb34143eb30ec1db8 (patch)
tree693068f3ade1107e696861bf435f177d13a388dc
parenteeb98144082444125a06b193505aa47cbd38d27c (diff)
downloadvyos-build-3d777aa2aa8503d0bec5cebfb34143eb30ec1db8.tar.gz
vyos-build-3d777aa2aa8503d0bec5cebfb34143eb30ec1db8.zip
Add saltstack repo
-rw-r--r--data/live-build-config/archives/saltstack.key.chroot31
-rwxr-xr-xscripts/build-config1
-rw-r--r--scripts/defaults.py2
-rwxr-xr-xscripts/live-build-config3
4 files changed, 37 insertions, 0 deletions
diff --git a/data/live-build-config/archives/saltstack.key.chroot b/data/live-build-config/archives/saltstack.key.chroot
new file mode 100644
index 00000000..14bd7d98
--- /dev/null
+++ b/data/live-build-config/archives/saltstack.key.chroot
@@ -0,0 +1,31 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v2
+
+mQENBFOpvpgBCADkP656H41i8fpplEEB8IeLhugyC2rTEwwSclb8tQNYtUiGdna9
+m38kb0OS2DDrEdtdQb2hWCnswxaAkUunb2qq18vd3dBvlnI+C4/xu5ksZZkRj+fW
+tArNR18V+2jkwcG26m8AxIrT+m4M6/bgnSfHTBtT5adNfVcTHqiT1JtCbQcXmwVw
+WbqS6v/LhcsBE//SHne4uBCK/GHxZHhQ5jz5h+3vWeV4gvxS3Xu6v1IlIpLDwUts
+kT1DumfynYnnZmWTGc6SYyIFXTPJLtnoWDb9OBdWgZxXfHEcBsKGha+bXO+m2tHA
+gNneN9i5f8oNxo5njrL8jkCckOpNpng18BKXABEBAAG0MlNhbHRTdGFjayBQYWNr
+YWdpbmcgVGVhbSA8cGFja2FnaW5nQHNhbHRzdGFjay5jb20+iQE4BBMBAgAiBQJT
+qb6YAhsDBgsJCAcDAgYVCAIJ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uHEZ7Za+zhPaQlzAOZlx
+fuBmScum8uQTrEF5+Um5zkwC7EXTdH1co/+/V/fpOtxIg4XO4kcugZefVm5ERfVS
+MA==
+=dtMN
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/scripts/build-config b/scripts/build-config
index 008311ad..76e83192 100755
--- a/scripts/build-config
+++ b/scripts/build-config
@@ -57,6 +57,7 @@ options = {
'debian-mirror': ('Debian repository mirror for ISO build', lambda: defaults.DEBIAN_MIRROR, None),
'debian-security-mirror': ('Debian security updated mirror', lambda: defaults.DEBIAN_SECURITY_MIRROR, None),
'pbuilder-debian-mirror': ('Debian repository mirror for pbuilder env bootstrap', lambda: defaults.DEBIAN_MIRROR, None),
+ 'salt-mirror': ('Salt package mirror', lambda: defaults.SALT_MIRROR, None),
'vyos-mirror': ('VyOS package mirror', lambda: defaults.VYOS_MIRROR, None),
'build-type': ('Build type, release or development', lambda: 'development', lambda x: x in ['release', 'development']),
'custom-packages': ('Custom packages to install from repositories', lambda: '', None),
diff --git a/scripts/defaults.py b/scripts/defaults.py
index 392af475..c83ce172 100644
--- a/scripts/defaults.py
+++ b/scripts/defaults.py
@@ -27,6 +27,8 @@ DEBIAN_SECURITY_MIRROR = 'http://deb.debian.org/debian-security'
DEBIAN_DISTRIBUTION = 'jessie'
+SALT_MIRROR = 'http://repo.saltstack.com/apt/debian/8/amd64/latest'
+
PBUILDER_CONFIG = os.path.join(BUILD_DIR, 'pbuilderrc')
PBUILDER_DIR = os.path.join(BUILD_DIR, 'pbuilder')
diff --git a/scripts/live-build-config b/scripts/live-build-config
index 6efa0a8c..8c843bcb 100755
--- a/scripts/live-build-config
+++ b/scripts/live-build-config
@@ -69,6 +69,7 @@ debug = build_config['debug']
print("Setting up additional APT entries")
vyos_repo_entry = "deb {0}/vyos {1} main\n".format(build_config['vyos_mirror'], build_config['vyos_branch'])
vyos_debian_repo_entry = "deb {0}/debian {1} main\n".format(build_config['vyos_mirror'], build_config['vyos_branch'])
+salt_repo_entry = "deb {0} {1} main\n".format(build_config['salt_mirror'], build_config['distribution'])
apt_file = os.path.join(build_config['build_dir'], defaults.VYOS_REPO_FILE)
@@ -76,10 +77,12 @@ if debug:
print("Adding these entries to {0}:".format(apt_file))
print("\t", vyos_repo_entry)
print("\t", vyos_debian_repo_entry)
+ print("\t", salt_repo_entry)
with open(apt_file, 'w') as f:
f.write(vyos_repo_entry)
f.write(vyos_debian_repo_entry)
+ f.write(salt_repo_entry)
# Add custom APT entries
if build_config['custom_apt_entry']: