silvinux.manage-lvm
README.md
Ansible Role: manage-lvm 1.0
This role helps you create a disk partition, add it to a Volume Group (VG), create a Logical Volume (LV), mount the filesystem, and set permissions. You can use boolean options to turn features on or off.
Requirements
You need Ansible version 2.2 or later. Check the metadata file for platform requirements.
Role Variables
Here are the available variables and their default values:
Create Partition Table and Primary Disk Partition
Do you want to create a partition table or partition the disk?
partion_disk
: false
label
: msdos
Default Parted Optimization
parted_optimization
: optimal
Disk Partitioning - Whole Size
partitions
:
- {'partition_type': 'primary', 'start_point': '0%', 'end_point': '100%'}
Enable/Disable VG/LV Creation and Filesystem Management
create_vg
: false
create_lv
: false
fs_manage
: false
Load Profile for VG/LV
profile
: empty
Filesystem Type Based on RHEL Major Version
fstype_OS
: rhel7-xfs/rhel6-ext4/rhel5-ext3 - or set this with a variable
Example Profile
profile: list_name
list_name:
- device: "/dev/sdc"
pvname: "/dev/sdc1"
vgname: VolumeGroupNameVG
lvs:
- { lvname: fs01_lv, size: 60G, fstype: "{{ fstype_OS }}", mntpoint: "/fs01", user: user, group: user }
- { lvname: fs02_lv, size: 10G, fstype: "{{ fstype_OS }}", mntpoint: "/fs01/fs02", user: user, group: user }
Dependencies
This role does not depend on any other roles.
Example Playbook
- Create a filesystem structure for a WebLogic server.
- Create a filesystem structure for both WebLogic and Apache servers using this role twice.
License
GPLv3
Informazioni sul progetto
LVM management
Installa
ansible-galaxy install silvinux.manage-lvm
Licenza
Unknown
Download
84
Proprietario
I'm an IT freaky, that love to deploy (free software/ OpenSource) technologies in little projects at my home and this blog is a series of docs/manuals/guides