Compare commits
No commits in common. "a588f87fe6fcaaa4faa5c4ba57fb15c1aed2c4fe" and "e5755dd3d0ce60bd49d03971df088538bd956d35" have entirely different histories.
a588f87fe6
...
e5755dd3d0
@ -1 +0,0 @@
|
|||||||
* make interfaces.sh in ansible
|
|
@ -59,15 +59,9 @@ fi
|
|||||||
if [[ "${HOSTNAME}" =~ "compute" ]]; then
|
if [[ "${HOSTNAME}" =~ "compute" ]]; then
|
||||||
let hostpart='6'
|
let hostpart='6'
|
||||||
fi
|
fi
|
||||||
if [[ "${HOSTNAME}" =~ "storage1" ]]; then
|
if [[ "${HOSTNAME}" =~ "storage" ]]; then
|
||||||
let hostpart='7'
|
let hostpart='7'
|
||||||
fi
|
fi
|
||||||
if [[ "${HOSTNAME}" =~ "storage2" ]]; then
|
|
||||||
let hostpart='8'
|
|
||||||
fi
|
|
||||||
if [[ "${HOSTNAME}" =~ "storage3" ]]; then
|
|
||||||
let hostpart='9'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -z "${iface_mgmt}" ]]; then
|
if [[ ! -z "${iface_mgmt}" ]]; then
|
||||||
cat << EOF > ifcfg-br-mgmt
|
cat << EOF > ifcfg-br-mgmt
|
||||||
|
@ -9,18 +9,9 @@
|
|||||||
name: targetcli
|
name: targetcli
|
||||||
notify: enable_targetd
|
notify: enable_targetd
|
||||||
|
|
||||||
- name: Check if cinder_pv_device is set
|
|
||||||
stat:
|
|
||||||
path: "{{ cinder_pv_device | default('/dev/vdb') }}"
|
|
||||||
register: stat_cinder_pv_dev
|
|
||||||
|
|
||||||
- name: Create volume group for cinder
|
- name: Create volume group for cinder
|
||||||
lvg:
|
lvg:
|
||||||
pv_options: --metadatasize=2048
|
pv_options: --metadatasize=2048
|
||||||
pvs: "{{ cinder_pv_device | default('/dev/vdb') }}"
|
pvs: "{{ cinder_pv_device | default('/dev/vdb') }}"
|
||||||
vg: cinder-volumes
|
vg: cinder-volumes
|
||||||
when:
|
|
||||||
- stat_cinder_pv_dev.stat.exists
|
|
||||||
- stat.cinder_pv_device.stat.isblk
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user