More sphinx errors and violations

This commit is contained in:
Nitin Madhok 2014-09-01 02:33:15 -04:00 committed by Colton Myers
parent 9acf13bf39
commit 6ce392b236
2 changed files with 25 additions and 15 deletions

View File

@ -14,8 +14,8 @@ Learn more about range here:
https://github.com/ytoolshed/range/wiki/
Prerequsites
============
Prerequisites
=============
To utilize range support in Salt, a range server is required. Setting up a
range server is outside the scope of this document. Apache modules are included
@ -31,7 +31,9 @@ Additionally, the Python seco range libraries must be instaled on the salt
master. One can verify that they have been installed correctly via the
following command:
`python -c 'import seco.range'`
.. code-block:: bash
python -c 'import seco.range'
If no errors are returned, range is installed successfully on the salt master.
@ -41,7 +43,9 @@ Preparing Salt
Range support must be enabled on the salt master by setting the hostname and
port of the range server inside the master configuration file:
range_server: my.range.server.com:80
.. code-block:: yaml
range_server: my.range.server.com:80
Following this, the master must be restarted for the change to have an effect.
@ -49,24 +53,30 @@ Targeting with Range
====================
Once a cluster has been defined, it can be targeted with a salt command by
using the '-R' or '--range' flags.
using the ``-R`` or ``--range`` flags.
For example, given the following range YAML file being served from a range
server:
$ cat /etc/range/test.yaml
CLUSTER: host1..100.test.com
APPS:
- frontend
- backend
- mysql
.. code-block:: bash
$ cat /etc/range/test.yaml
CLUSTER: host1..100.test.com
APPS:
- frontend
- backend
- mysql
One might target host1 through host100 in the test.com domain with Salt as follows:
salt --range %test:CLUSTER test.ping
.. code-block:: bash
salt --range %test:CLUSTER test.ping
The following salt command would target three hosts: 'frontend', 'backend' and 'mysql':
The following salt command would target three hosts: ``frontend``, ``backend`` and ``mysql``:
salt --range %test:APPS test.ping
.. code-block:: bash
salt --range %test:APPS test.ping

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
'''
Manage Cloudwatch alarms
=================
========================
.. versionadded:: 2014.7.0