{"action":"created","issue":{"url":"https://api.github.com/repos/sous-chefs/sysctl/issues/119","repository_url":"https://api.github.com/repos/sous-chefs/sysctl","labels_url":"https://api.github.com/repos/sous-chefs/sysctl/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/sous-chefs/sysctl/issues/119/comments","events_url":"https://api.github.com/repos/sous-chefs/sysctl/issues/119/events","html_url":"https://github.com/sous-chefs/sysctl/issues/119","id":301118758,"number":119,"title":"Undefined method `new_resource` for Custom resource sysctl_param from cookbook sysctl","user":{"login":"furbiesandbeans","id":929325,"avatar_url":"https://avatars2.githubusercontent.com/u/929325?v=4","gravatar_id":"","url":"https://api.github.com/users/furbiesandbeans","html_url":"https://github.com/furbiesandbeans","followers_url":"https://api.github.com/users/furbiesandbeans/followers","following_url":"https://api.github.com/users/furbiesandbeans/following{/other_user}","gists_url":"https://api.github.com/users/furbiesandbeans/gists{/gist_id}","starred_url":"https://api.github.com/users/furbiesandbeans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furbiesandbeans/subscriptions","organizations_url":"https://api.github.com/users/furbiesandbeans/orgs","repos_url":"https://api.github.com/users/furbiesandbeans/repos","events_url":"https://api.github.com/users/furbiesandbeans/events{/privacy}","received_events_url":"https://api.github.com/users/furbiesandbeans/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-28T17:44:36Z","updated_at":"2018-02-28T18:50:53Z","closed_at":"2018-02-28T18:50:53Z","author_association":"NONE","body":"### Cookbook version\r\n1.0.1\r\n\r\n### Chef-client version\r\n12.6.0\r\n\r\n### Platform Details\r\nUbuntu 14.04\r\n\r\n### Scenario:\r\nDisable swapiness\r\n\r\n### Steps to Reproduce:\r\nSet the following inside a recipe:\r\nsysctl_param 'vm.swappiness' do\r\n  value 0\r\nend\r\n\r\n### Expected Result:\r\nSwapiness set to 0, no errors\r\n\r\n### Actual Result:\r\n           ================================================================================\r\n           Error executing action `apply` on resource 'sysctl_param[vm.swappiness]'\r\n           ================================================================================\r\n           \r\n           NoMethodError\r\n           -------------\r\n           undefined method `new_resource' for Custom resource sysctl_param from cookbook sysctl\r\n           \r\n           Cookbook Trace:\r\n           ---------------\r\n           /tmp/kitchen/cache/cookbooks/sysctl/libraries/helpers.rb:5:in `set_sysctl_param'\r\n           /tmp/kitchen/cache/cookbooks/sysctl/resources/param.rb:56:in `block (2 levels) in class_from_file'\r\n           /tmp/kitchen/cache/cookbooks/sysctl/resources/param.rb:46:in `block in class_from_file'\r\n           /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'\r\n           /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'\r\n           /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'\r\n           /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'\r\n           /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'\r\n           \r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/verifi_mysql/recipes/files.rb\r\n           \r\n            58: sysctl_param 'vm.swappiness' do\r\n            59:   value 20\r\n            60: end\r\n           \r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cache/cookbooks/verifi_mysql/recipes/files.rb:58:in `from_file'\r\n           \r\n           sysctl_param(\"vm.swappiness\") do\r\n             action [:apply]\r\n             retries 0\r\n             retry_delay 2\r\n             default_guard_interpreter :default\r\n             declared_type :sysctl_param\r\n             cookbook_name \"verifi_mysql\"\r\n             recipe_name \"files\"\r\n             value \"20\"\r\n             key \"vm.swappiness\"\r\n             conf_dir \"/etc/sysctl.d\"\r\n           end\r\n"},"comment":{"url":"https://api.github.com/repos/sous-chefs/sysctl/issues/comments/369342628","html_url":"https://github.com/sous-chefs/sysctl/issues/119#issuecomment-369342628","issue_url":"https://api.github.com/repos/sous-chefs/sysctl/issues/119","id":369342628,"user":{"login":"damacus","id":40786,"avatar_url":"https://avatars1.githubusercontent.com/u/40786?v=4","gravatar_id":"","url":"https://api.github.com/users/damacus","html_url":"https://github.com/damacus","followers_url":"https://api.github.com/users/damacus/followers","following_url":"https://api.github.com/users/damacus/following{/other_user}","gists_url":"https://api.github.com/users/damacus/gists{/gist_id}","starred_url":"https://api.github.com/users/damacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damacus/subscriptions","organizations_url":"https://api.github.com/users/damacus/orgs","repos_url":"https://api.github.com/users/damacus/repos","events_url":"https://api.github.com/users/damacus/events{/privacy}","received_events_url":"https://api.github.com/users/damacus/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T18:50:53Z","updated_at":"2018-02-28T18:50:53Z","author_association":"OWNER","body":"It's actually in the metadata.rb file. \r\n\r\nGiven chef-client 12 is [going EOL in April](https://www.chef.io/eol-chef12-and-chefdk1/) I may just bump the chef-client version up to 13+.\r\n\r\nClosing for now. If you happen to find which version is works on drop us a line and we'll update the README and metadata.rb"}}
{"actor":{"display_login":"damacus"}}