Skip to content

Commit

Permalink
Merge branch 'gardouille-sysctl-protect-links-bookworm'
Browse files Browse the repository at this point in the history
  • Loading branch information
drybjed committed Jun 28, 2023
2 parents 86e2daa + 2096299 commit 9c38b20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,12 @@ debops.boxbackup role
- Fixed an issue in the configuration template that caused a templating type
error where Jinja expected a string but found an int value instead.

- The :file:`protect-links.conf` configuration file has been renamed to
:file:`99-protect-links.conf` file in Debian Bookworm; this is handled
conditionally in the role configuration. Users might need to remove the
:file:`/etc/sysctl.d/protect-links.conf` file generated by the role manually
on existing installations to fix this issue.

Removed
~~~~~~~

Expand Down
4 changes: 3 additions & 1 deletion ansible/roles/sysctl/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ sysctl__default_parameters:
# original file and regenerate it; the read-only parameters will be
# automatically commented out in unprivileged LXC containers.
- name: 'protect-links'
filename: 'protect-links.conf'
filename: '{{ "protect-links.conf"
if (ansible_distribution_release in ["stretch", "buster", "bullseye"])
else "99-protect-links.conf" }}'
divert: True
comment: |
Protected links
Expand Down

0 comments on commit 9c38b20

Please sign in to comment.