NetDocuments-Archive / ad-join-cookbook

Chef cookbook to join windows computer to AD
Apache License 2.0
14 stars 12 forks source link

Argument Error: Frequency needs to be provided. #42

Open bab5470 opened 5 years ago

bab5470 commented 5 years ago

I have run this chef recipe multiple times in the past without issue but for some reason I seem to be running into an issue running it recently:

[2018-12-10T11:49:44-05:00] FATAL: ArgumentError: domain_join[mydomain] (ad-join::default line 1) had an error: ArgumentError: Frequency needs to be provided. Valid frequencies are :minute, :hourly, :daily, :weekly, :monthly, :once, :on_logon, :onstart, :on_idle, :none.

I'm at a loss for what's changed. I've downloaded the latest version of the cookbook and still encountering this. Any tips or pointers?

Thanks, Brad

spuder commented 5 years ago

Sounds like an incompatible version of the windows_task resource. In older versions of chef you had to use the windows cookbook. In newer versions of chef (e.g. 13), the windows task resource was moved to core. Check what version of the windows cookbook you are using.