added host kernel modules as well as packages which should be on all hosts.

added \n

ensures that the kernel modules required on all hosts are loaded

added modules that compute will need
This commit is contained in:
Kevin Carter 2014-09-10 08:21:27 -05:00
parent cfe01cb2a6
commit b98a7da443
5 changed files with 41 additions and 1 deletions

View File

@ -64,6 +64,13 @@ excluded_user_create:
- rabbitmq
## Kernel modules loaded on all hosts
host_kernel_modules:
- scsi_dh
- dm_multipath
- dm_snapshot
## Base Packages
apt_common_packages:
- vlan
@ -73,6 +80,9 @@ apt_common_packages:
- git-core
- rsyslog
- lvm2
- dmeventd
- libkmod-dev
- libkmod2
- libssl-dev
- bridge-utils
- cgroup-lite

View File

@ -89,4 +89,3 @@ container_packages:
- libkmod-dev
- libkmod2
- dmeventd

View File

@ -0,0 +1,27 @@
---
# 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.
- name: "Ensure kernel module(s)"
modprobe:
name: "{{ item }}"
with_items: host_kernel_modules
when: host_kernel_modules is defined
- name: "Ensure kernel module(s) loaded at boot"
lineinfile:
dest: /etc/modules
line: "{{ item }}"
with_items: host_kernel_modules
when: host_kernel_modules is defined

View File

@ -16,3 +16,4 @@
- include: sysstat.yml
- include: updatehostsfile.yml
- include: authorized_keys.yml
- include: kernel_modules.yml

View File

@ -50,6 +50,9 @@ kernel_modules:
- nf_conntrack
- x_tables
- iscsi_tcp
- scsi_dh
- dm_multipath
- dm_snapshot
sysctl_options:
- { key: 'net.ipv4.conf.all.rp_filter', value: 0 }