Skip to content

Commit

Permalink
Fixing more sphinx/docs errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nmadhok committed May 16, 2015
1 parent 391a267 commit 12ea8f5
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 32 deletions.
4 changes: 2 additions & 2 deletions doc/ref/modules/all/salt.modules.x509.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
================
=================
salt.modules.x509
================
=================

.. automodule:: salt.modules.x509
:members:
4 changes: 2 additions & 2 deletions doc/security/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ quickly and safely as is possible.
the full release documentation and download locations.

Receiving security announcements
===============================
================================

The fastest place to receive security announcements is via the `salt-announce`_
mailing list. This list is low-traffic.
mailing list. This list is low-traffic.
6 changes: 3 additions & 3 deletions doc/topics/installation/debian.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Configure Apt


Squeeze (Old Old Stable)
--------------------
------------------------

For squeeze, you will need to enable the Debian backports repository
as well as the debian.saltstack.com repository. To do so, add the
Expand All @@ -26,7 +26,7 @@ following to ``/etc/apt/sources.list`` or a file in
Wheezy (Old Stable)
---------------
-------------------

For wheezy, the following line is needed in either
``/etc/apt/sources.list`` or a file in ``/etc/apt/sources.list.d``:
Expand All @@ -36,7 +36,7 @@ For wheezy, the following line is needed in either
deb http://debian.saltstack.com/debian wheezy-saltstack main
Jessie (Stable)
----------------
---------------

For jessie, the following line is needed in either
``/etc/apt/sources.list`` or a file in ``/etc/apt/sources.list.d``:
Expand Down
2 changes: 2 additions & 0 deletions doc/topics/transports/tcp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ in the future. That being said, the wire framing is quite efficient and looks
like:

.. code-block:: text
len(payload) msgpack({'head': SOMEHEADER, 'body': SOMEBODY})
The wire protocol is basically two parts, the length of the payload and a payload
Expand All @@ -36,6 +37,7 @@ For the pub channel we send messages without "message ids" which the remote end
interprets as a one-way send.

.. note::

As of today we send all publishes to all minions and rely on minion-side filtering.


Expand Down
3 changes: 1 addition & 2 deletions salt/modules/boto_iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,7 @@ def upload_server_cert(cert_name, cert_body, private_key, cert_chain=None, path=
:param cert_name: The name for the server certificate. Do not include the path in this value.
:param cert_body: The contents of the public key certificate in PEM-encoded format.
:param private_key: The contents of the private key in PEM-encoded format.
:param cert_chain: The contents of the certificate chain. This is typically a
concatenation of the PEM-encoded public key certificates of the chain.
:param cert_chain: The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.
:param path: The path for the server certificate.
:param region: The name of the region to connect to.
:param key: The key to be used in order to connect
Expand Down
2 changes: 1 addition & 1 deletion salt/modules/win_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def saltmem(human_readable=False):
CLI Example:
.. code-black:: bash
.. code-block:: bash
salt '*' status.salt_mem
salt '*' status.salt_mem human_readable=True
Expand Down
2 changes: 1 addition & 1 deletion salt/output/compact.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
'''
Display compact output data structure
=================================
=====================================
Example output::
Expand Down
4 changes: 3 additions & 1 deletion salt/returners/mongo_future_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
configure the settings for your MongoDB server, add the following lines
to the minion config files:
.. cod-block:: yaml
.. code-block:: yaml
mongo.db: <database name>
mongo.host: <server ip address>
Expand All @@ -20,6 +20,8 @@
You can also ask for indexes creation on the most common used fields, which
should greatly improve performance. Indexes are not created by default.
.. code-block:: yaml
mongo.indexes: true
Alternative configuration values can be used by prefacing the configuration.
Expand Down
4 changes: 4 additions & 0 deletions salt/roster/clustershell.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# -*- coding: utf-8 -*-
'''
:requires: clustershell
https://github.com/cea-hpc/clustershell
This roster resolves hostname in a pdsh/clustershell style.
When you want to use host globs for target matching, use --roster clustershell.
Example:
.. code-block:: bash
salt-ssh --roster clustershell 'server_[1-10,21-30],test_server[5,7,9]' test.ping
'''

Expand Down
4 changes: 2 additions & 2 deletions salt/runners/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def query(url, output=True, **kwargs):
'''
Query a resource, and decode the return data
.. versionaddedd:: 2015.2
.. versionadded:: 2015.2
CLI Example:
Expand All @@ -44,7 +44,7 @@ def update_ca_bundle(target=None, source=None, merge_files=None):
'''
Update the local CA bundle file from a URL
.. versionaddedd:: 2015.2
.. versionadded:: 2015.2
CLI Example:
Expand Down
2 changes: 1 addition & 1 deletion salt/runners/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def reaped(subset=None, show_ipv4=False):
show_ipv4 : False
Also show the IP address each minion is connecting from.
.. verionadded:: Beryllium
.. versionadded:: Beryllium
CLI Example:
Expand Down
2 changes: 1 addition & 1 deletion salt/sdb/sqlite3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
do not exist.
Advanced Usage:
==============
===============
Instead of a table name, it is possible to provide custom SQL statements to
create the table(s) and get and set values.
Expand Down
10 changes: 7 additions & 3 deletions salt/states/boto_asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
This module accepts explicit autoscale credentials but can also utilize
IAM roles assigned to the instance trough Instance Profiles. Dynamic
credentials are then automatically obtained from AWS API and no further
configuration is necessary. More Information available at::
configuration is necessary. More Information available at:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
.. code-block:: text
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
If IAM roles are not used you need to specify them either in a pillar or
in the minion's config file::
in the minion's config file:
.. code-block:: yaml
asg.keyid: GKTADJGHEIQSXMKKRBJ08H
asg.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
Expand Down
2 changes: 1 addition & 1 deletion salt/states/boto_dynamodb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
'''
Manage DynamoDB Tables
=================
======================
.. versionadded:: 2015.5.0
Expand Down
1 change: 1 addition & 0 deletions salt/states/boto_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Manage EC2
.. versionadded:: Beryllium
This module provides an interface to the Elastic Compute Cloud (EC2) service
from AWS.
Expand Down
1 change: 1 addition & 0 deletions salt/states/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
state module
.. code-block:: yaml
dotdeb.repo:
pkgrepo.managed:
- humanname: Dotdeb
Expand Down
26 changes: 14 additions & 12 deletions salt/states/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
'''
Test States
==================
===========
Provide test case states that enable easy testing of things to do with
state calls, e.g. running, calling, logging, output filtering etc.
Expand Down Expand Up @@ -351,20 +351,22 @@ def check_pillar(name,
Checks the presence and, optionally, the type of
given keys in Pillar.
Supported kwargs for types are:
- boolean (bool)
- integer (int)
- string (str)
- listing (list)
- dictionary (dict)
- boolean (bool)
- integer (int)
- string (str)
- listing (list)
- dictionary (dict)
Checking for None type pillars is not implemented yet.
is-pillar-foo-present-and-bar-is-int:
test.check_pillar:
- present:
- foo
- integer:
- bar
.. code-block:: yaml
is-pillar-foo-present-and-bar-is-int:
test.check_pillar:
- present:
- foo
- integer:
- bar
'''
if not (present or boolean or integer or string or
listing or dictionary):
Expand Down

0 comments on commit 12ea8f5

Please sign in to comment.