Take account of lxc_apt_mirror in new debootstrap command
Without this change the mirror variable is ignored which can cause issues on systems running behind a proxy. Change-Id: I3e761c181c1bf3b736fff3bf9ac441e266bc4e2c Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/851233
This commit is contained in:
parent
844ebcdab6
commit
783076a508
@ -235,4 +235,4 @@ lxc_centos_epel_key: "{{ centos_epel_key | default('http://download.fedoraprojec
|
||||
lxc_centos_package_baseurl: "{{ _lxc_centos_package_baseurl }}"
|
||||
lxc_centos_package_key: "{{ _lxc_centos_package_key }}"
|
||||
|
||||
lxc_apt_mirror: "{{ ansible_facts['distribution'] == 'Ubuntu') | ternary('http://archive.ubuntu.com/ubuntu', 'http://deb.debian.org/debian') }}"
|
||||
lxc_apt_mirror: "{{ (ansible_facts['distribution'] == 'Ubuntu') | ternary('http://archive.ubuntu.com/ubuntu', 'http://deb.debian.org/debian') }}"
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
_lxc_hosts_container_build_command: "debootstrap --variant minbase {{ ansible_facts['distribution_release'] }} /var/lib/machines/{{ lxc_container_base_name }} "
|
||||
_lxc_hosts_container_build_command: "debootstrap --variant minbase {{ ansible_facts['distribution_release'] }} /var/lib/machines/{{ lxc_container_base_name }} {{ lxc_apt_mirror }}"
|
||||
|
||||
_lxc_cache_map:
|
||||
distro: "{{ ansible_facts['distribution'] | lower }}"
|
||||
|
Loading…
Reference in New Issue
Block a user