06fadf9dca
The irqbalance daemon is expected by the lxc_hosts playbook in its pre_tasks. This patch ensures that it's there by adding the package to the openstack_hosts role which runs before the the lxc_hosts playbook. Change-Id: I88e34aedf727c9a9698ddefcdd05eb4debfa5619 Closes-Bug: #1482146
111 lines
3.7 KiB
YAML
111 lines
3.7 KiB
YAML
---
|
|
# Copyright 2014, 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.
|
|
|
|
openstack_code_name: 1AndOne=11
|
|
openstack_release: master
|
|
|
|
openstack_host_systat_enabled: true
|
|
openstack_host_systat_interval: 1
|
|
openstack_host_systat_statistics_hour: 23
|
|
|
|
openstack_host_disbale_auto_updates: true
|
|
|
|
## Defined required kernel. presently 3.13.0-32-generic
|
|
openstack_host_required_kernel: 3.13.0-34-generic
|
|
|
|
## Kernel modules loaded on hosts
|
|
openstack_host_kernel_modules:
|
|
- 8021q
|
|
- dm_multipath
|
|
- dm_snapshot
|
|
- ip6table_filter
|
|
- ip6_tables
|
|
- ip_tables
|
|
- ipt_MASQUERADE
|
|
- ipt_REJECT
|
|
- iptable_filter
|
|
- iptable_mangle
|
|
- iptable_nat
|
|
- iscsi_tcp
|
|
- nbd
|
|
- nf_conntrack
|
|
- nf_conntrack_ipv4
|
|
- nf_defrag_ipv4
|
|
- nf_nat
|
|
- nf_nat_ipv4
|
|
- scsi_dh
|
|
- vhost_net
|
|
- x_tables
|
|
|
|
## Base packages
|
|
openstack_host_apt_packages:
|
|
- apparmor-utils
|
|
- apt-transport-https
|
|
- bridge-utils
|
|
- build-essential
|
|
- cgroup-lite
|
|
- curl
|
|
- dmeventd
|
|
- dstat
|
|
- htop
|
|
- iptables
|
|
- irqbalance
|
|
- libkmod-dev
|
|
- libkmod2
|
|
- lvm2
|
|
- python-software-properties
|
|
- python-dev
|
|
- rsync
|
|
- rsyslog
|
|
- sshpass
|
|
- sysstat
|
|
- time
|
|
- vlan
|
|
- wget
|
|
|
|
# The following garbage collection values are set to better support lots of neutron networks/routers.
|
|
# Used for setting the net.ipv4/6.neigh.default.gc_thresh* values. This assumes that facts were
|
|
# gathered to obtain the total amount of memory available on a given host. If no facts are gathered
|
|
# the default set will be 1024 unless its defined by the user.
|
|
gc_val: "{{ ansible_memtotal_mb | default(1024) | bit_length_power_of_2 }}"
|
|
# The ste value has a Max allowable value of 8192 unless set by the user.
|
|
set_gc_val: "{{ gc_val if (gc_val | int <= 8192) else 8192 }}"
|
|
|
|
# System control kernel tuning
|
|
openstack_kernel_options:
|
|
- { key: 'fs.inotify.max_user_watches', value: 36864 }
|
|
- { key: 'net.ipv4.conf.all.rp_filter', value: 0 }
|
|
- { key: 'net.ipv4.conf.default.rp_filter', value: 0 }
|
|
- { key: 'net.ipv4.ip_forward', value: 1 }
|
|
- { key: 'net.netfilter.nf_conntrack_max', value: 262144 }
|
|
- { key: 'vm.dirty_background_ratio', value: 5 }
|
|
- { key: 'vm.dirty_ratio', value: 10 }
|
|
- { key: 'vm.swappiness', value: 5 }
|
|
- { key: 'net.bridge.bridge-nf-call-ip6tables', value: 0 }
|
|
- { key: 'net.bridge.bridge-nf-call-iptables', value: 0 }
|
|
- { key: 'net.bridge.bridge-nf-call-arptables', value: 0 }
|
|
- { key: 'net.ipv4.neigh.default.gc_thresh1', value: "{{ set_gc_val | int // 2 }}" }
|
|
- { key: 'net.ipv4.neigh.default.gc_thresh2', value: "{{ set_gc_val | int }}" }
|
|
- { key: 'net.ipv4.neigh.default.gc_thresh3', value: "{{ set_gc_val | int * 2 }}" }
|
|
- { key: 'net.ipv4.route.gc_thresh', value: "{{ set_gc_val | int * 2 }}" }
|
|
- { key: 'net.ipv4.neigh.default.gc_interval', value: 60 }
|
|
- { key: 'net.ipv4.neigh.default.gc_stale_time', value: 120 }
|
|
- { key: 'net.ipv6.neigh.default.gc_thresh1', value: "{{ set_gc_val | int // 2 }}" }
|
|
- { key: 'net.ipv6.neigh.default.gc_thresh2', value: "{{ set_gc_val | int }}" }
|
|
- { key: 'net.ipv6.neigh.default.gc_thresh3', value: "{{ set_gc_val | int * 2 }}" }
|
|
- { key: 'net.ipv6.route.gc_thresh', value: "{{ set_gc_val | int * 2 }}" }
|
|
- { key: 'net.ipv6.neigh.default.gc_interval', value: 60 }
|
|
- { key: 'net.ipv6.neigh.default.gc_stale_time', value: 120 }
|