Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88fce62

Browse files
committed
Upgrade the kernel to 3.13.5. Defaults to no. [ci skip]
1 parent 320b144 commit 88fce62

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

group_vars/all

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ mtu: 9216
1010
# mandrill_username: your_username
1111
# mandrill_api_key: your_api_key
1212

13+
# Upgrade kernel to 3.13, much improved epoll performance
14+
upgrade_kernel: no
15+
1316
# Choose postgresql or mysql as hive metastore
14-
hive_metastore: postgresql
17+
hive_metastore: postgresql

roles/kernel/tasks/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# file: roles/kernel/tasks/main.yml
3+
4+
- name: download the latest kernel debian packages
5+
get_url: url={{ item }} dest=/tmp
6+
with_items:
7+
- http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.5-trusty/linux-headers-3.13.5-031305-generic_3.13.5-031305.201402221823_amd64.deb
8+
- http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.5-trusty/linux-image-3.13.5-031305-generic_3.13.5-031305.201402221823_amd64.deb
9+
- http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.5-trusty/linux-headers-3.13.5-031305_3.13.5-031305.201402221823_all.deb
10+
tags: kernel
11+
12+
- name: install the latest kernel
13+
command: chdir=/tmp dpkg -i linux-*.deb
14+
tags: kernel
15+
16+
- name: reboot after kernel upgrade
17+
shell: sleep 2s && /sbin/reboot &
18+
tags: kernel
19+
20+
- name: wait for the server to go down (reboot)
21+
sudo: false
22+
local_action: wait_for host={{ inventory_hostname }} port=22 state=stopped
23+
tags: kernel
24+
25+
- name: wait for the server to come up
26+
sudo: false
27+
local_action: wait_for host={{ inventory_hostname }} port=22 delay=30
28+
tags: kernel

site.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
user: ansibler
1111
sudo: true
1212
roles:
13+
- { role: kernel, when: upgrade_kernel }
1314
- common
1415
- { role: postfix_mandrill, when: notify_email is defined and postfix_domain is defined and mandrill_username is defined and mandrill_api_key is defined }
1516
- ganglia_monitor

0 commit comments

Comments
 (0)