mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Add missing blank line after code-block directive
Edits performed with this (imperfect) command: find salt -name '*.py' -print0 \ | xargs -0 -n1 -P10 gawk -i inplace ' cb { if (match($0, /^$/) == 0) print ""; cb=0 } { print $0 } /^\s*.. code-block::/ { cb=1 } '
This commit is contained in:
parent
aaf1917bdf
commit
f15e3ce7fa
@ -138,6 +138,7 @@ class SSHClient(object):
|
||||
WARNING: Eauth is **NOT** respected
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
client.cmd_sync({
|
||||
'tgt': 'silver',
|
||||
'fun': 'test.ping',
|
||||
|
@ -627,6 +627,7 @@ def list_permissions(username=None, resource=None, resource_type='keyspace', per
|
||||
:rtype: dict
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt 'minion1' cassandra.list_permissions
|
||||
|
||||
salt 'minion1' cassandra.list_permissions username=joe resource=test_keyspace permission=select
|
||||
@ -682,6 +683,7 @@ def grant_permission(username, resource=None, resource_type='keyspace', permissi
|
||||
:rtype:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt 'minion1' cassandra.grant_permission
|
||||
|
||||
salt 'minion1' cassandra.grant_permission username=joe resource=test_keyspace permission=select
|
||||
|
@ -6,6 +6,7 @@ Manage Kerberos KDC
|
||||
that can authenticate without requireing a password.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# ktadd -k /root/secure.keytab kadmin/admin kadmin/changepw
|
||||
|
||||
On the KDC minion you will need to add the following to the minion
|
||||
@ -13,6 +14,7 @@ configuration file so Salt knows what keytab to use and what principal to
|
||||
authenticate as.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
auth_keytab: /root/auth.keytab
|
||||
auth_principal: kadmin/admin
|
||||
'''
|
||||
|
@ -66,6 +66,7 @@ def ipcidr(tgt):
|
||||
Pillar Example:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
'172.16.0.0/12':
|
||||
- match: ipcidr
|
||||
- nodeclass: internal
|
||||
|
@ -84,6 +84,7 @@ There is also the option of specifying a dynamic inventory, and generating it on
|
||||
This is the format that an inventory script needs to output to work with ansible, and thus here.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
[~]# salt-ssh --roster-file /etc/salt/hosts salt.gtmanfred.com test.ping
|
||||
salt.gtmanfred.com:
|
||||
True
|
||||
|
@ -80,6 +80,7 @@ passed in as a dict, or as a string to pull from pillars or minion config:
|
||||
- key: 'fdkjsafkljsASSADFalkfjasdf'
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
delete server certificate:
|
||||
boto_iam.server_cert_absent:
|
||||
- name: mycert
|
||||
|
@ -5,6 +5,7 @@ Linux File Access Control Lists
|
||||
Ensure a Linux ACL is present
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
root:
|
||||
acl.present:
|
||||
- name: /root
|
||||
|
Loading…
Reference in New Issue
Block a user