added ipmi
This commit is contained in:
parent
e237155a0f
commit
08d339f96a
|
@ -19,7 +19,7 @@ nodes network (LAN) (10.10.0.0/23) is on enp0s9
|
||||||
|
|
||||||
Nodes are configured from 10.10.0.100 and above
|
Nodes are configured from 10.10.0.100 and above
|
||||||
|
|
||||||
dhcp range is 10.10.1.1-10.10.1.250
|
dhcp range is 10.10.0.20-10.10.0.80
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,54 +1,54 @@
|
||||||
[all]
|
[all]
|
||||||
master ansible_host=10.10.0.1
|
master ansible_host=10.10.0.1 ipmi_host=10.10.1.1
|
||||||
|
|
||||||
[all:children]
|
[all:children]
|
||||||
nodes
|
nodes
|
||||||
|
|
||||||
[nodes]
|
[nodes]
|
||||||
node00 ansible_host=10.10.0.100
|
node00 ansible_host=10.10.0.100 ipmi_host=10.10.1.100
|
||||||
node01 ansible_host=10.10.0.101
|
node01 ansible_host=10.10.0.101 ipmi_host=10.10.1.101
|
||||||
node02 ansible_host=10.10.0.102
|
node02 ansible_host=10.10.0.102 ipmi_host=10.10.1.102
|
||||||
node03 ansible_host=10.10.0.103
|
node03 ansible_host=10.10.0.103 ipmi_host=10.10.1.103
|
||||||
node04 ansible_host=10.10.0.104
|
node04 ansible_host=10.10.0.104 ipmi_host=10.10.1.104
|
||||||
node05 ansible_host=10.10.0.105
|
node05 ansible_host=10.10.0.105 ipmi_host=10.10.1.105
|
||||||
node06 ansible_host=10.10.0.106
|
node06 ansible_host=10.10.0.106 ipmi_host=10.10.1.106
|
||||||
node07 ansible_host=10.10.0.107
|
node07 ansible_host=10.10.0.107 ipmi_host=10.10.1.107
|
||||||
node08 ansible_host=10.10.0.108
|
node08 ansible_host=10.10.0.108 ipmi_host=10.10.1.108
|
||||||
node09 ansible_host=10.10.0.109
|
node09 ansible_host=10.10.0.109 ipmi_host=10.10.1.109
|
||||||
node10 ansible_host=10.10.0.110
|
node10 ansible_host=10.10.0.110 ipmi_host=10.10.1.110
|
||||||
node11 ansible_host=10.10.0.111
|
node11 ansible_host=10.10.0.111 ipmi_host=10.10.1.111
|
||||||
node12 ansible_host=10.10.0.112
|
node12 ansible_host=10.10.0.112 ipmi_host=10.10.1.112
|
||||||
node13 ansible_host=10.10.0.113
|
node13 ansible_host=10.10.0.113 ipmi_host=10.10.1.113
|
||||||
node14 ansible_host=10.10.0.114
|
node14 ansible_host=10.10.0.114 ipmi_host=10.10.1.114
|
||||||
node15 ansible_host=10.10.0.115
|
node15 ansible_host=10.10.0.115 ipmi_host=10.10.1.115
|
||||||
node16 ansible_host=10.10.0.116
|
node16 ansible_host=10.10.0.116 ipmi_host=10.10.1.116
|
||||||
node17 ansible_host=10.10.0.117
|
node17 ansible_host=10.10.0.117 ipmi_host=10.10.1.117
|
||||||
node18 ansible_host=10.10.0.118
|
node18 ansible_host=10.10.0.118 ipmi_host=10.10.1.118
|
||||||
node19 ansible_host=10.10.0.119
|
node19 ansible_host=10.10.0.119 ipmi_host=10.10.1.119
|
||||||
node20 ansible_host=10.10.0.120
|
node20 ansible_host=10.10.0.120 ipmi_host=10.10.1.120
|
||||||
node21 ansible_host=10.10.0.121
|
node21 ansible_host=10.10.0.121 ipmi_host=10.10.1.121
|
||||||
node22 ansible_host=10.10.0.122
|
node22 ansible_host=10.10.0.122 ipmi_host=10.10.1.122
|
||||||
node23 ansible_host=10.10.0.123
|
node23 ansible_host=10.10.0.123 ipmi_host=10.10.1.123
|
||||||
node24 ansible_host=10.10.0.124
|
node24 ansible_host=10.10.0.124 ipmi_host=10.10.1.124
|
||||||
node25 ansible_host=10.10.0.125
|
node25 ansible_host=10.10.0.125 ipmi_host=10.10.1.125
|
||||||
node26 ansible_host=10.10.0.126
|
node26 ansible_host=10.10.0.126 ipmi_host=10.10.1.126
|
||||||
node27 ansible_host=10.10.0.127
|
node27 ansible_host=10.10.0.127 ipmi_host=10.10.1.127
|
||||||
node28 ansible_host=10.10.0.128
|
node28 ansible_host=10.10.0.128 ipmi_host=10.10.1.128
|
||||||
node29 ansible_host=10.10.0.129
|
node29 ansible_host=10.10.0.129 ipmi_host=10.10.1.129
|
||||||
node30 ansible_host=10.10.0.130
|
node30 ansible_host=10.10.0.130 ipmi_host=10.10.1.130
|
||||||
node31 ansible_host=10.10.0.131
|
node31 ansible_host=10.10.0.131 ipmi_host=10.10.1.131
|
||||||
node32 ansible_host=10.10.0.132
|
node32 ansible_host=10.10.0.132 ipmi_host=10.10.1.132
|
||||||
node33 ansible_host=10.10.0.133
|
node33 ansible_host=10.10.0.133 ipmi_host=10.10.1.133
|
||||||
node34 ansible_host=10.10.0.134
|
node34 ansible_host=10.10.0.134 ipmi_host=10.10.1.134
|
||||||
node35 ansible_host=10.10.0.135
|
node35 ansible_host=10.10.0.135 ipmi_host=10.10.1.135
|
||||||
node36 ansible_host=10.10.0.136
|
node36 ansible_host=10.10.0.136 ipmi_host=10.10.1.136
|
||||||
node37 ansible_host=10.10.0.137
|
node37 ansible_host=10.10.0.137 ipmi_host=10.10.1.137
|
||||||
node38 ansible_host=10.10.0.138
|
node38 ansible_host=10.10.0.138 ipmi_host=10.10.1.138
|
||||||
node39 ansible_host=10.10.0.139
|
node39 ansible_host=10.10.0.139 ipmi_host=10.10.1.139
|
||||||
node40 ansible_host=10.10.0.140
|
node40 ansible_host=10.10.0.140 ipmi_host=10.10.1.140
|
||||||
node41 ansible_host=10.10.0.141
|
node41 ansible_host=10.10.0.141 ipmi_host=10.10.1.141
|
||||||
node42 ansible_host=10.10.0.142
|
node42 ansible_host=10.10.0.142 ipmi_host=10.10.1.142
|
||||||
node43 ansible_host=10.10.0.143
|
node43 ansible_host=10.10.0.143 ipmi_host=10.10.1.143
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
BIN
ansible-ctdo/roles/ipmi/files/IPMICFG_1.30.0_build.190710/Linux/64bit/GenEvt.dat
Executable file
BIN
ansible-ctdo/roles/ipmi/files/IPMICFG_1.30.0_build.190710/Linux/64bit/GenEvt.dat
Executable file
Binary file not shown.
Binary file not shown.
BIN
ansible-ctdo/roles/ipmi/files/IPMICFG_1.30.0_build.190710/Linux/64bit/MBType.dat
Executable file
BIN
ansible-ctdo/roles/ipmi/files/IPMICFG_1.30.0_build.190710/Linux/64bit/MBType.dat
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,117 @@
|
||||||
|
-m Show IP and MAC.
|
||||||
|
-m IP Set IP (format: ###.###.###.###).
|
||||||
|
-a MAC Set MAC (format: ##:##:##:##:##:##).
|
||||||
|
-k Show Subnet Mask.
|
||||||
|
-k Mask Set Subnet Mask (format: ###.###.###.###).
|
||||||
|
-dhcp Get the DHCP status.
|
||||||
|
-dhcp on Enable the DHCP.
|
||||||
|
-dhcp off Disable the DHCP.
|
||||||
|
-g Show Gateway IP.
|
||||||
|
-g IP Set Gateway IP (format: ###.###.###.###).
|
||||||
|
-r BMC cold reset.
|
||||||
|
option: -d | Detected IPMI device for BMC reset.
|
||||||
|
-garp on Enable the Gratuitous ARP.
|
||||||
|
-garp off Disable the Gratuitous ARP.
|
||||||
|
-fd Reset to the factory default.
|
||||||
|
option: -d | Detected IPMI device for BMC reset.
|
||||||
|
-fdl Reset to the factory default. (Clean LAN)
|
||||||
|
option: -d | Detected IPMI device for BMC reset.
|
||||||
|
-fde Reset to the factory default. (Clean FRU & LAN)
|
||||||
|
option: -d | Detected IPMI device for BMC reset.
|
||||||
|
-ver Get Firmware revision.
|
||||||
|
-vlan Get VLAN status.
|
||||||
|
-vlan on <vlan tag> Enable the VLAN and set the VLAN tag.
|
||||||
|
If VLANtag is not given it uses previously saved value.
|
||||||
|
-vlan off Disable the VLAN.
|
||||||
|
-selftest Checking and reporting on the basic health of BMC.
|
||||||
|
-raw Send a RAW IPMI request and print response.
|
||||||
|
Format: NetFn Cmd [Data1 ... DataN]
|
||||||
|
-fru info Show FRU inventory area Info.
|
||||||
|
-fru list Show all FRU values.
|
||||||
|
-fru cthelp Show chassis type code.
|
||||||
|
-fru help Show help of FRU Write.
|
||||||
|
-fru <field> Show FRU field value.
|
||||||
|
-fru <field> <value> Write FRU.
|
||||||
|
-fru 1m Update Product-Manufacturer from DMITable to IPMI FRU.
|
||||||
|
-fru 1p Update Product-Product Name from DMITable to IPMI FRU.
|
||||||
|
-fru 1s Update Product-S/N from DMITable to IPMI FRU.
|
||||||
|
-fru 2m Update Board-Manufacturer from DMITable to IPMI FRU.
|
||||||
|
-fru 2p Update Board-Product Name from DMITable to IPMI FRU.
|
||||||
|
-fru 2s Update Board-S/N from DMITable to IPMI FRU.
|
||||||
|
-fru 3s Update Chassis-S/N from DMITable to IPMI FRU.
|
||||||
|
-fru backup <file> Backup FRU to file <Binary format>.
|
||||||
|
-fru restore <file> Restore FRU from file <Binary format>.
|
||||||
|
-fru tbackup <file> Backup FRU to file <Text format>.
|
||||||
|
-fru trestore <file> Restore FRU from file <Text format>.
|
||||||
|
-fru ver <v1> <v2> Get/Set FRU version. (v1 v2 are BCD format)
|
||||||
|
-sel info Show SEL info.
|
||||||
|
-sel list Show SEL records.
|
||||||
|
-sel del Delete all SEL records.
|
||||||
|
-sel raw Show SEL raw data.
|
||||||
|
-sdr [full] Show SDR records and reading.
|
||||||
|
-sdr del <sdr id> Delete SDR record.
|
||||||
|
-sdr ver <v1> <v2> Get/Set SDR version. (v1 v2 are BCD format)
|
||||||
|
-nm nmsdr Display NM SDR.
|
||||||
|
-nm seltime Get SEL time.
|
||||||
|
-nm deviceid Get ME Device ID.
|
||||||
|
-nm reset Reboots ME.
|
||||||
|
-nm reset2default Force ME reset to Default.
|
||||||
|
-nm updatemode Force ME to Update Mode.
|
||||||
|
-nm selftest Get Self Test Results.
|
||||||
|
-nm listimagesinfo List ME Images information.
|
||||||
|
-nm oemgetpower OEM Power command for ME.
|
||||||
|
-nm oemgettemp OEM Temp. command for ME.
|
||||||
|
-nm pstate Get Max allowed CPU P-State.
|
||||||
|
-nm tstate Get Max allowed CPU T-State.
|
||||||
|
-nm cpumemtemp Get CPU/Memory temperature.
|
||||||
|
-nm hostcpudata Get host CPU data.
|
||||||
|
-fan Get Fan Mode.
|
||||||
|
-fan <mode> Set Fan Mode.
|
||||||
|
-pminfo [full] Power supply PMBus health.
|
||||||
|
-psfruinfo Power supply FRU health.
|
||||||
|
-psbbpinfo Battery backup power status.
|
||||||
|
-autodischarge Set auto discharge by days.
|
||||||
|
<module> <day>
|
||||||
|
-discharge <module> Manually discharge battery.
|
||||||
|
-user list List user privilege information.
|
||||||
|
-user help Show user privilege code.
|
||||||
|
-user add <user id> Add user.
|
||||||
|
<name> <password>
|
||||||
|
<privilege>
|
||||||
|
-user del <user id> Delete user.
|
||||||
|
-user level <user id> Update user privilege.
|
||||||
|
<privilege>
|
||||||
|
-user setpwd Update user password.
|
||||||
|
<user id> <password>
|
||||||
|
-conf upload <file> Upload IPMI configuration form binary file.
|
||||||
|
<option> option: -p | Bypass warning message.
|
||||||
|
-conf download <file> Download IPMI configuration to binary file.
|
||||||
|
-conf tupload <file> Upload IPMI configuration from text file.
|
||||||
|
<option> option: -p | Bypass warning message.
|
||||||
|
-conf tdownload Download IPMI configuration to text file.
|
||||||
|
<file>
|
||||||
|
-clrint Clear chassis intrusion.
|
||||||
|
-reset <index> Reset System and force to boot from device.
|
||||||
|
-soft <index> Initiate a soft-shutdown for OS and force to boot from
|
||||||
|
device.
|
||||||
|
-ipv6 mode Show IPv6 mode.
|
||||||
|
-ipv6 mode <mode> Set IPv6 mode.
|
||||||
|
-ipv6 autoconfig Show IPv6 auto configuration.
|
||||||
|
-ipv6 autoconfig on Enable IPv6 auto configuration.
|
||||||
|
-ipv6 autoconfig off Disable IPv6 auto configuration.
|
||||||
|
-ipv6 list List IPv6 static address.
|
||||||
|
-ipv6 duid Show IPv6 DUID.
|
||||||
|
-ipv6 dns [IPv6 addr] Get/Set IPv6 DNS server.
|
||||||
|
-ipv6 add <id> Add IPv6 static address.
|
||||||
|
<IPv6 addr> <prefix>
|
||||||
|
-ipv6 remove <id> Remove IPv6 static address.
|
||||||
|
-ipv6 route Display IPv6 static route.
|
||||||
|
-ipv6 route on Enable IPv6 static route.
|
||||||
|
-ipv6 route off Disable IPv6 static route.
|
||||||
|
-ipv6 route list List IPv6 static router info.
|
||||||
|
-ipv6 route <id> Set IPv6 static router information.
|
||||||
|
<prefix value>
|
||||||
|
<prefix length>
|
||||||
|
<IPv6 addr>
|
||||||
|
-ipv6 route clear Clear IPv6 static router information.
|
||||||
|
<id>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,30 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Copy IPMIcfg
|
||||||
|
copy:
|
||||||
|
src: files/IPMICFG_1.30.0_build.190710/Linux/64bit
|
||||||
|
dest: /opt/
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0700'
|
||||||
|
|
||||||
|
|
||||||
|
- name: install ipmi
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- ipmitool
|
||||||
|
|
||||||
|
- name: configure ipmi disable dhcp
|
||||||
|
command: /opt/64bit/IPMICFG-Linux.x86_64 -dhcp off
|
||||||
|
|
||||||
|
- name: configure ipmi ip
|
||||||
|
command: /opt/64bit/IPMICFG-Linux.x86_64 -m {{ipmi_host}}
|
||||||
|
|
||||||
|
- name: configure ipmi netmask
|
||||||
|
command: /opt/64bit/IPMICFG-Linux.x86_64 -k 255.255.254.0
|
||||||
|
|
||||||
|
- name: configure ipmi gw
|
||||||
|
command: /opt/64bit/IPMICFG-Linux.x86_64 -g 10.10.0.1
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
- { role: base, tags: 'base' }
|
- { role: base, tags: 'base' }
|
||||||
- { role: authkeys, tags: 'authkeys', group: 'admins' }
|
- { role: authkeys, tags: 'authkeys', group: 'admins' }
|
||||||
- { role: dj-wasabi.telegraf, tags: 'telegraf', become: yes }
|
- { role: dj-wasabi.telegraf, tags: 'telegraf', become: yes }
|
||||||
|
- { role: ipmi, tags: 'ipmi' }
|
||||||
remote_user: debian
|
remote_user: debian
|
||||||
become_method: su
|
become_method: su
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -9,7 +9,7 @@ authoritative;
|
||||||
#filename "pxelinux.0";
|
#filename "pxelinux.0";
|
||||||
|
|
||||||
subnet 10.10.0.0 netmask 255.255.254.0 {
|
subnet 10.10.0.0 netmask 255.255.254.0 {
|
||||||
range 10.10.1.1 10.10.1.250;
|
range 10.10.0.20 10.10.0.80;
|
||||||
option routers 10.10.0.1;
|
option routers 10.10.0.1;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue