openstack-ansible-ops/multi-node-aio/playbooks/vars/ubuntu.yml
Matt Thompson e5ba32d8fa Install netaddr before running site.yml
Currently, the execution of site.yml fails as site.yml installs
python-netaddr in the same run as it uses it, which fails since
ansible-playbook can't see the newly installed module.

This commit simply removes python-netaddr from
mnaio_host_distro_packages and adds a new task to build.sh to
install it before site.yml is kicked off.

NOTE: This commit also switches to installing netaddr via pip
      instead of system package since that does not require pre-loading
      vars files depending on OS, etc.

Change-Id: I324ba61a860f5942b40972903ae1c40caa7839e5
2017-09-06 10:35:04 -04:00

46 lines
1.2 KiB
YAML

---
# Copyright 2017, 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 witing, 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.
mnaio_host_distro_packages:
- bridge-utils
- ifenslave
- iptables-persistent
- libvirt-bin
- lvm2
- ntp
- openssh-server
- python2.7
- python-software-properties
- qemu-kvm
- qemu-utils
- software-properties-common
- virtinst
- virt-manager
- vlan
mnaio_pxe_distro_packages:
- tftpd-hpa
- inetutils-inetd
- nginx
- p7zip-full
mnaio_dhcp_distro_packages:
- isc-dhcp-server
mnaio_pkg_cache_server_distro_packages:
- apt-cacher-ng
mnaio_host_iptables_service: "{{ (ansible_distribution | lower + '-' + ansible_distribution_version | lower == 'ubuntu-14.04') | ternary('iptables-persistent', 'netfilter-persistent') }}"