gantsign.minikube

Ansible Role: Minikube

Tests Ansible Galaxy License

This role helps you download and install Minikube, a tool for running Kubernetes on your local machine.

Requirements

  • Ansible Core version 2.12 or higher

  • Linux Operating System

    • Debian Family

      • Debian

        • Buster (10)
        • Bullseye (11)
        • Bookworm (12)
      • Ubuntu

        • Bionic (18.04)
        • Focal (20.04)
        • Jammy (22.04)
    • RedHat Family

      • Rocky Linux

        • 9
      • Fedora

        • 35
    • SUSE Family

      • openSUSE

        • 15.5
    • Note: Other versions may work but are not officially tested.

  • You need to have VirtualBox or Docker already installed.

Role Variables

These variables can change how the role behaves (default values are provided):

# Version of Minikube to install
minikube_version: '1.30.1'

# Directory for downloading Minikube files
minikube_download_dir: "{{ x_ansible_download_dir | default(ansible_facts.env.HOME + '/.ansible/tmp/downloads') }}"

Example Playbook

- hosts: servers
  roles:
    - role: gantsign.minikube

Tab Completion for Zsh

Using Ansible

For easy tab completion with Minikube, we suggest using the gantsign.antigen role (you need to set this up for each user).

- hosts: servers
  roles:
    - role: gantsign.minikube

    - role: gantsign.antigen
      users:
        - username: example
          antigen_libraries:
            - name: oh-my-zsh
          antigen_bundles:
            # Minikube plugin for Oh My Zsh
            - name: minikube

Using Antigen

If you want to use Antigen directly, add this to your Antigen config:

antigen use oh-my-zsh
antigen bundle minikube

Manual Configuration

For manual setup in Zsh, add this to your .zshrc file:

eval "$(minikube completion zsh)"

More Roles From GantSign

Find more roles from GantSign on Ansible Galaxy.

Development & Testing

This project uses several tools for development and testing:

  • Molecule for testing scenarios
  • Testinfra for remote testing
  • pytest as the testing framework
  • Tox for managing Python environments for linting and testing
  • pip-tools for managing dependencies

There’s a Visual Studio Code Dev Container available for development and testing.

License

MIT License

Author Information

John Freeman

GantSign Ltd. Company No. 06109112 (registered in England)

Informazioni sul progetto

Ansible role for downloading and installing Minikube.

Installa
ansible-galaxy install gantsign.minikube
Licenza
mit
Download
51k
Proprietario