salt.states.btrfs
- maintainer
-
Alberto Planas <aplanas@suse.com>
- maturity
-
new
- depends
-
None
- platform
-
Linux
-
Makes sure that a list of properties are set in a subvolume, file or device.
- name
-
Name of the object to change
- device
-
Device where the object lives, if None, the device will be in name
- use_default
-
If True, this subvolume will be resolved to the default subvolume assigned during the create operation
- properties
-
Dictionary of properties
Valid properties are 'ro', 'label' or 'compression'. Check the documentation to see where those properties are valid for each object.
salt.states.btrfs.properties(name, device, use_default=False, __dest=None, **properties)
-
Makes sure that a btrfs subvolume is present.
- name
-
Name of the subvolume to add
- device
-
Device where to create the subvolume
- qgroupids
-
Add the newly created subcolume to a qgroup. This parameter is a list
- set_default
-
If True, this new subvolume will be set as default when mounted, unless subvol option in mount is used
- copy_on_write
-
If false, set the subvolume with chattr +C
- force_set_default
-
If false and the subvolume is already present, it will not force it as default if
set_default
is True
salt.states.btrfs.subvolume_created(name, device, qgroupids=None, set_default=False, copy_on_write=True, force_set_default=True, __dest=None)
-
Makes sure that a btrfs subvolume is removed.
- name
-
Name of the subvolume to remove
- device
-
Device where to remove the subvolume
- commit
-
Wait until the transaction is over
salt.states.btrfs.subvolume_deleted(name, device, commit=False, __dest=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.btrfs.html