Skip to content

Repository files navigation

insidegroup.ocp_ignition

MaintainerLicenseReleaseStatusAnsible GalaxyAnsible version

⭐ Star us on GitHub — it motivates us a lot!

Create ignition files to install Red Hat Openshift or OKD

Platforms Supported:

PlatformVersions
Ubuntufocal, jammy
Fedoraall

⚠️ Requirements

Ansible >= 2.9.

Ansible role dependencies

None.

⚡ Installation

Install with Ansible Galaxy

ansible-galaxy install insidegroup.ocp_ignition

Install with git

If you do not want a global installation, clone it into your roles_path.

git clone https://github.com/InsideCommunity/ocp_ignition.git insidegroup.ocp_ignition

But I often add it as a submodule in a given playbook_dir repository.

git submodule add https://github.com/InsideCommunity/ocp_ignition.git roles/insidegroup.ocp_ignition

As the role is not managed by Ansible Galaxy, you do not have to specify the github user account.

✏️ Example Playbook

Basic usage is:

- hosts: allroles:
- role: insidegroup.ocp_ignitionvars:
ocp_ignition_base_domain: example.comocp_ignition_butane_boot_device: {}ocp_ignition_butane_disabled: falseocp_ignition_butane_passwd: {}ocp_ignition_butane_storage:
files:
- contents:
inline: Ansible Generated file from ocp_ignition role provided by InsideGroup(www.insidegroup.fr)mode: 420path: /etc/ignition_example_filefilesystems:
- device: /dev/mapper/rootformat: xfswipe_filesystem: trueluks:
- device: /dev/disk/by-partlabel/rootkey_file:
inline: AZERTyuiopname: luks-rootocp_ignition_cluster_name: ocp4ocp_ignition_config_cluster_networks:
- cidr: 10.128.0.0/14hostPrefix: 23ocp_ignition_config_proxy: {}ocp_ignition_config_pull_secret: ''ocp_ignition_config_service_networks:
- 172.30.0.0/16ocp_ignition_config_ssh_key: ''ocp_ignition_config_trust_bundle: ''ocp_ignition_dest: /var/www/html/example/ignitionsocp_ignition_ocp_version: 4.12.0ocp_ignition_private_dest: /home/user/ignitionsocp_ignition_role: controlerocp_ignition_safe_mode: true

⚙️ Role Variables

Variables are divided in three types.

The default vars section shows you which variables you may override in your ansible inventory. As a matter of fact, all variables should be defined there for explicitness, ease of documentation as well as overall role manageability.

The context variables are shown in section below hint you on how runtime context may affects role execution.

Default variables

Role default variables from defaults/main.yml.

Variable NameValue
ocp_ignition_ocp_version4.12.0
ocp_ignition_safe_modeTrue
ocp_ignition_private_dest/home/user/ignitions
ocp_ignition_dest/var/www/html/example/ignitions
ocp_ignition_rolecontroler
ocp_ignition_cluster_nameocp4
ocp_ignition_base_domainexample.com
ocp_ignition_butane_disabledFalse
ocp_ignition_butane_storage[]
ocp_ignition_butane_passwd{}
ocp_ignition_butane_boot_device{}
ocp_ignition_config_proxy{}
ocp_ignition_config_trust_bundle
ocp_ignition_config_cluster_networks- cidr: 10.128.0.0/14
hostPrefix: 23
ocp_ignition_config_service_networks- 172.30.0.0/16
ocp_ignition_config_pull_secret
ocp_ignition_config_ssh_key

Focus on ocp_ignition_butane_storage if you needed to customize networking

# Should be defined in host_vars or both group_vars and host_varsocp_ignition_butane_storage:
files:
- contents:
inline: Ansible Generated file from ocp_ignition role provided by InsideGroup(www.insidegroup.fr)mode: 420path: /etc/ignition_example_filefilesystems:
- device: /dev/mapper/rootformat: xfswipe_filesystem: trueluks:
- device: /dev/disk/by-partlabel/rootkey_file:
inline: AZERTyuiopname: luks-root

Context variables

None.

©️ License

Author Information

Inside Group

👏 Special thanks

README generated with ansible-gendoc

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages