Skip to content

TristanCacqueray/ansible-microshift-role

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Microshift service

This role deploys Microshift service on RHEL 8/9.

Example deployment

  • Install Ansible:
sudo dnf install -y ansible-core git
ansible-galaxy collection install community.general
ansible-galaxy collection install community.crypto
ansible-galaxy collection install ansible.posix
  • Clone Microshift Ansible role project
git clone https://github.com/openstack-k8s-operators/ansible-microshift-role
  • Create ansible config:
cat << EOF > ansible.cfg
[defaults]
roles_path = ./
force_handlers = True

[ssh_connection]
pipelining = True
EOF
  • Generate pull-secret.txt credentials

To deploy Microshift > 4.8, it requires to provide pull-secret.txt content. It can be generated here.

  • Create inventory:
cat << EOF > inventory.yaml
all:
  vars:
    openshift_pull_secret: |
      < HERE IS pull.secret.txt content >
  hosts:
    microshift.dev:
      ansible_port: 22
      ansible_host: 127.0.0.1
      ansible_user: centos
EOF
  • Create playbook:
cat << EOF > deploy-microshift.yaml
---
- hosts: microshift.dev
  vars:
    fqdn: microshift.dev
    use_copr_microshift: false
  roles:
    - ansible-microshift-role
EOF
  • Deploy Microshift:
ansible-playbook -i inventory.yaml deploy-microshift.yaml

About

Ansible role deploying microshift service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%