Skip to content

Commit bc2f98a

Browse files
committed
Merge branch '0.9.4'
2 parents 7c86d93 + 12401d6 commit bc2f98a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+5082
-1610
lines changed

README.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ What is Salt?
44

55
.. rubric:: We’re not just talking about NaCl.
66

7-
Distributed remote execution
7+
Distributed Remote Execution
88
============================
99

1010
Salt is a distributed remote execution system used to execute commands and
@@ -26,7 +26,7 @@ server/client model with the needed functionality built into a single set of
2626
daemons. While the default configuration will work with little to no
2727
modification, Salt can be fine tuned to meet specific needs.
2828

29-
Parallel execution
29+
Parallel Execution
3030
==================
3131

3232
The core function of Salt is to enable remote commands to be called in parallel
@@ -36,7 +36,7 @@ also introduces more granular controls to the realm of remote execution,
3636
allowing for commands to be executed in parallel and for systems to be targeted
3737
based on more than just hostname, but by system properties.
3838

39-
Building on proven technology
39+
Building on Proven Technology
4040
=============================
4141

4242
Salt takes advantage of a number of technologies and techniques. The networking
@@ -49,7 +49,7 @@ Python pickles, enabling fast and light network traffic.
4949

5050
.. _`ZeroMQ`: http://www.zeromq.org/
5151

52-
Python client interface
52+
Python Client Interface
5353
=======================
5454

5555
In order to allow for simple expansion, Salt execution routines can be written
@@ -59,8 +59,8 @@ a simple Python API, or from the command line, so that Salt can be used to
5959
execute one-off commands as well as operate as an integral part of a larger
6060
application.
6161

62-
Fast, flexible, scalable, pretty, secure
63-
========================================
62+
Fast, Flexible, Scalable, Secure
63+
================================
6464

6565
The result is a system that can execute commands across groups of
6666
varying size, from very few to very many servers at considerably high

conf/master

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
#
5151
# The renderer to use on the minions to render the state data
5252
#renderer: yaml_jinja
53+
#
54+
# The failhard option tells the minions to stop immediately after the first
55+
# failure detected in the state execution, defaults to False
56+
#failhard: False
5357

5458
##### File Server settings #####
5559
##########################################

debian/changelog

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
salt (0.9.4-1) lucid; urgency=low
2+
3+
* Build PPA for 0.9.4
4+
5+
-- Seth House <[email protected]> Sun, 27 Nov 2011 16:11:36 -0700
6+
7+
salt (0.9.4.pre-d353743-1) lucid; urgency=low
8+
9+
* Build PPA for Ubuntu (fixed?)
10+
11+
-- Seth House <[email protected]> Wed, 25 Nov 2011 23:19:00 -0600
12+
13+
salt (0.9.4.pre-6dd76f2-1) lucid; urgency=low
14+
15+
* Build PPA for Ubuntu (fixed?)
16+
17+
-- Seth House <[email protected]> Wed, 25 Nov 2011 11:19:00 -0600
18+
19+
salt (0.9.4.pre-1) lucid; urgency=low
20+
21+
* Build PPA for Ubuntu
22+
23+
-- Seth House <[email protected]> Wed, 25 Nov 2011 11:19:00 -0600
24+
125
salt (0.9.2-2) unstable; urgency=low
226

327
* Fixed many lintian(1) warnings and errors

debian/compat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
7

debian/control

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ Source: salt
22
Section: admin
33
Priority: optional
44
Maintainer: Aaron Toponce <[email protected]>
5-
Build-Depends: debhelper (>= 8.0.0), python-support,
6-
cython
7-
Standards-Version: 3.9.2
5+
Build-Depends: debhelper (>= 7), python-support, cython, python-yaml,
6+
python-setuptools, python-yaml, python-crypto, python-m2crypto,
7+
python-pyzmq (>= 2.1.9), libzmq1 (>= 2.1.9), libzmq-dev (>= 2.1.9),
8+
python (>= 2.6), python-jinja2
9+
Standards-Version: 3.8.3
810
Homepage: http://saltstack.org
911
#Vcs-Git: git://git.debian.org/collab-maint/salt.git
1012
#Vcs-Browser: http://git.debian.org/?p=collab-maint/salt.git;a=summary
1113

1214
Package: salt
1315
Architecture: all
1416
Depends: ${python:Depends}, ${misc:Depends}, python-setuptools,
15-
python-yaml, python-crypto, python-m2crypto, python-zmq, libzmq1,
16-
libzmq-dev, python (>= 2.6)
17+
python-yaml, python-crypto, python-m2crypto, python-pyzmq (>= 2.1.9),
18+
libzmq1 (>= 2.1.9), libzmq-dev (>= 2.1.9), python (>= 2.6), python-jinja2
1719
Description: This package provides a remote manager to administer servers.
1820
This package is a powerful remote execution manager that can be used to
1921
administer servers in a fast and efficient way.

debian/files

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
salt_0.9.2-2_all.deb admin optional
1+
salt_0.9.4-1_all.deb admin optional

debian/patches/no-license

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Index: salt-0.9.2/setup.py
1+
Index: salt-0.9.4/setup.py
22
===================================================================
3-
--- salt-0.9.2.orig/setup.py 2011-10-03 21:07:32.524520895 -0600
4-
+++ salt-0.9.2/setup.py 2011-10-03 21:14:33.852854281 -0600
3+
--- salt-0.9.4.orig/setup.py 2011-10-03 21:07:32.524520895 -0600
4+
+++ salt-0.9.4/setup.py 2011-10-03 21:14:33.852854281 -0600
55
@@ -92,7 +92,7 @@
66
['salt/modules/cytest.pyx',
77
]),

debian/salt.salt-master.init

+15-4
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,23 @@ SERVICE=salt-master
4040
PROCESS=salt-master
4141
CONFIG_ARGS=" "
4242

43+
PS_CMD="ps -e -o pid,args"
44+
PROC_LIST=""
45+
4346
RETVAL=0
4447

48+
findproc() {
49+
PROC_LIST=`$PS_CMD | grep $PROCESS | grep -v grep | grep -v sh | grep -v vi | awk '{ print $1 }'`
50+
}
51+
4552
start() {
4653
echo -n $"Starting salt-master daemon: "
4754
if [ -f $SUSE_RELEASE ]; then
4855
startproc -f -p /var/run/$SERVICE.pid /usr/bin/salt-master -d $CONFIG_ARGS
4956
rc_status -v
5057
elif [ -e $DEBIAN_VERSION ]; then
51-
if [ -f $LOCKFILE ]; then
58+
findproc
59+
if [ -n "$PROC_LIST" ]; then
5260
echo -n "already started, lock file found"
5361
RETVAL=1
5462
elif /usr/bin/python /usr/bin/salt-master -d; then
@@ -70,7 +78,8 @@ stop() {
7078
rc_status -v
7179
elif [ -f $DEBIAN_VERSION ]; then
7280
# Added this since Debian's start-stop-daemon doesn't support spawned processes
73-
if ps -ef | grep "/usr/bin/python /usr/bin/salt-master" | grep -v grep | awk '{print $2}' | xargs kill &> /dev/null; then
81+
findproc
82+
if echo $PROC_LIST | xargs kill >/dev/null 2>&1 ; then
7483
echo -n "OK"
7584
RETVAL=0
7685
else
@@ -100,7 +109,8 @@ case "$1" in
100109
checkproc /usr/bin/salt-master
101110
rc_status -v
102111
elif [ -f $DEBIAN_VERSION ]; then
103-
if [ -f $LOCKFILE ]; then
112+
findproc
113+
if [ -n "$PROC_LIST" ]; then
104114
RETVAL=0
105115
echo "salt-master is running."
106116
else
@@ -113,7 +123,8 @@ case "$1" in
113123
fi
114124
;;
115125
condrestart)
116-
[ -f $LOCKFILE ] && restart || :
126+
findproc
127+
[ -n "$PROC_LIST" ] && restart || :
117128
;;
118129
reload|force-reload)
119130
echo "Can't reload configuration, you have to restart it"

debian/salt.salt-minion.init

+15-4
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,23 @@ SERVICE=salt-minion
4040
PROCESS=salt-minion
4141
CONFIG_ARGS=" "
4242

43+
PS_CMD="ps -e -o pid,args"
44+
PROC_LIST=""
45+
4346
RETVAL=0
4447

48+
findproc() {
49+
PROC_LIST=`$PS_CMD | grep $PROCESS | grep -v grep | grep -v sh | grep -v vi | awk '{ print $1 }'`
50+
}
51+
4552
start() {
4653
echo -n $"Starting salt-minion daemon: "
4754
if [ -f $SUSE_RELEASE ]; then
4855
startproc -f -p /var/run/$SERVICE.pid /usr/bin/salt-minion -d $CONFIG_ARGS
4956
rc_status -v
5057
elif [ -e $DEBIAN_VERSION ]; then
51-
if [ -f $LOCKFILE ]; then
58+
findproc
59+
if [ -n "$PROC_LIST" ]; then
5260
echo -n "already started, lock file found"
5361
RETVAL=1
5462
elif /usr/bin/python /usr/bin/salt-minion -d; then
@@ -70,7 +78,8 @@ stop() {
7078
rc_status -v
7179
elif [ -f $DEBIAN_VERSION ]; then
7280
# Added this since Debian's start-stop-daemon doesn't support spawned processes
73-
if ps -ef | grep "/usr/bin/python /usr/bin/salt-minion" | grep -v grep | awk '{print $2}' | xargs kill &> /dev/null; then
81+
findproc
82+
if echo $PROC_LIST | xargs kill >/dev/null 2>&1 ; then
7483
echo -n "OK"
7584
RETVAL=0
7685
else
@@ -100,7 +109,8 @@ case "$1" in
100109
checkproc /usr/bin/salt-minion
101110
rc_status -v
102111
elif [ -f $DEBIAN_VERSION ]; then
103-
if [ -f $LOCKFILE ]; then
112+
findproc
113+
if [ -n "$PROC_LIST" ]; then
104114
RETVAL=0
105115
echo "salt-minion is running."
106116
else
@@ -113,7 +123,8 @@ case "$1" in
113123
fi
114124
;;
115125
condrestart)
116-
[ -f $LOCKFILE ] && restart || :
126+
findproc
127+
[ -n "$PROC_LIST" ] && restart || :
117128
;;
118129
reload|force-reload)
119130
echo "Can't reload configuration, you have to restart it"

debian/salt.salt-syndic.init

+13-3
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,23 @@ SERVICE=salt-syndic
4040
PROCESS=salt-syndic
4141
CONFIG_ARGS=" "
4242

43+
PS_CMD="ps -e -o pid,args"
44+
PROC_LIST=""
45+
4346
RETVAL=0
4447

48+
findproc() {
49+
PROC_LIST=`$PS_CMD | grep $PROCESS | grep -v grep | grep -v sh | grep -v vi | awk '{ print $1 }'`
50+
}
51+
4552
start() {
4653
echo -n $"Starting salt-syndic daemon: "
4754
if [ -f $SUSE_RELEASE ]; then
4855
startproc -f -p /var/run/$SERVICE.pid /usr/bin/salt-syndic -d $CONFIG_ARGS
4956
rc_status -v
5057
elif [ -e $DEBIAN_VERSION ]; then
51-
if [ -f $LOCKFILE ]; then
58+
findproc
59+
if [ -n "$PROC_LIST" ]; then
5260
echo -n "already started, lock file found"
5361
RETVAL=1
5462
elif /usr/bin/python /usr/bin/salt-syndic -d; then
@@ -70,7 +78,8 @@ stop() {
7078
rc_status -v
7179
elif [ -f $DEBIAN_VERSION ]; then
7280
# Added this since Debian's start-stop-daemon doesn't support spawned processes
73-
if ps -ef | grep "/usr/bin/python /usr/bin/salt-syndic" | grep -v grep | awk '{print $2}' | xargs kill &> /dev/null; then
81+
findproc
82+
if echo $PROC_LIST | xargs kill >/dev/null 2>&1 ; then
7483
echo -n "OK"
7584
RETVAL=0
7685
else
@@ -100,7 +109,8 @@ case "$1" in
100109
checkproc /usr/bin/salt-syndic
101110
rc_status -v
102111
elif [ -f $DEBIAN_VERSION ]; then
103-
if [ -f $LOCKFILE ]; then
112+
findproc
113+
if [ -n "$PROC_LIST" ]; then
104114
RETVAL=0
105115
echo "salt-syndic is running."
106116
else

doc/_templates/404.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% extends "layout.html" %}
2+
{% set title = 'Page not found' %}
3+
4+
{% block body %}
5+
<h1>404: Page not found</h1>
6+
7+
<p>The page you are requesting cannot be found. Please try one of the following
8+
pages instead:</p>
9+
10+
<ul>
11+
<li><a href="{{ pathto("index") }}">Home page</a></li>
12+
<li><a href="{{ pathto("topics/community") }}">Community</a></li>
13+
<li><a href="{{ pathto("search") }}">Search</a></li>
14+
<li><a href="{{ pathto("py-modindex") }}">Salt module index</a></li>
15+
<li><a href="{{ pathto("home") }}">Salt Documentation</a></li>
16+
</ul>
17+
{% endblock %}

doc/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@
6060
html_style = ['base-salt.css']
6161
html_use_smartypants = False
6262

63-
html_additional_pages = {'index': 'index.html'}
63+
html_additional_pages = {
64+
'index': 'index.html',
65+
'404': '404.html',
66+
}
6467

6568
html_default_sidebars = [
6669
'localtoc.html',

doc/example/templates/json-jinja.json

-11
This file was deleted.

doc/example/templates/json-mako.json

-11
This file was deleted.

doc/example/templates/json.json

-12
This file was deleted.

doc/example/templates/yaml-jinja.yml

-23
This file was deleted.

doc/example/templates/yaml-mako.yml

-23
This file was deleted.

0 commit comments

Comments
 (0)