File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/zfs.cpython-310.pyc
Back
o ;j�� � @ s d Z ddlZddlmZ ddlmZ e�e�ZdZddiZ ddd�Z dddd �Zddddd �Zdd� Z d/dd�Zd/dd�Zd/dd�Zd/dd�Zd/dd�Zd0dd�Zd0dd�Z d1dd�Zd2dd�Z d3d d!�Zd"d#� Zd4d$d%�Zd&d'� Zd(d)� Zd*d+� Zd5d-d.�ZdS )6a� States for managing zfs datasets :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.utils.zfs, salt.modules.zfs :platform: smartos, illumos, solaris, freebsd, linux .. versionadded:: 2016.3.0 .. versionchanged:: 2018.3.1 Big refactor to remove duplicate code, better type conversions and improved consistency in output. .. code-block:: yaml test/shares/yuki: zfs.filesystem_present: - create_parent: true - properties: quota: 16G test/iscsi/haruhi: zfs.volume_present: - create_parent: true - volume_size: 16M - sparse: true - properties: readonly: on test/shares/yuki@frozen: zfs.snapshot_present moka_origin: zfs.hold_present: - snapshot: test/shares/yuki@frozen test/shares/moka: zfs.filesystem_present: - cloned_from: test/shares/yuki@frozen test/shares/moka@tsukune: zfs.snapshot_absent � N)�OrderedDict)�datetimeZzfs�minute)r �hour� )r r �day)r r r �monthc C s t �d�sdS tS )z Provides zfs state Zzfs_support)Fz1The zfs state cannot be loaded: zfs not supported)Z __grains__�get�__virtualname__� r r �C/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/zfs.py�__virtual__>