Commands:
rpm -Uvh chef-compliance-0.9.6-1.el6.x86_64.rpm
vi /opt/chef-compliance/embedded/cookbooks/sysctl/recipes/default.rb
At line 22 add the line node.default['sysctl']['conf_dir'] = '/etc/sysctl'
:
include_recipe 'sysctl::service'
node.default['sysctl']['conf_dir'] = '/etc/sysctl'
vi /opt/chef-compliance/embedded/cookbooks/enterprise/libraries/provider_component_runit_supervisor_sysvinit.rb
Insert the following line at line 8: provides :component_runit_supervisor, :platform => "suse"
vi /opt/chef-compliance/embedded/cookbooks/sysctl/recipes/service.rb
Insert the following resource block at line 25:
template '/etc/init.d/procps' do
source 'procps.init-suse.erb'
mode '0755'
only_if { platform_family?('suse') }
end
cp /opt/chef-compliance/embedded/cookbooks/sysctl/templates/default/procps.init-rhel.erb /opt/chef-compliance/embedded/cookbooks/sysctl/templates/default/procps.init-suse.erb
vi /opt/chef-compliance/embedded/cookbooks/sysctl/templates/default/procps.init-suse.erb
Make line 12 look like this: . /etc/sysconfig/network/scripts/functions
chef-compliance-ctl reconfigure
Ignore error: STDERR: /etc/init.d/procps: line 22: apply_sysctl: command not found
Run again: chef-compliance-ctl reconfigure
cd /etc/chef-compliance/; chown chef-compliance.chef-compliance *
cd /var/opt/chef-compliance; chown chef-compliance.chef-compliance core
chef-compliance-ctl reconfigure
cd /etc/chef-compliance/; chown chef-compliance.chef-compliance *
cd /var/opt/chef-compliance; chown chef-compliance.chef-compliance core
chef-compliance-ctl restart
chef-compliance-ctl user-create username 'password'