I've finally got back onto this and have hit a odd error... just wondering if you encountered it. It seems that it doesn't recognise my pillar as a dictionary... If i print the __class__ of the pillar dictionary object it shows it as a dict so I'm slightly confused.
[root@lux2124 pipes]# ./salt-api-call.sh
data struct to send
{'mods': 'orchestrate.update-tomcats', 'tgt': '*', 'pillar': {'env_name': 'bat', 'app_name': 'demo'}, 'expr_form': 'glob', 'client': 'runner', 'fun': 'state.orchestrate'}
type of data['pillar']
<type 'dict'>
return:
- "Exception occurred in runner state.orchestrate: Traceback (most recent call last):\n\
\ File \"/usr/lib/python2.7/site-packages/salt/client/mixins.py\", line 317, in\
\ low\n data['return'] = self.functions[fun](*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/salt/runners/state.py\"\
, line 105, in orchestrate\n 'Pillar data must be formatted as a dictionary'\n\
SaltInvocationError: Pillar data must be formatted as a dictionary\n"
[root@lux2124 pipes]#