Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samdoran/ansible-role-packer-rhel
Ansible role for creating CentOS and RHEL images with Packer
https://github.com/samdoran/ansible-role-packer-rhel
Last synced: 22 days ago
JSON representation
Ansible role for creating CentOS and RHEL images with Packer
- Host: GitHub
- URL: https://github.com/samdoran/ansible-role-packer-rhel
- Owner: samdoran
- Created: 2016-06-08T23:52:59.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T20:22:09.000Z (over 3 years ago)
- Last Synced: 2024-11-01T09:14:32.741Z (2 months ago)
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Packer RHEL
=========Configure a RHEL machine to be used as a Vagrant box. Configuration based on [Vagrant box documentation](https://www.vagrantup.com/docs/boxes/base.html).
This role will register with Red Hat, perform configuration and updates, then deregister.
Requirements
------------Current Red Hat subscription.
Red Hat username and password.Role Variables
--------------| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `packer_users` | [see `defaults/main.yml` | User accounts to create and passwords to set. |
| `rhsm_username` | `{{ lookup('env', 'RHSM_USERNAME') }}` | Red Hat Portal username. Looks for an environment variable by default. |
| `rhsm_password` | `{{ lookup('env', 'RHSM_PASSWORD') }}` | Red Hat Portal password. Looks for an environment variable by default. |
| `rhsm_pool_ids` | `{{ lookup('env', 'RHSM_POOL_ID }}` | Red Hat pool IDs to attach |
| `packer_services` | [see `defaults/main.yml`] | List of services and their state. |Dependencies
------------None.
Example Playbook
----------------Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: rhel
roles:
- samdoran.packer_rhelLicense
-------Apache 2.0