Merge pull request #101 from cloudnull/Issue99
Resolves Issue 99 which provides for lvm snapshots.
This commit is contained in:
commit
ff0d6e5b6a
@ -64,6 +64,13 @@ excluded_user_create:
|
|||||||
- rabbitmq
|
- rabbitmq
|
||||||
|
|
||||||
|
|
||||||
|
## Kernel modules loaded on all hosts
|
||||||
|
host_kernel_modules:
|
||||||
|
- scsi_dh
|
||||||
|
- dm_multipath
|
||||||
|
- dm_snapshot
|
||||||
|
|
||||||
|
|
||||||
## Base Packages
|
## Base Packages
|
||||||
apt_common_packages:
|
apt_common_packages:
|
||||||
- vlan
|
- vlan
|
||||||
@ -73,6 +80,9 @@ apt_common_packages:
|
|||||||
- git-core
|
- git-core
|
||||||
- rsyslog
|
- rsyslog
|
||||||
- lvm2
|
- lvm2
|
||||||
|
- dmeventd
|
||||||
|
- libkmod-dev
|
||||||
|
- libkmod2
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
- bridge-utils
|
- bridge-utils
|
||||||
- cgroup-lite
|
- cgroup-lite
|
||||||
|
@ -89,4 +89,3 @@ container_packages:
|
|||||||
- libkmod-dev
|
- libkmod-dev
|
||||||
- libkmod2
|
- libkmod2
|
||||||
- dmeventd
|
- dmeventd
|
||||||
|
|
||||||
|
27
rpc_deployment/roles/host_common/tasks/kernel_modules.yml
Normal file
27
rpc_deployment/roles/host_common/tasks/kernel_modules.yml
Normal 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
|
@ -16,3 +16,4 @@
|
|||||||
- include: sysstat.yml
|
- include: sysstat.yml
|
||||||
- include: updatehostsfile.yml
|
- include: updatehostsfile.yml
|
||||||
- include: authorized_keys.yml
|
- include: authorized_keys.yml
|
||||||
|
- include: kernel_modules.yml
|
||||||
|
@ -50,6 +50,9 @@ kernel_modules:
|
|||||||
- nf_conntrack
|
- nf_conntrack
|
||||||
- x_tables
|
- x_tables
|
||||||
- iscsi_tcp
|
- iscsi_tcp
|
||||||
|
- scsi_dh
|
||||||
|
- dm_multipath
|
||||||
|
- dm_snapshot
|
||||||
|
|
||||||
sysctl_options:
|
sysctl_options:
|
||||||
- { key: 'net.ipv4.conf.all.rp_filter', value: 0 }
|
- { key: 'net.ipv4.conf.all.rp_filter', value: 0 }
|
||||||
|
Loading…
Reference in New Issue
Block a user