Powerful option in Opalis is the ability to move data and results between nested policies, this way you can deal in more flexible way complex workflows.
So… how it need to be done ?
I’ve built a really simple scenario:
- Main workflow that run and call nested policy named “2.Nested Policy”.
- the nested policy run some command locally in my example… it run the hostname command.
- the nested policy publish the pure results of the command and send it back to the parent policy.
- the parent policy write the published data\output to some log file.
Well… screenshots :
Configure the publish data by clicking the properties of the nested policy:
Add variables which will represent the back data :
The configuration of the run command (“hostname”):
The configuration needed for the triggering of the nested policy:
The “Append to file” object configuration:
and the final results after running the policy: