Packer templates, associated scripts, and configuration for creating deployable OS images for MAAS.
See README.md in each directory for documentation on how to customize, build, and upload images.
OS | Maturity Level |
---|---|
CentOS 6 | EOL |
CentOS 7 | Stable |
CentOS 8 | EOL |
CentOS 8 Stream | Beta |
RHEL 7 | EOL |
RHEL 8 | Stable |
RHEL 9 | Beta |
Rocky 8 | Beta |
Rocky 9 | Beta |
SLES 12 | Beta |
SLES 15 | Beta |
Ubuntu | Stable |
VMWare ESXi 6 | EOL |
VMWare ESXi 7 | Stable |
- Templates marked as EOL are OSes that are no longer supported by the upstream maintainer, and are not recommended for new deployments. These systems don't receive security updates and mirrors can become permanently offline at any moment.
- Beta templates should work but we still don't have enough successful deployment reports to regard it as Stable.
All templates are configured to output to serial. Packer does not officially support serial output(GH:5). To see output run with PACKER_LOG=1.
If you wish to use a GUI modify each template as follows:
- Remove any boot_command line that contains "console" or "com1_Port"
- Remove ""-serial", "stdio"" from qemuargs. qemuargs may be removed as well if empty.
If you wish to use QEMU's UI also remove "headless": true
If you keep "headless": true you can connect using VNC. Packer will output the IP and port to connect to when run.
We welcome contributions of new templates.
The following is a set of guidelines for contributing to Packer MAAS. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
Each OS has it's own directory in the repository. The typical contents is:
- one or more HCL2 templates
- a
scripts
directory with auxiliary scripts required byprovisioner
andpost-processor
blocks - a
http
directory with auto-configuration files used by the OS installer - a
README.md
file describing- what is the target OS
- host requirements for building this template
- MAAS requirements for deploying the generated image
- description of each template (HCL2) file, including the use of all parameters defined by them
- step by step instruction to build it
- default login credentials for the image (if any)
- instructions for uploading this image to MAAS
- a
Makefile
to build the template
- Fork the project to your own GH account
- Create a local branch
- If you are contributing a new OS, create a new directory following the guidelines above
- If you are creating a new template for an already supported OS, just create a HCL2 file and add auxiliary files it requires to the appropriate directories
- Run
packer validate .
in the directory to check your template - Commit your changes and push the branch to your repository
- Open a Merge Request to packer-maas
- Wait for review