I am really frustrated puppet.
I have my code working the way I expected when I run "puppet agent --test " from my node.
However, the scheduled runs behaves differently.
I have code as below:
class ora_linux_psu::psu_ordering {
include ora_linux_psu::cls_shutdown_for_patch
include ora_linux_psu::cls_db_pre_patch_script
include ora_linux_psu::cls_psu_apply
include ora_linux_psu::cls_db_post_patch_script
include ora_linux_psu::cls_db_start
include ora_linux_psu::cls_run_catbundle
include ora_linux_psu::cls_send_status
Class['ora_linux_psu::cls_shutdown_for_patch']
-> Class['ora_linux_psu::cls_db_pre_patch_script']
->Class['ora_linux_psu::cls_psu_apply']
->Class['ora_linux_psu::cls_db_post_patch_script']
->Class['ora_linux_psu::cls_db_start']
->Class['ora_linux_psu::cls_run_catbundle']
->Class['ora_linux_psu::cls_send_status']
}
When I run from the node , if it meets fail condition in the first class `ora_linux_psu::cls_shutdown_for_patch` - it doesn't execute the remaining classes. However scheduled automatic run recognize the fail condition and continue with the rest of the classes.
Can anyone advice ?
↧