Skip to content

Commit

Permalink
Inject user provided nft rules
Browse files Browse the repository at this point in the history
This change ensures that user provided rules are injected
into the edpm_nftables_src directory and loaded during rule generation.

The change adds a new variable to facilitate a user interface for rule injection
edpm_nftables_user_rules.

Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Nov 18, 2024
1 parent 998ae17 commit fe86852
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/edpm_nftables/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
src: base-rules.yaml.j2
mode: "0644"

- name: Write user rules snippet
ansible.builtin.copy:
dest: "{{ edpm_nftables_src }}/edpm-nftables-user-rules.yaml"
content: "{{ edpm_nftables_user_rules }}"
mode: "0644"

- name: IPtables compatibility layout
become: true
block:
Expand Down

0 comments on commit fe86852

Please sign in to comment.