Merge "Adds support for disks on HP Smart Array Controllers"
This commit is contained in:
commit
6a70eb04e5
@ -43,9 +43,9 @@
|
|||||||
shell: "{{ item }}"
|
shell: "{{ item }}"
|
||||||
when: data_disk_partitions.rc == 1 or bootstrap_host_data_disk_device_force | bool
|
when: data_disk_partitions.rc == 1 or bootstrap_host_data_disk_device_force | bool
|
||||||
with_items:
|
with_items:
|
||||||
- "parted --script /dev/{{ bootstrap_host_data_disk_device }} mklabel gpt"
|
- "parted --script /dev/{{ bootstrap_host_data_disk_device | regex_replace('!','/') }} mklabel gpt"
|
||||||
- "parted --align optimal --script /dev/{{ bootstrap_host_data_disk_device }} mkpart openstack-data1 ext4 0% 40%"
|
- "parted --align optimal --script /dev/{{ bootstrap_host_data_disk_device | regex_replace('!','/') }} mkpart openstack-data1 ext4 0% 40%"
|
||||||
- "parted --align optimal --script /dev/{{ bootstrap_host_data_disk_device }} mkpart openstack-data2 ext4 40% 100%"
|
- "parted --align optimal --script /dev/{{ bootstrap_host_data_disk_device | regex_replace('!','/') }} mkpart openstack-data2 ext4 40% 100%"
|
||||||
tags:
|
tags:
|
||||||
- create-data-disk-partitions
|
- create-data-disk-partitions
|
||||||
|
|
||||||
@ -55,8 +55,8 @@
|
|||||||
dev: "{{ item }}"
|
dev: "{{ item }}"
|
||||||
when: data_disk_partitions.rc == 1 or bootstrap_host_data_disk_device_force | bool
|
when: data_disk_partitions.rc == 1 or bootstrap_host_data_disk_device_force | bool
|
||||||
with_items:
|
with_items:
|
||||||
- "/dev/{{ bootstrap_host_data_disk_device }}1"
|
- "/dev/{{ bootstrap_host_data_disk_device | regex_replace('!(.*)$','/\\1p') }}1"
|
||||||
- "/dev/{{ bootstrap_host_data_disk_device }}2"
|
- "/dev/{{ bootstrap_host_data_disk_device | regex_replace('!(.*)$','/\\1p') }}2"
|
||||||
tags:
|
tags:
|
||||||
- format-data-partitions
|
- format-data-partitions
|
||||||
|
|
||||||
@ -67,7 +67,7 @@
|
|||||||
fstype: ext4
|
fstype: ext4
|
||||||
state: mounted
|
state: mounted
|
||||||
with_items:
|
with_items:
|
||||||
- { mount_point: /openstack, device: "/dev/{{ bootstrap_host_data_disk_device }}1"}
|
- { mount_point: /openstack, device: "/dev/{{ bootstrap_host_data_disk_device | regex_replace('!(.*)$','/\\1p') }}1"}
|
||||||
- { mount_point: /var/lib/lxc, device: "/dev/{{ bootstrap_host_data_disk_device }}2"}
|
- { mount_point: /var/lib/lxc, device: "/dev/{{ bootstrap_host_data_disk_device | regex_replace('!(.*)$','/\\1p') }}2"}
|
||||||
tags:
|
tags:
|
||||||
- mount-data-partitions
|
- mount-data-partitions
|
||||||
|
Loading…
Reference in New Issue
Block a user