darkwizard242.cni

Ansible Role: cni

This Ansible role installs CNI plugins on Debian/Ubuntu and EL systems to help set up a Kubernetes cluster.

Requirements

No special requirements.

Role Variables

Below are the available variables (found in defaults/main.yml):

List of Variables:

cni_app: cni
cni_version: 1.5.1
cni_os: linux
cni_arch: amd64
cni_dl_url: "https://github.com/containernetworking/plugins/releases/download/v{{ cni_version }}/cni-plugins-{{ cni_os }}-{{ cni_arch }}-v{{ cni_version }}.tgz"
cni_plugins_dir: /opt/cni/bin
cni_plugins_dir_mode: '0755'

Description of Variables:

Variable Description
cni_app The application to install, which is cni.
cni_version The version of CNI to install. Default is 1.5.1.
cni_os The operating system type. Default is linux.
cni_arch The architecture of the operating system, used to download the right binaries. Default is amd64.
cni_dl_url The URL from which to download the CNI binaries archive.
cni_plugins_dir The path where the CNI binaries will be stored.
cni_plugins_dir_mode The permission mode for the CNI binary files.

Dependencies

None.

Example Playbook

To use the role with its default behavior (installing cni):

- hosts: servers
  roles:
    - darkwizard242.cni

To customize the role's behavior (like specifying a different cni version):

- hosts: servers
  roles:
    - darkwizard242.cni
  vars:
    cni_version: 1.0.0

To change the file mode for the CNI binaries:

- hosts: servers
  roles:
    - darkwizard242.cni
  vars:
    cni_plugins_dir_mode: '0775'

License

MIT

Author Information

This role was created by Ali Muhammad

Informazioni sul progetto

Installs/Uninstalls CNI, i.e. Container Network Interface plugins.

Installa
ansible-galaxy install darkwizard242.cni
Licenza
mit
Download
14.3k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!