openstack-ansible-lxc_hosts/vars/redhat-7.yml
Kevin Carter 1df6b5d940
Update the version of LXC for centos7
This updates the version of LXC to the latest stable (2.0.1).
This is being done because issues exist when running LXC 1.x
within SystemD and how capabilities are handled. To resolve the
capability issues as seen here: [0] the version of LXC has been
updated. This change also pulls Centos 7 in line with the release
series of LXC found on Ubuntu 16.04.

This change will unblock the os_keystone PR [1].

[0] - http://logs.openstack.org/16/320216/10/experimental/gate-openstack-ansible-os_keystone-ansible-func-centos-7-nv/514118f/console.html#_2016-06-01_20_59_54_386
[1] - https://review.openstack.org/#/c/320216

Change-Id: I333fb1887339e8dc9ebf10ff137dda3cff629dc0
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-06-03 00:42:08 -05:00

74 lines
1.9 KiB
YAML

---
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
lxc_download_url: "https://linuxcontainers.org/downloads/lxc/lxc-2.0.1.tar.gz"
# Required rpm packages.
lxc_packages:
- '@Development Tools'
- automake
- autoconf
- bridge-utils
- debootstrap
- docbook2X
- dnsmasq
- git
- graphviz
- libseccomp
- libseccomp-devel
- libcap-devel
- libselinux
- libselinux-devel
- python-devel
- python34-libs
- python34-devel
- pkgconfig
- redhat-lsb
- xz
lxc_cache_map:
distro: centos
arch: amd64
release: 7
copy_from_host:
- /etc/yum.repos.d/
- /etc/pki/rpm-gpg/
- /etc/resolv.conf
cache_prep_commands: |
{{ lxc_cache_install_command }} {{ lxc_cache_packages | join(' ') }}
rm -f /usr/bin/python
ln -s /usr/bin/python2.7 /usr/bin/python
/usr/bin/wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -O /tmp/epel-release-latest-7.noarch.rpm
/usr/bin/rpm -ivh /tmp/epel-release-latest-7.noarch.rpm || true
yum clean all
lxc_cache_install_command: "yum install -y"
lxc_cache_packages:
- ca-certificates
- openssh-server
- python2
- sudo
- wget
pip_install_options: >
--global-option=build_ext
--global-option="-L/opt/lxc_embedded/x86_64-linux-gnu/"
--global-option="-I/opt/lxc_embedded/include/"
lxc_cached_network_interfaces:
- src: "lxc-net-ifcfg-bridge.cfg.j2"
dest: "/etc/sysconfig/network-scripts/ifcfg-lxcbr0"