biemond-orawls
biemond-orawls copied to clipboard
Can 'wls_managedserver' 'subscribe' to an 'Exec' function?
I understand that 'wls_managedserver', can subscribe to a 'Wls_domain' function. However, we have a requirement to prevent 'wls_managedserver' from running if 'Exec' function is not executed (via creates attribute). Is this a possible enhancement or it violates some broader puppet flow?
Something like this:
exec {"return_true_if_deploy_in_progress": command => "true", path => ["/usr/bin","/usr/sbin","/bin"], creates => "/tmp/.deploy_in_progress", }
wls_managedserver{"..": .. .. subscribe => Exec["return_false_if_deploy_in_progress"], }
Note: /tmp/.deploy_in_progress is some kind of lock file generated by our deployment system (not managed by puppet) and it conflict with the puppet run. Puppet starts the managed server every 30 minutes but, accidentally, it catches this downtime which makes the deployment a failure.
Hope you could provide some insight on this obstacle.