![Gitter](https://badges.gitter.im/Join Chat.svg)
PXE boot cookbook.
- Depends on apt cookbook.
- Depends on yum cookbook.
- Depends on tftp cookbook.
- Depends on apache2 cookbook.
Supported systems:
- Ubuntu 12.04
- Ubuntu 14.04
- Centos 6.5
Key | Type | Description | Value |
---|---|---|---|
default['dhcp']['eth'] | text | Ethernet adapter name for dhcp server. | E.g "eth1" |
default['dhcp']['configs']['subnet'] | text | Subnet IP | E.g. '192.168.56.0' |
default['dhcp']['configs']['routers'] | text | IP of dhcp router | E.g. '192.168.56.5' |
default['dhcp']['configs']['next_server'] | text | IP that points to TFTPD server | E.g. "192.168.56.5" |
default['dhcp']['configs']['dynamic_range'] | text | Range of IP for clients | E.g. "192.168.56.100 192.168.56.200" |
default['dhcp']['configs']['subnet_mask'] | text | Subnet mask | E.g. "255.255.255.0" |
default['download']['default_image'] | boolean | Prepare default PXE netboot image. True will download a minimal centos. | true/false |
default['pxe']['hostname'] | text | IP or hostname for apache virtual host | E.g. "192.168.56.5" |
- Complete the documentation.
Include pxe
in your node's run_list
:
{
"run_list": [
"recipe[pxe::default]"
]
}
If you have a restrict access to internet, change attribute value
default['download']['from_web'] = 'false'
.
Then put downloaded by yourself CentOS 6.5 minimal image to files, to be able import ISO as a default netboot image.
To download an iso, please use the files/default/centos_minimal_dl.sh
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Denis Chekirda ([email protected])