# Do we have an option to load checks/asset/handler definitions from YAML/JSON in sensu puppet

**URL:** <https://discourse.sensu.io/t/do-we-have-an-option-to-load-checks-asset-handler-definitions-from-yaml-json-in-sensu-puppet/1673>\
**Category:** Sensu Go\
**Created:** [March 23, 2020, 9:26pm UTC](https://discourse.sensu.io/t/do-we-have-an-option-to-load-checks-asset-handler-definitions-from-yaml-json-in-sensu-puppet/1673 "2020-03-23T21:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmuthuku](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@kmuthuku](https://discourse.sensu.io/u/kmuthuku)\
**Post date:** [March 23, 2020, 9:26pm UTC](https://discourse.sensu.io/t/do-we-have-an-option-to-load-checks-asset-handler-definitions-from-yaml-json-in-sensu-puppet/1673/1 "2020-03-23T21:26:26Z")

</div>

Do we have an option to load checks/asset/handler definitions from YAML/JSON in sensu puppet ?

For example: The way the implementation is done in Sensu puppet for a check is as below:

sensu\_check { ‘check\_cpu’:  
ensure =\> ‘present’,  
labels =\> {  
‘contacts’ =\> ‘dev, ops’,  
},  
command =\> ‘check-cpu.rb -w 75 -c 90’,  
handlers =\> [‘email’],  
interval =\> 30,  
publish =\> true,  
subscriptions =\> [‘linux’],  
runtime\_assets =\> [‘sensu-plugins-cpu-checks’,‘sensu-ruby-runtime’],  
}

However, when we have all the checks/handlers converted from sensu-core to sensugo format using the translator plugin, I should be able to register them as above, but from the YAML/JSON files that got generated.

Is it something that can be done in puppet to load the definitions alone from YAML/JSON and rest use the code from puppet.
