cni

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: cni

Role to install (by default) cni plugins on Debian/Ubuntu and EL systems to support Kubernetes Cluster setup.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables list:

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'

Variables table:

Variable Description
cni_app Defines the app to install i.e. cni
cni_version Defined to dynamically fetch the desired version to install. Defaults to: 1.5.1
cni_os Defines OS type. Defaults to: linux
cni_arch Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture. Defaults to: amd64
cni_dl_url Defines URL to download the cni binaries archive from.
cni_plugins_dir Defined to dynamically set the appropriate path to store cni binaries into.
cni_plugins_dir_mode Mode for the binaries file of cni.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of cni) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.cni

For customizing behavior of role (i.e. specifying the desired cni version) in ansible playbooks.

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

For customizing behavior of role (i.e. setting filemode for binaries of cni) in ansible playbooks.

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

License

MIT

Author Information

This role was created by Ali Muhammad

About

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

Install
ansible-galaxy install darkwizard242/ansible-role-cni
GitHub repository
License
mit
Downloads
11727
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!