Adjust names of checking actions
This commit is contained in:
		| @@ -839,11 +839,11 @@ ipaddr=\$( ip -br address show \${target_interface} | awk '{ print \$3 }' | awk | |||||||
| bmc_macaddr=\$( ipmitool lan print | grep 'MAC Address  ' | awk '{ print \$NF }' ) | bmc_macaddr=\$( ipmitool lan print | grep 'MAC Address  ' | awk '{ print \$NF }' ) | ||||||
| bmc_ipaddr=\$( ipmitool lan print | grep 'IP Address  ' | awk '{ print \$NF }' ) | bmc_ipaddr=\$( ipmitool lan print | grep 'IP Address  ' | awk '{ print \$NF }' ) | ||||||
| if [[ -f /etc/pvc-install.hooks ]]; then | if [[ -f /etc/pvc-install.hooks ]]; then | ||||||
|     # The third boot, when all pvcprovisionerd hook plugins have been run (this script will henceforth do nothing) |     # The third boot, when all hooks have been completed | ||||||
|     action="system-boot_hooks-completed" |     action="system-boot_completed" | ||||||
| elif [[ -f /etc/pvc-install.base && -f /etc/pvc-install.pvc ]]; then | elif [[ -f /etc/pvc-install.base && -f /etc/pvc-install.pvc ]]; then | ||||||
|     # The second boot, when Ansible has been run and plugins running |     # The second boot, when Ansible has configured the cluster | ||||||
|     action="system-boot_ansible-completed" |     action="system-boot_configured" | ||||||
| else | else | ||||||
|     # The first boot, when Ansible has not been run yet |     # The first boot, when Ansible has not been run yet | ||||||
|     action="system-boot_initial" |     action="system-boot_initial" | ||||||
| @@ -853,7 +853,7 @@ curl -X POST \ | |||||||
|     -d "{\"action\":\"\${action}\",\"macaddr\":\"\${macaddr}\",\"ipaddr\":\"\${ipaddr}\",\"hostname\":\"\$( hostname -s )\",\"bmc_macaddr\":\"\${bmc_macaddr}\",\"bmc_ipaddr\":\"\${bmc_ipaddr}\"}" \ |     -d "{\"action\":\"\${action}\",\"macaddr\":\"\${macaddr}\",\"ipaddr\":\"\${ipaddr}\",\"hostname\":\"\$( hostname -s )\",\"bmc_macaddr\":\"\${bmc_macaddr}\",\"bmc_ipaddr\":\"\${bmc_ipaddr}\"}" \ | ||||||
|     \${pvcbootstrapd_checkin_uri} |     \${pvcbootstrapd_checkin_uri} | ||||||
|  |  | ||||||
| if [[ \${action} == "system-boot_hooks-completed" ]]; then | if [[ \${action} == "system-boot_completed" ]]; then | ||||||
|     # Clean up the bootstrap interface and this script |     # Clean up the bootstrap interface and this script | ||||||
|     rm /etc/network/interfaces.d/\${target_interface} |     rm /etc/network/interfaces.d/\${target_interface} | ||||||
|     rm \$0 |     rm \$0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user