
This change updates the lxc-host setup role to build the lxc cache using the download template based on default images found here:[0]. These images are upsteam builds from the greater LXC/D community. This update adds support for Ubuntu 14.04, 16.04 and RHEL/CentOS 7 container types and the cache will be generated from the host Operating system. [0] - https://images.linuxcontainers.org/ Change-Id: Ie13be2322d28178760481c59805101d6aeef4f36 Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk> Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
71 lines
1.9 KiB
YAML
71 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-1.0.8.tar.gz"
|
|
|
|
# Required rpm packages.
|
|
lxc_packages:
|
|
- '@Development Tools'
|
|
- automake
|
|
- autoconf
|
|
- bridge-utils
|
|
- debootstrap
|
|
- docbook2X
|
|
- dnsmasq
|
|
- git
|
|
- 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
|
|
cache_packages:
|
|
- openssh-server
|
|
- sudo
|
|
repos: {}
|
|
cache_base_commands: |
|
|
rm /etc/resolv.conf
|
|
{% for resolver in lxc_cache_resolvers %}
|
|
echo "{{ resolver }}" | tee -a /etc/resolv.conf
|
|
{% endfor %}
|
|
{{ lxc_cache_install_command }} wget python2
|
|
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
|
|
cache_post_commands: |
|
|
yum clean all
|
|
|
|
lxc_cache_install_command: "yum install -y"
|
|
|
|
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"
|