This Ansible role will permits you to deploy with https://cloud.redhat.com a SNO.
- Ansible >= 2.10
- Terraform >= 1.2.6
Create auth.yml file :
Get offline token on https://console.redhat.com/openshift/token
---
snocp_offline_token: "xxxxxxxxxxxxxxxxxx"
snocp_ssh_pub: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
snocp_ssh_priv_path: "~/.ssh/id_rsa"
snocp_hcloud_token: "{{ lookup('env','HCLOUD_TOKEN') }}"
Export HCLOUD_TOKEN
Generate a token https://docs.hetzner.com/cloud/api/getting-started/generating-api-token/
$ export HCLOUD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx
Deploy SNO
$ ansible-playbook deploy_snocp.yml
Finish install on OCM URL given in ouput of Ansible Playbook
$ ansible-playbook deploy_snocp.yml -e snocp_tf_state=absent