Allows for the VMs preseed mirror to be overridden
In the case the upstream mirror might be down or there might be a faster mirror available, this allows you to specify the desired Ubuntu mirror and base directory. Change-Id: I49c33b9e4e107990f2abb418b859fd280ba91107
This commit is contained in:
parent
4d2a8335aa
commit
e3a1d1fcb9
@ -146,6 +146,11 @@ Instruct the system to configure iptables prerouting rules for connecting to
|
|||||||
VMs from outside the host:
|
VMs from outside the host:
|
||||||
``CONFIG_PREROUTING=${CONFIG_PREROUTING:-true}``
|
``CONFIG_PREROUTING=${CONFIG_PREROUTING:-true}``
|
||||||
|
|
||||||
|
Insrtuct the system to use a different Ubuntu mirror:
|
||||||
|
``DEFAULT_MIRROR_HOSTNAME=${DEFAULT_MIRROR_HOSTNAME:-archive.ubuntu.com}``
|
||||||
|
|
||||||
|
Instruct the system to use a different Ubuntu mirror base directory:
|
||||||
|
``DEFAULT_MIRROR_DIR=${DEFAULT_MIRROR_DIR:-/ubuntu}``
|
||||||
|
|
||||||
Re-kicking VM(s)
|
Re-kicking VM(s)
|
||||||
----------------
|
----------------
|
||||||
|
@ -41,5 +41,7 @@ ansible-playbook -vv \
|
|||||||
-e configure_openstack=${CONFIGURE_OPENSTACK:-"true"} \
|
-e configure_openstack=${CONFIGURE_OPENSTACK:-"true"} \
|
||||||
-e config_prerouting=${CONFIG_PREROUTING:-"false"} \
|
-e config_prerouting=${CONFIG_PREROUTING:-"false"} \
|
||||||
-e default_ubuntu_kernel=${DEFAULT_KERNEL:-"linux-image-generic"} \
|
-e default_ubuntu_kernel=${DEFAULT_KERNEL:-"linux-image-generic"} \
|
||||||
|
-e default_ubuntu_mirror_hostname=${DEFAULT_MIRROR_HOSTNAME:-"archive.ubuntu.com"} \
|
||||||
|
-e default_ubuntu_mirror_directory=${DEFAULT_MIRROR_DIR:-"/ubuntu"} \
|
||||||
--force-handlers \
|
--force-handlers \
|
||||||
playbooks/site.yml
|
playbooks/site.yml
|
||||||
|
@ -61,9 +61,9 @@ d-i keyboard-configuration/layoutcode string us
|
|||||||
# Mirror
|
# Mirror
|
||||||
|
|
||||||
d-i mirror/country string manual
|
d-i mirror/country string manual
|
||||||
d-i mirror/http/proxy string
|
d-i mirror/http/proxy string {{ default_ubuntu_mirror_proxy }}
|
||||||
d-i mirror/http/hostname string archive.ubuntu.com
|
d-i mirror/http/hostname string {{ default_ubuntu_mirror_hostname }}
|
||||||
d-i mirror/http/directory string /ubuntu
|
d-i mirror/http/directory string {{ default_ubuntu_mirror_directory }}
|
||||||
|
|
||||||
# Clock and Time Zone
|
# Clock and Time Zone
|
||||||
|
|
||||||
|
@ -61,9 +61,9 @@ d-i keyboard-configuration/layoutcode string us
|
|||||||
# Mirror
|
# Mirror
|
||||||
|
|
||||||
d-i mirror/country string manual
|
d-i mirror/country string manual
|
||||||
d-i mirror/http/proxy string
|
d-i mirror/http/proxy string {{ default_ubuntu_mirror_proxy }}
|
||||||
d-i mirror/http/hostname string archive.ubuntu.com
|
d-i mirror/http/hostname string {{ default_ubuntu_mirror_hostname }}
|
||||||
d-i mirror/http/directory string /ubuntu
|
d-i mirror/http/directory string {{ default_ubuntu_mirror_directory }}
|
||||||
|
|
||||||
# Clock and Time Zone
|
# Clock and Time Zone
|
||||||
|
|
||||||
|
@ -61,9 +61,9 @@ d-i keyboard-configuration/layoutcode string us
|
|||||||
# Mirror
|
# Mirror
|
||||||
|
|
||||||
d-i mirror/country string manual
|
d-i mirror/country string manual
|
||||||
d-i mirror/http/proxy string
|
d-i mirror/http/proxy string {{ default_ubuntu_mirror_proxy }}
|
||||||
d-i mirror/http/hostname string archive.ubuntu.com
|
d-i mirror/http/hostname string {{ default_ubuntu_mirror_hostname }}
|
||||||
d-i mirror/http/directory string /ubuntu
|
d-i mirror/http/directory string {{ default_ubuntu_mirror_directory }}
|
||||||
|
|
||||||
# Clock and Time Zone
|
# Clock and Time Zone
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user