Contains some test with the new CFengine 3.17 custom promise type. Uses the module from the cfengine-core github repo located at:
This repo will contain some first quick tests on how to use this.
A simple promise type to check when your certificate will expire, when within the "days" threshold the promise os not kepted and someone needs to doe something?
dennis@debian:~/cfengine-custom-promises$ cf-agent -f ./promise_test.cf
error: Certificate '/etc/certificate/certificate.pem' will expire within 595 days
error: Certificate '/etc/certificate/certificate.pem' will expire within 595 days
error: Certificate '/etc/certificate/certificate.pem' will expire within 595 days