Skip to content

Commit

Permalink
Merge pull request #2 from T-Systems-MMS/add-custom-sysctl-conf-flag
Browse files Browse the repository at this point in the history
add flag for ignoring errors related to sysctl configuration
  • Loading branch information
soer3n authored Nov 5, 2021
2 parents fa9e4b1 + 672df74 commit d1efad9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All variables are also listed in default values.
| cni_plugin_dir | yes | /opt/cni/bin | directory where downloaded file and plugins are stored
| cni_plugin_release_url | yes | https://github.com/containernetworking/plugins/releases/download | Release url for cni plugins
| cni_plugin_release_version | yes | v1.0.1 | Version of cni-plugins
| cni_plugin_sysctl_ignore_unknown_keys | no | false | Whether unknown keys in sysctl.conf are allowed

## Dependencies

Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
cni_plugin_dir: /opt/cni/bin
cni_plugin_release_version: v1.0.1
cni_plugin_release_url: https://github.com/containernetworking/plugins/releases/download
cni_plugin_sysctl_ignore_unknown_keys: false
1 change: 1 addition & 0 deletions tasks/linux/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
state: present
value: 1
reload: true
ignoreerrors: "{{ cni_plugin_sysctl_ignore_unknown_keys | bool }}"
with_items:
- net.bridge.bridge-nf-call-iptables
- net.bridge.bridge-nf-call-arptables
Expand Down

0 comments on commit d1efad9

Please sign in to comment.