Created
July 17, 2015 04:30
-
-
Save jamesmartin/1a8ab1ae382f59ddea53 to your computer and use it in GitHub Desktop.
Redis Recipe — sysctl Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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