resolves issue https://github.com/rcbops/ansible-lxc-rpc/issues/161
This commit is contained in:
parent
5670d85efd
commit
ad9e75b7de
@ -15,3 +15,6 @@
|
||||
|
||||
- name: Restart sysstat
|
||||
service: name=sysstat state=restarted pattern=sysstat enabled=yes
|
||||
|
||||
- name: Restart irqbalance
|
||||
service: name=irqbalance state=restarted pattern=irqbalance enabled=yes
|
||||
|
20
rpc_deployment/roles/host_common/tasks/irqbalance.yml
Normal file
20
rpc_deployment/roles/host_common/tasks/irqbalance.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
# 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: Drop irqbalance default
|
||||
template:
|
||||
src: "irqbalance"
|
||||
dest: "/etc/default/irqbalance"
|
||||
notify: Restart irqbalance
|
@ -17,3 +17,4 @@
|
||||
- include: updatehostsfile.yml
|
||||
- include: authorized_keys.yml
|
||||
- include: kernel_modules.yml
|
||||
- include: irqbalance.yml
|
||||
|
9
rpc_deployment/roles/host_common/templates/ircbalance
Normal file
9
rpc_deployment/roles/host_common/templates/ircbalance
Normal file
@ -0,0 +1,9 @@
|
||||
#Configuration for the irqbalance daemon
|
||||
|
||||
#Should irqbalance be enabled?
|
||||
ENABLED="1"
|
||||
#Balance the IRQs only once?
|
||||
ONESHOT="0"
|
||||
|
||||
# Ignore hints
|
||||
OPTIONS="--hintpolicy=ignore"
|
Loading…
x
Reference in New Issue
Block a user