{"action":"created","issue":{"url":"https://api.github.com/repos/miketheman/nginx/issues/344","labels_url":"https://api.github.com/repos/miketheman/nginx/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/miketheman/nginx/issues/344/comments","events_url":"https://api.github.com/repos/miketheman/nginx/issues/344/events","html_url":"https://github.com/miketheman/nginx/issues/344","id":65003283,"number":344,"title":"Ohai custom plugin reloads on every converge","user":{"login":"RobertNorthard","id":487240,"avatar_url":"https://avatars.githubusercontent.com/u/487240?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertNorthard","html_url":"https://github.com/RobertNorthard","followers_url":"https://api.github.com/users/RobertNorthard/followers","following_url":"https://api.github.com/users/RobertNorthard/following{/other_user}","gists_url":"https://api.github.com/users/RobertNorthard/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertNorthard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertNorthard/subscriptions","organizations_url":"https://api.github.com/users/RobertNorthard/orgs","repos_url":"https://api.github.com/users/RobertNorthard/repos","events_url":"https://api.github.com/users/RobertNorthard/events{/privacy}","received_events_url":"https://api.github.com/users/RobertNorthard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-28T23:48:58Z","updated_at":"2015-06-24T22:10:02Z","closed_at":null,"body":"The Ohai plugin is reloaded on every Chef run and therefore is not idempotent as a resource is registered as updating.\r\n\r\nPlease see log output below.\r\n\r\n       [2015-03-28T23:46:10+00:00] INFO: Processing ohai[custom_plugins] action reload (ohai::default line 47)\r\n       [2015-03-28T23:46:11+00:00] INFO: ohai[custom_plugins] reloaded\r\n           - re-run ohai and merge results into node attributes\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/miketheman/nginx/issues/comments/115025630","html_url":"https://github.com/miketheman/nginx/issues/344#issuecomment-115025630","issue_url":"https://api.github.com/repos/miketheman/nginx/issues/344","id":115025630,"user":{"login":"rmoriz","id":1527,"avatar_url":"https://avatars.githubusercontent.com/u/1527?v=3","gravatar_id":"","url":"https://api.github.com/users/rmoriz","html_url":"https://github.com/rmoriz","followers_url":"https://api.github.com/users/rmoriz/followers","following_url":"https://api.github.com/users/rmoriz/following{/other_user}","gists_url":"https://api.github.com/users/rmoriz/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoriz/subscriptions","organizations_url":"https://api.github.com/users/rmoriz/orgs","repos_url":"https://api.github.com/users/rmoriz/repos","events_url":"https://api.github.com/users/rmoriz/events{/privacy}","received_events_url":"https://api.github.com/users/rmoriz/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T22:10:02Z","updated_at":"2015-06-24T22:10:02Z","body":"just to keep this issue updated: It's a bug in the `ohai` cookbook that can be \"circumvented\" by also using the `chef-client` cookbook which sets Ohai's plugin_path - this prevents the reloading logic. Sucks for CI/CD but might be a solution for deployments, especially typical chef-server deployments where `chef-client` needs to be installed a as a service."}}