Add Ubuntu ppc64le support

This commit adds support for container creation on Ubuntu ppc64le.
It maps the ansible architecture to the correct lxc architecture
and sets the container arch accordingly.

Change-Id: I1f142686d7190e5bfe7147366d406381b5011725
This commit is contained in:
adreznec 2016-06-29 22:55:15 -05:00
parent 5b4cd3d6f4
commit 41800e3eae
4 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,11 @@
lxc_container_config: /etc/lxc/lxc-openstack.conf
# Mappings from Ansible reported architecture to distro release architecture
lxc_architecture_mapping:
x86_64: amd64
ppc64le: ppc64el
# lxc container rootfs directory and cache path
lxc_container_directory: "/var/lib/lxc"
lxc_container_cache_path: "/var/cache/lxc"

View File

@ -0,0 +1,4 @@
---
features:
- Support added to allow deploying on ppc64le architecture
using the Ubuntu distributions.

View File

@ -49,7 +49,7 @@ lxc_container_interface_target: "/etc/network/interfaces.d/{{ item.value.interfa
lxc_container_map:
distro: ubuntu
arch: amd64
arch: "{{ lxc_architecture_mapping.get( hostvars[physical_host]['ansible_architecture'] | lower ) }}"
release: trusty
prep_commands: |
mkdir -p /var/backup

View File

@ -49,7 +49,7 @@ lxc_container_interface_target: "/etc/network/interfaces.d/{{ item.value.interfa
lxc_container_map:
distro: ubuntu
arch: amd64
arch: "{{ lxc_architecture_mapping.get( hostvars[physical_host]['ansible_architecture'] | lower ) }}"
release: xenial
prep_commands: |
mkdir -p /var/backup