Role to install (by default) cni plugins on Debian/Ubuntu and EL systems to support Kubernetes Cluster setup.
None.
Available variables are listed below (located in defaults/main.yml
):
cni_app: cni
cni_version: 1.6.0
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'
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.6.0 |
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. |
None
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'
This role was created by Ali Muhammad