Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antmelekhin/ansible-role-cni-plugins
An Ansible role to install and configure CNI (Container Network Interface) plugins.
https://github.com/antmelekhin/ansible-role-cni-plugins
ansible ansible-role cni containers debian docker k8s kubernetes networking rhel
Last synced: about 2 months ago
JSON representation
An Ansible role to install and configure CNI (Container Network Interface) plugins.
- Host: GitHub
- URL: https://github.com/antmelekhin/ansible-role-cni-plugins
- Owner: antmelekhin
- License: mit
- Created: 2023-04-02T15:07:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-30T18:29:45.000Z (about 2 months ago)
- Last Synced: 2024-11-30T19:28:25.574Z (about 2 months ago)
- Topics: ansible, ansible-role, cni, containers, debian, docker, k8s, kubernetes, networking, rhel
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/antmelekhin/cni_plugins/
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
CNI plugins
===========An Ansible role to install and configure CNI (Container Network Interface) [plugins](https://github.com/containernetworking/plugins).
Requirements
------------- Supported version of Ansible: 2.12 and higher. Systems with Python versions below than 3.7 are not compatible with ansible-core 2.17 (see [ansible/ansible#83357](https://github.com/ansible/ansible/issues/83357#issuecomment-2150254754)).
- Supported platforms:
- Debian
- 10
- 11
- 12
- Fedora
- 39
- 40
- RHEL
- 7
- 8
- 9
- Ubuntu
- 18.04
- 20.04
- 22.04Role Variables
--------------All variables that can be overridden are stored in the [defaults/main.yml](https://github.com/antmelekhin/ansible-role-cni-plugins/blob/main/defaults/main.yml) file.
Please refer to the [meta/argument_specs.yml](https://github.com/antmelekhin/ansible-role-cni-plugins/blob/main/meta/argument_specs.yml) file for a description of the available variables.
Similarly, descriptions and defaults for preset variables can be found in the [vars/main.yml](https://github.com/antmelekhin/ansible-role-cni-plugins/blob/main/vars/main.yml) file.Dependencies
------------None.
Example Playbook
----------------Install CNI plugins:
```yaml
---
- name: 'Install CNI plugins'
hosts: allroles:
- role: antmelekhin.cni_plugins
```Install CNI plugins and configure bridge interface:
```yaml
---
- name: 'Install CNI plugins'
hosts: allroles:
- role: antmelekhin.cni_plugins
cni_plugins_config_files:
- filename: '10-bridge.conf'
content:
cniVersion: '0.3.1'
name: 'mynet'
type: 'bridge'
bridge: 'mynet0'
isDefaultGateway: true
forceAddress: false
ipMasq: true
hairpinMode: true
ipam:
type: 'host-local'
subnet: '10.10.0.0/16'
```License
-------MIT
Author Information
------------------Melekhin Anton.