48 lines
1.8 KiB
YAML
48 lines
1.8 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.
|
|
|
|
# NOTE(cloudnull): These variables have been kept to ensure
|
|
# we're cleaning up the old interface files.
|
|
# Remote this in the "R" release.
|
|
lxc_container_default_route_interfaces: "/etc/sysconfig/network-scripts/route-{{ item.value.interface }}"
|
|
lxc_container_interface_target: "/etc/sysconfig/network-scripts/ifcfg-{{ item.value.interface }}"
|
|
lxc_container_default_interface: "/etc/sysconfig/network-scripts/ifcfg-eth0"
|
|
|
|
lxc_container_map:
|
|
distro: centos
|
|
arch: amd64
|
|
release: 7
|
|
|
|
lxc_container_default_config_list:
|
|
- "lxc.start.auto=1"
|
|
- "lxc.start.delay=15"
|
|
- "lxc.group=onboot"
|
|
- "lxc.group=openstack"
|
|
- "lxc.autodev=1"
|
|
- "lxc.pts=1024"
|
|
- "lxc.kmsg=0"
|
|
- "lxc.hook.autodev=/var/lib/lxc/{{ inventory_hostname }}/autodev"
|
|
|
|
### REMOVE IN "S"
|
|
# The networkd commands are executed within the container but using the host
|
|
# network namespace. Remove this once systemd-networkd is part of the base
|
|
# image.
|
|
_lxc_container_extra_commands: |
|
|
which dnf &>/dev/null && RHT_PKG_MGR='dnf' || RHT_PKG_MGR='yum'
|
|
echo "install systemd-networkd systemd-resolved" >> /tmp/package-transaction.txt
|
|
echo "run" >> /tmp/package-transaction.txt
|
|
$RHT_PKG_MGR -y shell /tmp/package-transaction.txt
|
|
systemctl enable systemd-networkd
|