Skip to content
Permalink
Browse files

docs: added docs for boot-to-type

fixes: #23
  • Loading branch information...
grafuls committed Oct 7, 2019
1 parent bd3d2a2 commit 09ecddc9cbb9503222aaeb4e6899c1cf19a8f434
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
@@ -13,6 +13,7 @@
* [Enforcing an OpenStack Director-style interface order](#enforcing-an-openstack-director-style-interface-order)
* [Enforcing a Foreman-style interface order](#enforcing-a-foreman-style-interface-order)
* [Forcing a one time boot to a specific device](#forcing-a-one-time-boot-to-a-specific-device)
* [Forcing a one time boot to a specific type](#forcing-a-one-time-boot-to-a-specific-type)
* [Forcing a one-time boot to PXE](#forcing-a-one-time-boot-to-pxe)
* [Rebooting a System](#rebooting-a-system)
* [Power Cycling a System](#power-cycling-a-system)
@@ -97,6 +98,14 @@ To force systems to perform a one-time boot to a specific device you can use the

* Note: this will occur on the next reboot of the system, this command just stages a one-time boot.

### Forcing a one time boot to a specific type
To force systems to perform a one-time boot to a specific type you can use the ```--boot-to-type``` option and pass as an argument the device type of either foreman or director that you want the one-time boot to be set to. For this action you must also include the path to your interfaces yaml. This will change the one time boot BIOS attributes OneTimeBootMode and OneTimeBootSeqDev and on the next reboot it will attempt to PXE boot or boot from the first interface defined for that host type on the interfaces yaml file.
```
./badfish.py -H mgmt-your-server.example.com -u root -p yourpass -i config/idrac_interfaces.yml --boot-to-type foreman
```

* Note: this will occur on the next reboot of the system, this command just stages a one-time boot.

### Forcing a one-time boot to PXE
To force systems to perform a one-time boot to PXE, simply pass the ```--pxe``` flag to any of the commands above, by default it will pxe off the first available device for PXE booting.
```

0 comments on commit 09ecddc

Please sign in to comment.
You can’t perform that action at this time.