Spacewalk Saltstack

stand-alone reactor for Hackweek prototype of Spacewalk-Saltstack integration
Alternatives To Spacewalk Saltstack
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Reactor 365
6 years ago9mitPython
Post-apocalyptic action roguelike with a focus on inventory management and gun-based combat.
Salt Minion Inventory33
4 months ago6gpl-3.0PHP
Salt Minion Inventory provides a web based interface to your SaltStack minions to view their state.
Ocremote30
6 months ago3C++
Computer-based storage and automation system for modded Minecraft
Spacewalk Saltstack2
8 years ago3mitPython
stand-alone reactor for Hackweek prototype of Spacewalk-Saltstack integration
Alternatives To Spacewalk Saltstack
Select To Compare


Alternative Project Comparisons
Readme

Salt Spacewalk integration reactor

This process allows you to integrate a Saltstack environment in Spacewalk.

Features

  • Automatic registration of (accepted) minions in Spacewalk
  • (WIP) Integration of a (minimal) part of the minion hardware inventory in Spacewalk
  • (WIP) Integration of the software inventory of the minion in Spacewalk
  • Integration of Salt jobs into the event history and synchronization of the action status and results

Limitations

  • Events happening when the reactor is down will not be recorded
  • Initiating actions from the Spacewalk user interface require additional changes in Spacewalk, which are also being done as part of the concept, but are not part of the reactor. (incl. a Java library to interact with salt-api)

Requirements

  • Run the salt-master on the Spacewalk server

  • Setup pillar data so set the default admin user and activation key for salt minions. Put the following data in /srv/pillar

top.sls

base:
  '*':
    - data

data.sls

spacewalk-activation-key: 1-salt-testing
spacewalk-admin-user: admin

and refresh the pillar data

$ salt '*' saltutil.refresh_pillar

This gives the same admin user and key for all minions. You can change top.sls to match different minion names or grains.

Inner workings

The reactor reads events from the master in a loop. It reacts to the following events.

  • minon_start

When a minion starts, it will be registered with Spacwalk if it is not already registered. A refresh of the software inventory and hardware will be done

  • tag salt/job/$jobid/new

If the job was not created by the reactor itself (like hardware refresh), an action will be created, of type SaltJob

  • tag salt/job/$jobid/ret/$minion

When an action is returned, if it was not created by the reactor itself, the status will be updated.

TODO

See https://github.com/SUSE/spacewalk-saltstack/issues

Authors

The Spacewalk Salt reactor was developed by the SUSE Manager team during Hackweek 11 https://hackweek.suse.com/11/projects/514

License

MIT

Popular Reactor Projects
Popular Inventory Projects
Popular Control Flow Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Inventory
Reactor
Saltstack