Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.6 /
site-packages /
salt /
grains /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
32
B
-rw-r--r--
2022-05-16 09:16
chronos.py
535
B
-rw-r--r--
2022-05-16 09:16
cimc.py
635
B
-rw-r--r--
2022-05-16 09:16
core.py
111.98
KB
-rw-r--r--
2022-05-16 09:16
disks.py
5.62
KB
-rw-r--r--
2022-05-16 09:16
esxi.py
2.52
KB
-rw-r--r--
2022-05-16 09:16
extra.py
2.77
KB
-rw-r--r--
2022-05-16 09:16
fibre_channel.py
1.76
KB
-rw-r--r--
2022-05-16 09:16
fx2.py
3.06
KB
-rw-r--r--
2022-05-16 09:16
iscsi.py
2.35
KB
-rw-r--r--
2022-05-16 09:16
junos.py
1.51
KB
-rw-r--r--
2022-05-16 09:16
lvm.py
1.43
KB
-rw-r--r--
2022-05-16 09:16
marathon.py
928
B
-rw-r--r--
2022-05-16 09:16
mdadm.py
800
B
-rw-r--r--
2022-05-16 09:16
mdata.py
4.09
KB
-rw-r--r--
2022-05-16 09:16
metadata.py
2.7
KB
-rw-r--r--
2022-05-16 09:16
minion_process.py
988
B
-rw-r--r--
2022-05-16 09:16
napalm.py
11.2
KB
-rw-r--r--
2022-05-16 09:16
nvme.py
1.16
KB
-rw-r--r--
2022-05-16 09:16
nxos.py
901
B
-rw-r--r--
2022-05-16 09:16
opts.py
353
B
-rw-r--r--
2022-05-16 09:16
panos.py
640
B
-rw-r--r--
2022-05-16 09:16
pending_reboot.py
650
B
-rw-r--r--
2022-05-16 09:16
philips_hue.py
1.03
KB
-rw-r--r--
2022-05-16 09:16
rest_sample.py
1.03
KB
-rw-r--r--
2022-05-16 09:16
smartos.py
6.32
KB
-rw-r--r--
2022-05-16 09:16
ssh_sample.py
927
B
-rw-r--r--
2022-05-16 09:16
zfs.py
2.13
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" ZFS grain provider :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.module.cmdmod :platform: illumos,freebsd,linux .. versionadded:: 2018.3.0 """ import logging # Solve the Chicken and egg problem where grains need to run before any # of the modules are loaded and are generally available for any usage. import salt.modules.cmdmod import salt.utils.dictupdate import salt.utils.path import salt.utils.platform import salt.utils.zfs __virtualname__ = "zfs" __salt__ = { "cmd.run": salt.modules.cmdmod.run, } __utils__ = { "zfs.is_supported": salt.utils.zfs.is_supported, "zfs.has_feature_flags": salt.utils.zfs.has_feature_flags, "zfs.zpool_command": salt.utils.zfs.zpool_command, "zfs.to_size": salt.utils.zfs.to_size, } log = logging.getLogger(__name__) def __virtual__(): """ Load zfs grains """ # NOTE: we always load this grain so we can properly export # at least the zfs_support grain # except for Windows... don't try to load this on Windows (#51703) if salt.utils.platform.is_windows(): return False, "ZFS: Not available on Windows" return __virtualname__ def _zfs_pool_data(): """ Provide grains about zpools """ grains = {} # collect zpool data zpool_list_cmd = __utils__["zfs.zpool_command"]( "list", flags=["-H"], opts={"-o": "name,size"}, ) for zpool in __salt__["cmd.run"](zpool_list_cmd, ignore_retcode=True).splitlines(): if "zpool" not in grains: grains["zpool"] = {} zpool = zpool.split() grains["zpool"][zpool[0]] = __utils__["zfs.to_size"](zpool[1], False) # return grain data return grains def zfs(): """ Provide grains for zfs/zpool """ grains = {} grains["zfs_support"] = __utils__["zfs.is_supported"]() grains["zfs_feature_flags"] = __utils__["zfs.has_feature_flags"]() if grains["zfs_support"]: grains = salt.utils.dictupdate.update( grains, _zfs_pool_data(), merge_lists=True ) return grains # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4