{"action":"created","issue":{"url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl/issues/6","repository_url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl","labels_url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl/issues/6/comments","events_url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl/issues/6/events","html_url":"https://github.com/hercules-team/augeasproviders_sysctl/issues/6","id":138002389,"number":6,"title":"The sysctl type should have a :silent option","user":{"login":"trevor-vaughan","id":4982601,"avatar_url":"https://avatars.githubusercontent.com/u/4982601?v=3","gravatar_id":"","url":"https://api.github.com/users/trevor-vaughan","html_url":"https://github.com/trevor-vaughan","followers_url":"https://api.github.com/users/trevor-vaughan/followers","following_url":"https://api.github.com/users/trevor-vaughan/following{/other_user}","gists_url":"https://api.github.com/users/trevor-vaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-vaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-vaughan/subscriptions","organizations_url":"https://api.github.com/users/trevor-vaughan/orgs","repos_url":"https://api.github.com/users/trevor-vaughan/repos","events_url":"https://api.github.com/users/trevor-vaughan/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-vaughan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-02T21:47:54Z","updated_at":"2016-03-14T16:40:41Z","closed_at":"2016-03-14T14:45:40Z","body":"In some cases (NFS in particular), the sysctl value is not present until after kernel modules have been loaded by the service starting.\r\n\r\nIn this case, the user should have the option to tell the sysctl provider to not worry about the value if it fails to apply.\r\n\r\nMy suggestion is the following:\r\n\r\nChange `def live_value` to the following (untested):\r\n\r\n```ruby\r\ndef live_value\r\n  if resource[:silent] == :true\r\n    debug('augeasproviders_sysctl not setting live value on user request')\r\n    return resource[:value]\r\n  else\r\n    return self.class.sysctl_get(resource[:name])\r\n  end\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl/issues/comments/196403375","html_url":"https://github.com/hercules-team/augeasproviders_sysctl/issues/6#issuecomment-196403375","issue_url":"https://api.github.com/repos/hercules-team/augeasproviders_sysctl/issues/6","id":196403375,"user":{"login":"trevor-vaughan","id":4982601,"avatar_url":"https://avatars.githubusercontent.com/u/4982601?v=3","gravatar_id":"","url":"https://api.github.com/users/trevor-vaughan","html_url":"https://github.com/trevor-vaughan","followers_url":"https://api.github.com/users/trevor-vaughan/followers","following_url":"https://api.github.com/users/trevor-vaughan/following{/other_user}","gists_url":"https://api.github.com/users/trevor-vaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-vaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-vaughan/subscriptions","organizations_url":"https://api.github.com/users/trevor-vaughan/orgs","repos_url":"https://api.github.com/users/trevor-vaughan/repos","events_url":"https://api.github.com/users/trevor-vaughan/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-vaughan/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T16:40:41Z","updated_at":"2016-03-14T16:40:41Z","body":"@raphink Yeah, I was starting to diverge too much upstream and had ended up testing it on several other systems. If you find issues, I'll patch it."}}