Giter Site home page Giter Site logo

msaf1980 / ansible-role-pxeserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bertvv/ansible-role-pxeserver

0.0 1.0 0.0 31 KB

Ansible role to set up a PXE server on RHEL/CentOS 7

Home Page: https://galaxy.ansible.com/bertvv/pxeserver/

License: Other

Ruby 100.00%

ansible-role-pxeserver's Introduction

Ansible role pxeserver

An Ansible role for setting up a PXE boot server.

  • Install necessary packages
  • Configure and start necessary services (TFTP, DHCP, NFS)
  • Make installation images available to clients

This role will download the kernel(s) and initrd(s) that you want to boot, but the filesystem (that will be shared over NFS) is not set up automatically.

Requirements

No specific requirements

Role Variables

TODO

Variable Default Comment
pxeserver_directory pxelinux Subdirectory under TFTP root for PXE specific files
pxeserver_images [] List of dicts specifying PXEboot images to be served. See below.
pxeserver_ip ansible_default_ipv4.address IP address of the PXE server

You can specify the boot images to be served with the variable pxeserver_images, a dict containing the keys listed below. Keys are mandatory unless specified.

Key Value
name A unique identifier for the image
default When true, this image is chosen as the default. May be omitted.
kernel_url URL where to download the kernel image.
initrd_url URL where to download the initrd image.
kickstart_url URL where to download the kickstart file. May be omitted
kickstart_path Location where to copy the kickstart file from. May be omitted
label Label for the PXE boot menu entry of this image.

Dependencies

This role depends on:

Example Playbook

See the test playbook

Testing

The tests directory contains tests for this role in the form of a Vagrant environment. You should install the dependent roles

$ 
cd tests/
git clone ssh://[email protected]/msaf1980/ansible-role-tftp roles/msaf1980.tftp
git clone ssh://[email protected]/msaf1980/ansible-role-dhcp roles/msaf1980.dhcp
git clone ssh://[email protected]/msaf1980/ansible-role-nfsserver roles/msaf1980.nfsserver
$ vagrant up

The last command creates a new CentOS 7 VM and applies the playbook test.yml. This should result in a working PXE server.

Contributing

Issues, feature requests, ideas are appreciated and can be posted in the Issues section. Pull requests are also very welcome. Preferably, create a topic branch and when submitting, squash your commits into one (with a descriptive message).

License

BSD

Further reading

Author Information

Bert Van Vreckem ([email protected])

ansible-role-pxeserver's People

Contributors

bertvv avatar msaf1980 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.