Coder Social home page Coder Social logo

rhel-image's Introduction

RHEL Image Builder Role

License: GPLv2 License: GPLv3

A simple Ansible role for building RHEL images with Image Builder.

Quick Usage Example

This role builds custom RHEL images with RHEL Image Builder. The role uses a given image blueprint from a Git repository and stores results on the build host.

First, install this role:

mkdir roles
cat << EOF > roles/requirements.yml
---
roles:
  - src: https://github.com/myllynen/rhel-image.git
    type: git
    version: master
EOF
ansible-galaxy role install -p roles -r roles/requirements.yml

Next, on a blueprint repository customize an image blueprint:

vi base-image.toml
git commit -m "Update base-image" base-image.toml
git push

Then, create a playbook to use this role:

---
- name: Build RHEL image with Image Builder
  hosts: all
  become: true
  vars:
    create_user: false
    git_remote_repo: file:///tmp/rhel-image-blueprints.git
    git_repo_checkout: master
    image_blueprint: base-image
    image_size_kb: 20480
    image_output_type: qcow2
    image_download_dir: /tmp/images
  roles:
    - rhel-image

See defaults/main.yml for all the supported parameters.

Finally, build the image on a build host:

ansible-playbook -i 192.168.122.123, image_builder.yml

See Also

See also https://github.com/myllynen/ansible-packer.

See also https://github.com/myllynen/rhel-ansible-roles.

License

GPLv2+

rhel-image's People

Contributors

myllynen avatar ikke-t 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.