openstack-ansible/rpc_deployment/vars/config_vars/container_config_nova_compute.yml
Christopher H. Laco f1d25d8b58 Merge pull request #115 from cloudnull/nfcontract
added nfcontrack max
2014-09-14 18:13:20 -05:00

62 lines
1.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.
# Set the options that we want for the container, these are config options.
# The option is set as a YAML list which translates into "key = value" in config
container_config_options:
- "lxc.tty=4"
- "lxc.pts=1024"
- "lxc.aa_profile=unconfined"
- "lxc.mount.auto=cgroup"
- "lxc.cgroup.devices.allow=a *:* rmw"
- "lxc.mount.entry=/lib/modules lib/modules none bind 0 0"
- "lxc.mount.entry=/openstack/instances var/lib/nova/instances none defaults,bind 0.0"
required_inner_dirs:
- "/var/lib/nova/instances"
- "/lib/modules"
required_outer_dirs:
- "/openstack/instances"
- "/lib/modules"
kernel_modules:
- nbd
- vhost_net
- ip6table_filter
- ip6_tables
- ipt_REJECT
- iptable_mangle
- ipt_MASQUERADE
- iptable_nat
- iptable_filter
- ip_tables
- nf_conntrack_ipv4
- nf_defrag_ipv4
- nf_nat_ipv4
- nf_nat
- nf_conntrack
- x_tables
- iscsi_tcp
- scsi_dh
- dm_multipath
- dm_snapshot
sysctl_options:
- { 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 }