blob: e31d712d4d23e8f17b31686f1f4035703e22288a (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
---
# file: roles/common/handlers/cimc.yaml
- name: Boot from network
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
<!-- Configure PXE boot -->
<configConfMo><inConfig>
<lsbootLan dn="sys/rack-unit-1/boot-policy/lan-read-only" access="read-only" order="1" prot="pxe" type="lan"/>
</inConfig></configConfMo>
delegate_to: localhost
tags: boot-network
- name: Boot from storage
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
<configConfMo><inConfig>
<lsbootStorage dn="sys/rack-unit-1/boot-policy/storage-read-write" access="read-write" order="1" type="storage"/>
</inConfig></configConfMo>
delegate_to: localhost
tags: boot-storage
- name: Power up server
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
<configConfMo><inConfig>
<computeRackUnit dn="sys/rack-unit-1" adminPower="up"/>
</inConfig></configConfMo>
delegate_to: localhost
tags: power-up
- name: Power down server
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
<configConfMo><inConfig>
<computeRackUnit dn="sys/rack-unit-1" adminPower="down"/>
</inConfig></configConfMo>
delegate_to: localhost
tags: power-down
- name: Power cycle server
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
<!-- Power cycle server -->
<configConfMo><inConfig>
<computeRackUnit dn="sys/rack-unit-1" adminPower="cycle-immediate"/>
</inConfig></configConfMo>
delegate_to: localhost
tags: power-cycle
|