-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_capabilities.sh
54 lines (45 loc) · 2.1 KB
/
set_capabilities.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
source ~/stackrc
openstack flavor create \
--disk 40 --public --ram 4096 --vcpus 1 --rxtx-factor 1.0 \
--property capabilities:boot_option='local' \
--property capabilities:profile='control-leaf1' \
--property resources:CUSTOM_BAREMETAL='1' \
--property resources:DISK_GB='0' \
--property resources:MEMORY_MB='0' \
--property resources:VCPU='0' control-leaf1
openstack flavor create \
--disk 40 --public --ram 4096 --vcpus 1 --rxtx-factor 1.0 \
--property capabilities:boot_option='local' \
--property capabilities:profile='compute-leaf1' \
--property resources:CUSTOM_BAREMETAL='1' \
--property resources:DISK_GB='0' \
--property resources:MEMORY_MB='0' \
--property resources:VCPU='0' compute-leaf1
openstack flavor create \
--disk 40 --public --ram 4096 --vcpus 1 --rxtx-factor 1.0 \
--property capabilities:boot_option='local' \
--property capabilities:profile='compute-leaf2' \
--property resources:CUSTOM_BAREMETAL='1' \
--property resources:DISK_GB='0' \
--property resources:MEMORY_MB='0' \
--property resources:VCPU='0' compute-leaf2
openstack flavor create \
--disk 40 --public --ram 4096 --vcpus 1 --rxtx-factor 1.0 \
--property capabilities:boot_option='local' \
--property capabilities:profile='ceph-leaf2' \
--property resources:CUSTOM_BAREMETAL='1' \
--property resources:DISK_GB='0' \
--property resources:MEMORY_MB='0' \
--property resources:VCPU='0' ceph-leaf2
openstack baremetal node set \
--property capabilities='profile:control-leaf1,boot_option:local' baremetal-leaf1-0
openstack baremetal node set \
--property capabilities='profile:compute-leaf1,boot_option:local' baremetal-leaf1-1
openstack baremetal node set \
--property capabilities='profile:compute-leaf2,boot_option:local' baremetal-leaf2-0
openstack baremetal node set \
--property capabilities='profile:compute-leaf2,boot_option:local' baremetal-leaf2-1
# openstack baremetal node set \
# --property capabilities='profile:ceph-leaf2,boot_option:local' baremetal-leaf2-0
# openstack baremetal node set \
# --property capabilities='profile:ceph-leaf2,boot_option:local' baremetal-leaf2-1