Skip to content

Commit 8ecab5b

Browse files
committed
Removed hardcoded ext4 fstype, possible to use xfs/btrfs
1 parent 907de50 commit 8ecab5b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

common/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
- ntp
2626
- expect
2727
- git
28+
- lvm2
29+
- xfsprogs
30+
- btrfs-progs

orahost/defaults/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
host_fs_layout: # Sets up filesystem on host. If storage_type=FS under oracle_databases, this is where the mapping between device/fs is described
6262
u01:
63-
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora}
63+
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora, fstype: ext4}
6464

6565
asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
6666
- crs
@@ -117,6 +117,9 @@
117117
- libXtst
118118
- ntp
119119
- ksh
120+
- lvm2
121+
- xfsprogs
122+
- btrfs-progs
120123

121124
oracle_sysconfig:
122125
- { name: kernel.shmall, value: 4294967296 }

orahost/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@
141141
tags: hostfs
142142

143143
- name: filesystem | create fs
144-
filesystem: fstype=ext4 dev=/dev/{{ item.value.vgname }}/{{ item.value.lvname }}
144+
filesystem: fstype={{ item.value.fstype }} dev=/dev/{{ item.value.vgname }}/{{ item.value.lvname }}
145145
with_dict: host_fs_layout
146146
when: configure_host_disks
147147
tags: hostfs
148148

149149
- name: filesytem | mount dir
150-
mount: name={{ item.value.mntp }} src=/dev/{{ item.value.vgname }}/{{ item.value.lvname }} dump=1 passno=2 fstype=ext4 state=mounted
150+
mount: name={{ item.value.mntp }} src=/dev/{{ item.value.vgname }}/{{ item.value.lvname }} dump=1 passno=2 fstype={{ item.value.fstype }} state=mounted
151151
with_dict: host_fs_layout
152152
when: configure_host_disks
153153
tags: hostfs

0 commit comments

Comments
 (0)