Closed mkristan closed 7 years ago
@mkristan Can you include the attributes you're setting so I can try to reproduce this. The standard test scenario runs fine on Amazon
From our attributes rb file: default['sysctl']['allow_sysctl_conf'] = true default['sysctl']['params']['kernel']['randomize_va_space'] = 2 default['sysctl']['params']['net']['ipv4']['conf']['all']['accept_redirects'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['all']['accept_source_route'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['all']['log_martians'] = 1 default['sysctl']['params']['net']['ipv4']['conf']['all']['send_redirects'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['all']['secure_redirects'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['all']['rp_filter'] = 1 default['sysctl']['params']['net']['ipv4']['conf']['all']['tcp_syncookies'] = 1 default['sysctl']['params']['net']['ipv4']['conf']['default']['rp_filter'] = 1 default['sysctl']['params']['net']['ipv4']['conf']['default']['accept_redirects'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['default']['accept_source_route'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['default']['log_martians'] = 1 default['sysctl']['params']['net']['ipv4']['conf']['default']['send_redirects'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['default']['secure_redirects'] = 0 default['sysctl']['params']['net']['ipv4']['conf']['tcp_syncookies'] = 1 default['sysctl']['params']['net']['ipv4']['icmp_echo_ignore_broadcasts'] = 1 default['sysctl']['params']['net']['ipv4']['icmp_ignore_bogus_error_responses'] = 1 default['sysctl']['params']['net']['ipv4']['tcp_max_syn_backlog'] = 4096 default['sysctl']['params']['fs']['suid_dumpable'] = 0
https://github.com/sous-chefs/sysctl/blob/master/libraries/helpers_param.rb#L23
@mkristan you can try and add a node attribute (node['sysctl']['conf_file']
)
@amitizle, thanks for the suggestion. I will give that a try and report back.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Cookbook version
0.10.0
Chef-client version
12.21.3
Platform Details
Amazon Linux 2017.03 on Amazon us-east-1
Scenario:
I was looking to apply sysctl parameters via attributes fs.suid_dumpable
Steps to Reproduce:
I upgraded the cookbook from 0.9.0 to 0.10.0
Expected Result:
I was expecting the sysctl parameters to be applied
Actual Result:
Recipe: sysctl::default