Hi,
Is there any example of using calling one salt-orchestration into another salt-orchestration?
I have a scenario where there are 2 orchestration states:
1. Minion_add.sls
{% set data = {
'account_type': 'local',
'StabilityZone': '1',
'Cluster': 'cluster1',
'region': 'region1',
'account_user': 'account1',
} %}
run_minion_after_firstboot_orch:
salt.runner:
- name: state.orchestrate
- args: orch.minion_after_firstboot
- pillar:
event_data: {{data}}
2. minion_after_first_boot.sls
{% set data = salt.pillar.get('event_data') %}test_cmd_echo:
module.run:
- name: test.echo
- tgt: 'myminion2.corp.company.com'
- text: {{ data }}
Here tried various things but always get keyError i.e. SaltInvocationError: The following keyword arguments are not valid: args=orch.minion_after_firstboot
My question is what is the correct syntax of invoking one orchestration from another orchestration and also pass arguments? I have tried looking this documentation, but there is no such example listed here https://docs.saltstack.com/en/latest/topics/orchestrate/orchestrate_runner.html.
Thanks