Yum update for monthly once

Hi,

I want to do yumupdate on first monday of every month. At 7:00A.M . How can i acheive this?

cat default.rb

Cookbook:: yum-update

Recipe:: default

Copyright:: 2019, The Authors, All Rights Reserved.i

node["yum-update"]["monthly"]=’monday’
node[“yum-update”][“hour”]=’12’
node[“yum-update”][“minute”]=’0’
include_recipe 'yum-update::yum'

yum.rb file

execute "yum update" do
command "yum -y update"
end

Both the files are in cookbook/yum-update/receipes.

I would setup a cron job and then send verbose logs to an external logging system personally