openstack-ansible-openstack.../vars/ubuntu-16.04.yml

108 lines
3.0 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.
## APT Cache Options
cache_timeout: 600
## Defined required kernel
openstack_host_required_kernel: 4.2.0-18-generic
openstack_host_sysstat_file: /etc/default/sysstat
openstack_host_cron_template: sysstat.cron.debian.j2
openstack_host_module_file: /etc/modules
## Kernel modules loaded on hosts
openstack_host_kernel_modules:
- name: 8021q
- name: "{% if hostvars[inventory_hostname]['ansible_kernel'] | version_compare('4.4', '>=') %}br_netfilter{% endif %}"
- name: dm_multipath
- name: dm_snapshot
- name: ebtables
- name: ip6table_filter
- name: ip6_tables
- name: ip_tables
- name: ipt_MASQUERADE
- name: ipt_REJECT
- name: iptable_filter
- name: iptable_mangle
- name: iptable_nat
- name: ip_vs
- name: iscsi_tcp
- name: nbd
- name: nf_conntrack
- name: nf_conntrack_ipv4
- name: nf_defrag_ipv4
- name: nf_nat
- name: nf_nat_ipv4
- name: vhost_net
- name: x_tables
## Base packages
_openstack_host_metal_distro_packages:
- apparmor-utils
- apt-transport-https
- bridge-utils
- build-essential
- cgroup-lite
- curl
- dmeventd
- dstat
- ebtables
- htop
- iptables
- irqbalance
- libkmod-dev
- libkmod2
- linux-image-extra-{{ ansible_kernel }}
- lvm2
- python-software-properties
- python-dev
- rsync
- rsyslog
- sshpass
- sysstat
- time
- vlan
- wget
_package_repos_keys: []
## example:
# - id:
# file:
# keyserver:
# url:
# state:
_package_list:
- name: ubuntu-cloud-keyring
state: "{{ openstack_hosts_package_state }}"
_package_repos:
# For convention over configuration, this removes any UCA configuration with
# default filename, or user defined filename.
# Deployers can/should use this facility to remove any previously user defined
# repositories.
# Remove the pike UCA repo configuration
- repo: "deb {{ uca_apt_repo_url | default('http://ubuntu-cloud.archive.canonical.com/ubuntu') }} {{ ansible_lsb.codename }}-updates/pike main"
state: absent
filename: "{{ uca_apt_source_list_filename | default('ubuntu_cloud_archive_canonical_com_ubuntu') }}"
# Remove any previously done queens UCA repo configuration (without the 'uca' file name)
- repo: "{{ uca_repo }}"
state: absent
filename: "{{ uca_apt_source_list_filename | default('ubuntu_cloud_archive_canonical_com_ubuntu') }}"
# Implement the current UCA repo configuration
- repo: "{{ uca_repo }}"
state: present
filename: "uca"