Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two sysctl-settings #27

Merged
merged 2 commits into from
Jun 23, 2015
Merged

Fix two sysctl-settings #27

merged 2 commits into from
Jun 23, 2015

Conversation

rndmh3ro
Copy link
Member

arp_announce should be 2.
I commented out kernel.modules_disabled so it doesn't get set at all.

@@ -83,7 +83,7 @@ sysctl_config:
# This settings controls how the kernel behaves towards module changes at
# runtime. Setting to 1 will disable module loading at runtime.
# Setting it to 0 is actually never supported.
kernel.modules_disabled: 1
# kernel.modules_disabled: 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you commented this out? Is the default behavior 0?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests specify that this value should be zero:

  context linux_kernel_parameter('kernel.modules_disabled') do
    its(:value) { should eq 0 }
  end

However setting this variable to 0 with Ansible results in an error, because 0 is not supported. That's why I commented it out. The user has to enable the setting by himself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks for the clarification

chris-rock added a commit that referenced this pull request Jun 23, 2015
@chris-rock chris-rock merged commit 068e510 into master Jun 23, 2015
@chris-rock chris-rock deleted the sysctl_bugfix branch June 23, 2015 21:55
@chris-rock
Copy link
Member

Thanks for the fix @rndmh3ro

rndmh3ro pushed a commit that referenced this pull request Jul 24, 2020
Fix join-filter, jinja-cases, intendation
rndmh3ro added a commit that referenced this pull request Jul 24, 2020
Add CentOS7 with MariaDB support
rndmh3ro pushed a commit that referenced this pull request Jul 24, 2020
Closes: #26
Signed-off-by: Moritz Schlarb <moschlar@metalabs.de>
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this pull request Aug 3, 2022
Fix join-filter, jinja-cases, intendation
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this pull request Aug 3, 2022
Closes: dev-sec#26
Signed-off-by: Moritz Schlarb <moschlar@metalabs.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants