You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using chef-client cookbook on windows to add scheduled task and run the Chef client on an interval based on the ['chef_client']['interval'] and ['chef_client']['splay'] attributes. The default interval value in the chef-client\attributes\default.rb file is set to '1800' seconds (30 minutes).
In a wrapper cookbook I added the following to my default recipe:
Upon running the chef client my scheduled task is created but always with the default value of 30 minutes specified in the chef-client\attributes\default.rb file. I checked the attributes for this run in Automate and chef_client.interval is set to '600', it just didn't pass that to the scheduled task.
Interestingly, when I override the attribute in my policy file it does set the value for the scheduled task correctly. This only seems to affect declarations in the recipe and attribute default.rb file for the wrapper recipe.
The text was updated successfully, but these errors were encountered:
Using chef-client cookbook on windows to add scheduled task and run the Chef client on an interval based on the
['chef_client']['interval']
and['chef_client']['splay']
attributes. The default interval value in the chef-client\attributes\default.rb file is set to '1800' seconds (30 minutes).In a wrapper cookbook I added the following to my default recipe:
include_recipe 'chef-client::default'
node.default['chef_client']['interval'] = '600'
node.default['chef_client']['splay'] = '120'
Upon running the chef client my scheduled task is created but always with the default value of 30 minutes specified in the chef-client\attributes\default.rb file. I checked the attributes for this run in Automate and chef_client.interval is set to '600', it just didn't pass that to the scheduled task.
Interestingly, when I override the attribute in my policy file it does set the value for the scheduled task correctly. This only seems to affect declarations in the recipe and attribute default.rb file for the wrapper recipe.
The text was updated successfully, but these errors were encountered: