Last active
August 29, 2015 13:56
-
-
Save kelchm/9239311 to your computer and use it in GitHub Desktop.
Fixed!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tag: solusvm/addnode | |
Data: | |
{'_stamp': '2014-02-26_16:40:20.759580', | |
'cmd': '_minion_event', | |
'data': {'nodeid': 'GH5739CHE9VVBEJXBCBE', | |
'nodeip': '1.1.1.1', | |
'nodekey': 'GHDDJR7463GCKSBCBEUWDB', | |
'nodename': 'TEST', | |
'nodeport': '495', | |
'nodetype': 'openvz'}, | |
'id': '#############', | |
'tag': 'solusvm/addnode'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt-call event.fire_master '{"nodename": "TEST", "nodetype": "openvz", "nodeip": "1.1.1.1", "nodeport": "495", "nodeid": "GH5739CHE9VVBEJXBCBE", "nodekey": "GHDDJR7463GCKSBCBEUWDB"}' 'solusvm/addnode' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solusvm_addnode: | |
cmd.state.sls: | |
- tgt: solusvm.bhsrv.net | |
- arg: | |
- solusvm.addnode | |
- 'pillar={nodename: {{ data['data']['nodename'] }}, nodetype: {{ data['data']['nodetype'] }}, nodeip: {{ data['data']['nodeip'] }}, nodeport: {{ data['data']['nodeport'] }}, nodeid: {{ data['data']['nodeid'] }}, nodekey: {{ data['data']['nodekey'] }}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reactor: | |
- 'solusvm/addnode': | |
- /srv/reactor/solusvm/addnode.sls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addnode: | |
cmd.run: | |
- name: "php /usr/local/solusvm/scripts/addnode.php --type={{ pillar['nodetype'] }} --name={{ pillar['nodename'] }} --ip={{ pillar['nodeip'] }} --port={{ pillar['nodeport'] }} --id={{ pillar['nodeid'] }} --key={{ pillar['nodekey'] }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('addnode', OrderedDict([('cmd.run', [OrderedDict([('name', 'php /usr/local/solusvm/scripts/addnode.php --type=openvz --name=TEST --ip=1.1.1.1 --port=495 --id=GH5739CHE9VVBEJXBCBE --key=GHDDJR7463GCKSBCBEUWDB')])])]))]) | |
[INFO ] Executing state cmd.run for php /usr/local/solusvm/scripts/addnode.php --type=openvz --name=TEST --ip=1.1.1.1 --port=495 --id=GH5739CHE9VVBEJXBCBE --key=GHDDJR7463GCKSBCBEUWDB | |
[INFO ] Executing command 'php /usr/local/solusvm/scripts/addnode.php --type=openvz --name=TEST --ip=1.1.1.1 --port=495 --id=GH5739CHE9VVBEJXBCBE --key=GHDDJR7463GCKSBCBEUWDB' in directory '/root' | |
[DEBUG ] stdout: | |
Node Added | |
[INFO ] {'pid': 30060, 'retcode': 0, 'stderr': '', 'stdout': '\n Node Added'} | |
[INFO ] Returning information for job: 20140226170516070332 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment