Skip to content

Commit 6b2a70d

Browse files
committed
Initial support for EL7.
Changed 'service oracleasm <command> to '/etc/init.d/oracleasm' in orahost-storage/tasks/main.yml'
1 parent 0241bdf commit 6b2a70d

File tree

4 files changed

+10
-33
lines changed

4 files changed

+10
-33
lines changed

roles/orahost-storage/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
tags: asmlib
3636

3737
- name: ASMlib | Rescan ASM disks
38-
shell: service oracleasm scandisks
38+
shell: /etc/init.d/oracleasm scandisks
3939
when: device_persistence == 'asmlib'
4040
tags: asmlib
4141

4242
- name: ASMlib | List ASM disks
43-
shell: service oracleasm listdisks
43+
shell: /etc/init.d/oracleasm listdisks
4444
when: device_persistence == 'asmlib'
4545
register: listdisks
4646
tags: asmlib

roles/orahost/defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
asmlib_rpm: "{% if ansible_distribution_major_version|int==6%}{{asmlib_rpm_el6}}{%elif ansible_distribution_major_version|int==7 %}{{asmlib_rpm_el7}}{% else %}None{% endif %}"
5151
asmlib_rpm_el6: "http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm"
5252
asmlib_rpm_el7: "http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.12-1.el7.x86_64.rpm"
53+
asmlib_rpm_sles: "http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/sles12/amd64/2.1.8/oracleasm-support-2.1.8-1.SLE12.x86_64.rpm"
5354
#ol6_repo_file: public-yum-ol6.repo
5455
repo_dir: /etc/yum.repos.d/
5556

@@ -202,7 +203,7 @@
202203
oracle_asm_packages_sles:
203204
- oracleasm-kmp-default
204205
- oracleasm-kmp-xen
205-
- oracleasm-support
206+
- "{{ asmlib_rpm_sles }}"
206207

207208

208209

roles/orahost/tasks/Suse-12.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- name: Disable Transparent Hugepages (runtime)
2+
shell: if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi;
3+
tags: tphnuma

roles/orahost/tasks/main.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -253,36 +253,9 @@
253253
when: ansible_os_family == 'Suse'
254254
tags: seclimit
255255

256-
- name: Count number of kernel lines that needs to be changed (numa=off transparent_hugepage=never)
257-
shell: cat /etc/grub.conf | grep title |wc -l
258-
register: count
259-
tags: thpnuma
260-
261-
- name: Disable Transparent Hugepages (in grub.conf)
262-
lineinfile: dest=/etc/grub.conf
263-
backup=True
264-
backrefs=True
265-
state=present
266-
regexp='(^\s+kernel(\s+(?!transparent_hugepage=never)[\w=/\-\.]+)*)\s*$'
267-
line='\1 transparent_hugepage=never'
268-
with_sequence: start=0 end={{ count.stdout }}
269-
when: ansible_os_family == 'RedHat'
270-
tags: thpnuma
271-
272-
- name: Disable Numa (in grub.conf)
273-
lineinfile: dest=/etc/grub.conf
274-
backup=True
275-
backrefs=True
276-
state=present
277-
regexp='(^\s+kernel(\s+(?!numa=off)[\w=/\-\.]+)*)\s*$'
278-
line='\1 numa=off'
279-
with_sequence: start=0 end={{ count.stdout }}
280-
tags: thpnuma
281-
when: disable_numa_boot and ansible_os_family == 'RedHat'
282-
283-
- name: Disable Transparent Hugepages (runtime)
284-
shell: if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi;
285-
tags: tphnuma
256+
- include: "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
257+
#when: ansible_os_family == 'RedHat'
258+
286259

287260
- name: Network | Setup ip-address for RAC Interconnect
288261
template: src=ifcfg-eth1.j2 dest=/etc/sysconfig/network-scripts/ifcfg-eth1 owner=root mode=0644

0 commit comments

Comments
 (0)