Browse Source

feat(handler): Add json report handler

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 3 years ago
parent
commit
5eabd5b28b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      cookbooks/workstation/recipes/default.rb

+ 7 - 0
cookbooks/workstation/recipes/default.rb

@@ -4,6 +4,13 @@
 #
 # Copyright:: 2022, The Authors, All Rights Reserved.
 
+# Enable json file reports
+chef_handler 'Chef::Handler::JsonFile' do
+  source 'chef/handler/json_file'
+  arguments path: '/var/chef/reports'
+  action :enable
+end
+
 include_recipe 'workstation::_podman'
 
 # Setup etckeeper