Skip to content

Instantly share code, notes, and snippets.

@jamesmartin
Created July 17, 2015 04:30
Show Gist options
  • Select an option

  • Save jamesmartin/1a8ab1ae382f59ddea53 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmartin/1a8ab1ae382f59ddea53 to your computer and use it in GitHub Desktop.
Redis Recipe — sysctl Error
Recipe Compile Error in /etc/chef-custom/recipes/cookbooks/main/recipes/default.rb
================================================================================
NameError
---------
Cannot find a resource for sysctl on gentoo version 2.1
Cookbook Trace:
---------------
/etc/chef-custom/recipes/cookbooks/redis/recipes/default.rb:9:in `from_file'
/etc/chef-custom/recipes/cookbooks/main/recipes/default.rb:2:in `from_file'
Relevant File Content:
----------------------
/etc/chef-custom/recipes/cookbooks/redis/recipes/default.rb:
2: # Cookbook Name:: redis
3: # Recipe:: default
4: #
5:
6: if ['util'].include?(node[:instance_role])
7: if node[:name] == 'redis'
8:
9>> sysctl "Enable Overcommit Memory" do
10: variables 'vm.overcommit_memory' => 1
11: end
12:
13: enable_package "dev-db/redis" do
14: version node[:redis][:version]
15: override_hardmask true
16: unmask :true
17: end
18:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment