Opt in test instance apt repo mirror configs
Rather than enabling ceph and cloud archive repos by default when when configuring test instances to use our apt repo mirrors write out configures for them in another directory which can be optionally enabled. This prevents growing dependencies on these repositories except for where explicitly desired. To use a mirror either symlink to the sources.list.available.d/ files or copy them into sources.list.d/ and rerun apt-get update. Change-Id: I410f45064080e1bb93684899028e9af34bd555a1
This commit is contained in:
parent
245b0bffd7
commit
d51ebf69ac
|
@ -72,6 +72,13 @@ deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-updates main universe
|
|||
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-backports main universe
|
||||
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-security main universe
|
||||
EOF
|
||||
# Opt in repos. Jobs that want to take advantage of them can copy or
|
||||
# symlink them into /etc/apt/sources.list.d/
|
||||
sudo mkdir -p /etc/apt/sources.list.available.d
|
||||
sudo dd of=/etc/apt/sources.list.available.d/ceph-deb-hammer.list <<EOF
|
||||
deb $NODEPOOL_CEPH_MIRROR $LSBDISTCODENAME main
|
||||
EOF
|
||||
# Keep this for backward compat until devstack ceph plugin is updated
|
||||
sudo dd of=/etc/apt/sources.list.d/ceph-deb-hammer.list <<EOF
|
||||
deb $NODEPOOL_CEPH_MIRROR $LSBDISTCODENAME main
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue