New in version 2016.3.0.
Runner to interact with Spacewalk using Spacewalk API
Nitin Madhok <nmadhok@g.clemson.edu>, Joachim Werner <joe@suse.com>, Benedikt Werner <1benediktwerner@gmail.com>
Benedikt Werner <1benediktwerner@gmail.com>
To use this runner, set up the Spacewalk URL, username and password in the
master configuration at /etc/salt/master
or /etc/salt/master.d/spacewalk.conf
:
spacewalk:
spacewalk01.domain.com:
username: 'testuser'
password: 'verybadpass'
spacewalk02.domain.com:
username: 'testuser'
password: 'verybadpass'
Note
Optionally, protocol
can be specified if the spacewalk server is
not using the defaults. Default is protocol: https
.
Add server groups to a activation key
CLI Example:
salt-run spacewalk.addGroupsToKey spacewalk01.domain.com 1-my-key '[group1, group2]'
Call the Spacewalk xmlrpc api.
CLI Example:
salt-run spacewalk.api spacewalk01.domain.com systemgroup.create MyGroup Description
salt-run spacewalk.api spacewalk01.domain.com systemgroup.create arguments='["MyGroup", "Description"]'
State Example:
create_group:
salt.runner:
- name: spacewalk.api
- server: spacewalk01.domain.com
- command: systemgroup.create
- arguments:
- MyGroup
- Description
Delete all activation keys from Spacewalk
CLI Example:
salt-run spacewalk.deleteAllActivationKeys spacewalk01.domain.com
Delete all server groups from Spacewalk
Delete all systems from Spacewalk
CLI Example:
salt-run spacewalk.deleteAllSystems spacewalk01.domain.com
Unregister specified server from Spacewalk
CLI Example:
salt-run spacewalk.unregister my-test-vm spacewalk01.domain.com