0
votes

Is it possible to print out a message in the end of a chef-client run? Something like:

######################

Attention: blablabla

######################
Chef Client finished, 19/222 resources updated in 18 seconds

Thank you in advance

1

1 Answers

1
votes

you can laverage event handlers, and it would look something like:

Chef.event_handler do
  on :run_completed do
    puts "Attention: blablabla"
  end
end