瀏覽代碼

Add Bind Mount Option

Add Bind Mount Option
pull/221/head
preussal 3 年之前
父節點
當前提交
420f020759
共有 2 個檔案被更改,包括 20 行新增1 行删除
  1. +19
    -0
      README.rst
  2. +1
    -1
      linux/storage/mount.sls

+ 19
- 0
README.rst 查看文件

@@ -2068,6 +2068,25 @@ NFS mount:
file_system: nfs
opts: rw,sync

Bind mount:

.. code-block:: yaml

linux:
storage:
enabled: true
mount:
mount_bind:
enabled: true
path: /mnt/bind/name
device: /mnt/source/bind
file_system: none
opts: bind,defaults
dump: 0
pass_num: 1



File swap configuration:

.. code-block:: yaml

+ 1
- 1
linux/storage/mount.sls 查看文件

@@ -5,7 +5,7 @@

{%- if mount.enabled %}

{%- if not mount.file_system in ['nfs', 'nfs4', 'cifs', 'tmpfs'] %}
{%- if not mount.file_system in ['nfs', 'nfs4', 'cifs', 'tmpfs', 'none'] %}

mkfs_{{ mount.device}}:
cmd.run:

Loading…
取消
儲存