Hi,
no, there is not.
And not to come around as overly critical, but if you ponder the use of
such a functionality, chances are that you are designing a manifest that
is not well in tune with puppets strengths and weaknesses (I wouldn't
want to coin definitions of "right" and "wrong" ways, but there are
nuances).
I suggest you open a new thread and explain exactly what you expect
puppet to do and inquire for good patterns to apply.
Generally, for the case of "chaining actions based on the output of an
executed program", it is advisable to write a shell script to do all
this foot work, have puppet deploy it on the agent box and exec the
whole thing in one go.
HTH,
Felix