Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role for PXE Server

Requirements

  • Ansible 2.0 or higher.
  • CentOS 6.x or CentOS 7.x

Requires Ansible modules:

  • apache

Usage

  1. Create the directory structure files/pxe/ks at the root of your ansible repo
  2. Place any kickstart files in files/pxe/ks with the extension .ks.
  3. Define at least one DHCP scope using the vars below. NOTE: One scope must match the network of an adapter on the system.
  4. Define any PXE boot images or entries.
  5. Include the pxe and apache roles in your playbook.

Role Variables

pxe_boot_title: "Build Server"

Title displayed on the boot menu

pxe_boot_images:
  - name: CentOS-7.5-x86_64
    base_dl_url: http://mirror.centos.org/centos-7/7/os/x86_64/images/pxeboot/

A list of dicts with PXE boot images to download and make available.

pxe_boot_entries:
  - label: CentOS-7.5-x86_64
    boot_image_name: CentOS-7.5-x86_64
    kickstart_name: ""
    append_options: ""

A list of dicts for PXE boot entries to populate the default pxeboot config file.

pxe_dhcp_scopes:
  - network:
    netmask:
    gateway:
    start_ip:
    end_ip:

A list of dicts to define DHCP scopes. If this is an empty list, the DHCP service won't be configured.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages