{"action":"created","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/chef-client/issues/235","labels_url":"https://api.github.com/repos/opscode-cookbooks/chef-client/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/chef-client/issues/235/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/chef-client/issues/235/events","html_url":"https://github.com/opscode-cookbooks/chef-client/issues/235","id":52607636,"number":235,"title":"Setting node[\"chef_client\"][\"interval\"] seems to be ignored for Windows service","user":{"login":"adamlau","id":1783940,"avatar_url":"https://avatars.githubusercontent.com/u/1783940?v=3","gravatar_id":"","url":"https://api.github.com/users/adamlau","html_url":"https://github.com/adamlau","followers_url":"https://api.github.com/users/adamlau/followers","following_url":"https://api.github.com/users/adamlau/following{/other_user}","gists_url":"https://api.github.com/users/adamlau/gists{/gist_id}","starred_url":"https://api.github.com/users/adamlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamlau/subscriptions","organizations_url":"https://api.github.com/users/adamlau/orgs","repos_url":"https://api.github.com/users/adamlau/repos","events_url":"https://api.github.com/users/adamlau/events{/privacy}","received_events_url":"https://api.github.com/users/adamlau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2014-12-21T22:05:23Z","updated_at":"2015-07-17T20:00:40Z","closed_at":null,"body":"I installed chef-client 12.0.3 via bootstrap onto a Windows 8.1 machine. I used the default chef-client recipe to install the windows chef-client service. I'm trying to set the interval for the service to run to 5 mins.\r\n\r\nI have a base role set for the windows node:\r\n\r\n    name \"base\"\r\n    description \"Base role\"\r\n    run_list \"recipe[chef-client]\"\r\n    default_attributes \r\n    override_attributes \"chef_client\" => { \"interval\" => \"300\" }\r\n\r\nThe chef-client windows service gets installed correctly but it runs at the default of 1800 seconds. I've tried a few different ways of setting the attribute but nothing seems to budge it from the default.\r\n\r\nThe documentation (https://github.com/opscode-cookbooks/chef-client#attributes) says:\r\n> The following attributes affect the behavior of the chef-client program when running as a service through one of the service recipes, or in cron with the cron recipe, or are used in the recipes for various settings that require flexibility.\r\n>\r\n> * node[\"chef_client\"][\"interval\"] - Sets Chef::Config[:interval] via command-line option for number of seconds between chef-client daemon runs. Default 1800.\r\n\r\nI've looked through the source code of the chef-client recipe and executable but can't find how the interval is set via command-line option when using the windows service recipe. Do I have to set the interval attribute myself in client.rb?"},"comment":{"url":"https://api.github.com/repos/opscode-cookbooks/chef-client/issues/comments/122396241","html_url":"https://github.com/opscode-cookbooks/chef-client/issues/235#issuecomment-122396241","issue_url":"https://api.github.com/repos/opscode-cookbooks/chef-client/issues/235","id":122396241,"user":{"login":"jaym","id":27443,"avatar_url":"https://avatars.githubusercontent.com/u/27443?v=3","gravatar_id":"","url":"https://api.github.com/users/jaym","html_url":"https://github.com/jaym","followers_url":"https://api.github.com/users/jaym/followers","following_url":"https://api.github.com/users/jaym/following{/other_user}","gists_url":"https://api.github.com/users/jaym/gists{/gist_id}","starred_url":"https://api.github.com/users/jaym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaym/subscriptions","organizations_url":"https://api.github.com/users/jaym/orgs","repos_url":"https://api.github.com/users/jaym/repos","events_url":"https://api.github.com/users/jaym/events{/privacy}","received_events_url":"https://api.github.com/users/jaym/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T20:00:40Z","updated_at":"2015-07-17T20:00:40Z","body":"@aarsan what version of the cookbook are you using?"}}