diff options
author | Troy Dawson <tdawson@redhat.com> | 2015-06-25 11:29:42 -0500 |
---|---|---|
committer | Troy Dawson <tdawson@redhat.com> | 2015-06-25 11:29:42 -0500 |
commit | 0bd9aa5e06febf45030743d7322e66c850d0b290 (patch) | |
tree | 51cca2ac4b38a50810086cef4551c18f82fe355a /roles/openshift_expand_partition/tasks/main.yml | |
parent | 1bff88ee9b5cb52251454f01849831b4681229ff (diff) | |
parent | 9e05538cbfd593198b176b4fd4b8d0473a7f3a43 (diff) | |
download | openshift-0bd9aa5e06febf45030743d7322e66c850d0b290.tar.gz openshift-0bd9aa5e06febf45030743d7322e66c850d0b290.tar.bz2 openshift-0bd9aa5e06febf45030743d7322e66c850d0b290.tar.xz openshift-0bd9aa5e06febf45030743d7322e66c850d0b290.zip |
Merge pull request #306 from tdawson/2015-06-partition
Expand partition and filesystem to use entire disk.
Diffstat (limited to 'roles/openshift_expand_partition/tasks/main.yml')
-rw-r--r-- | roles/openshift_expand_partition/tasks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_expand_partition/tasks/main.yml b/roles/openshift_expand_partition/tasks/main.yml new file mode 100644 index 000000000..8bc399070 --- /dev/null +++ b/roles/openshift_expand_partition/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- name: Ensure growpart is installed + yum: pkg=cloud-utils-growpart state=present + +- name: Grow the partitions + command: "growpart {{oep_drive}} {{oep_partition}}" + +- name: Expand the filesystem - xfs + command: "xfs_growfs {{oep_drive}}{{oep_partition}}" + when: oep_file_system == "xfs" + +- name: Expand the filesystem - ext(2,3,4) + command: "resize2fs {{oep_drive}}{{oep_partition}}" + when: oep_file_system == "ext" |