salt/pkg/rpm
plastikos 0efbbcd17f * Improve init script: specifically manage salt configurations rather than arbitrary salt processes (#32666)
* * Improve init script: specifically manage salt configurations rather than arbitrary salt processes

Unfortunately SysV init scripts tend to rummage through PIDs filtering for
appropriate processes to manage.  Unfortunately the filters are usually weak
and don't account for similar processes run by other users, PIDs of dead
processes being re-used for completely different executables, etc..  These
weaknesses can result in killing unrelated processes with potentially serious
results.

These improvements to the SysV init script is a complete rewrite with the
following improvements:

  * Specifically manage individual salt configurations rather than looking for
    salt minion-like processes.
  * Obtain salt minion information from the salt configuration - use the
    information to manage the specifically configured process.
  * Drop all of the platform-specific helper functions that allow the
    previously-mentioned weaknesses.

    + Unfortunately this means that the output information may not match the
      specific platform (this could easily be corrected).

  * Now can manage multiple salt processes started by different users

    + Unfortunately starts/stops/restarts as a group and is unable to manage
      them both as a group or as individual processes (this could easily be
      corrected)

The new initscript also allows various control variables to be overridden by
environment variables or through settings put in ``/etc/sysconf/salt`` or
``/etc/default/salt``.

:SALTMINION_DEBUG: Dump each line expansion before execution, output system
                   information on failure.  Default: unset

:SALTMINION_BINDIR: Location of ``salt-minion``, ``salt-call`` and other
                    executables.  Default: ``/usr/bin``

:SALTMINION_SYSCONFDIR: The parent directory for the ``salt`` configuration
                        directory and the ``sysconfig`` or ``default``
                        directory.

* Add lines that went missing in the rebase+squash
2016-05-09 10:57:13 -07:00
..
build.py Use print as a function [PEP 3105]. 2015-12-04 16:17:35 -08:00
logrotate.salt Adding logrotate file 2014-07-01 17:02:20 -04:00
README.fedora Remove trailing white spaces in files under pkg/ dir 2016-03-01 17:37:18 +02:00
salt-api Merge branch '2015.8' into '2016.3' 2016-03-02 10:26:13 -07:00
salt-api.service Add salt-api unit file symlink 2014-09-03 13:42:21 -05:00
salt-master Merge branch '2015.8' into '2016.3' 2016-03-02 10:26:13 -07:00
salt-master.service Move systemd service files to a separate directory 2012-10-26 09:45:33 +11:00
salt-minion * Improve init script: specifically manage salt configurations rather than arbitrary salt processes (#32666) 2016-05-09 10:57:13 -07:00
salt-minion.service Move systemd service files to a separate directory 2012-10-26 09:45:33 +11:00
salt-syndic Remove trailing white spaces in files under pkg/ dir 2016-03-01 17:37:18 +02:00
salt-syndic.service Move systemd service files to a separate directory 2012-10-26 09:45:33 +11:00
salt.bash Add salt.bash symlink 2016-04-04 16:53:56 -05:00
salt.spec Fix trailing white spaces in Salt PRM spec file 2016-03-02 10:42:00 +02:00

These packages are *optional* dependencies for salt. By default, they are not included in the salt RPMs.
Install any of these packages to enable the functionality within salt.

MySQL-python
libvirt-python
python-mako
pymongo
python-redis / redis

A semi-canonical list of the optional salt modules can be found at
https://github.com/saltstack/salt/blob/develop/doc/conf.py#L30