mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix salt.modules.mount documentation
This commit is contained in:
parent
f6feddecb4
commit
7c7076e6af
1 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Salt module to manage unix mounts and the fstab file
|
||||
Salt module to manage Unix mounts and the fstab file
|
||||
'''
|
||||
|
||||
# Import python libs
|
||||
|
@ -309,7 +309,7 @@ def rm_fstab(name, device, config='/etc/fstab'):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' mount.rm_fstab /mnt/foo
|
||||
salt '*' mount.rm_fstab /mnt/foo /dev/sdg
|
||||
'''
|
||||
modified = False
|
||||
|
||||
|
@ -476,7 +476,7 @@ def rm_automaster(name, device, config='/etc/auto_salt'):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' mount.rm_automaster /mnt/foo
|
||||
salt '*' mount.rm_automaster /mnt/foo /dev/sdg
|
||||
'''
|
||||
contents = automaster(config)
|
||||
if name not in contents:
|
||||
|
@ -649,13 +649,13 @@ def set_automaster(
|
|||
|
||||
def automaster(config='/etc/auto_salt'):
|
||||
'''
|
||||
List the contents of the fstab
|
||||
List the contents of the auto master
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' mount.fstab
|
||||
salt '*' mount.automaster
|
||||
'''
|
||||
ret = {}
|
||||
if not os.path.isfile(config):
|
||||
|
@ -772,7 +772,8 @@ def umount(name, device=None, user=None):
|
|||
|
||||
salt '*' mount.umount /mnt/foo
|
||||
|
||||
.. versionadded:: 2015.5.0
|
||||
.. versionadded:: 2015.5.0
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' mount.umount /mnt/foo /dev/xvdc1
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue