??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`s¡ddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l m Z d e fd „ƒYZ d„Zedkreƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys/ --- module: zfs short_description: Manage zfs description: - Manages ZFS file systems, volumes, clones and snapshots version_added: "1.1" options: name: description: - File system, snapshot or volume name e.g. C(rpool/myfs). required: true state: description: - Whether to create (C(present)), or remove (C(absent)) a file system, snapshot or volume. All parents/children will be created/destroyed as needed to reach the desired state. choices: [ absent, present ] required: true origin: description: - Snapshot from which to create a clone. extra_zfs_properties: description: - A dictionary of zfs properties to be set. - See the zfs(8) man page for more information. version_added: "2.5" author: - Johan Wiren (@johanwiren) s@ - name: Create a new file system called myfs in pool rpool with the setuid property turned off zfs: name: rpool/myfs state: present extra_zfs_properties: setuid: off - name: Create a new volume called myvol in pool rpool. zfs: name: rpool/myvol state: present extra_zfs_properties: volsize: 10M - name: Create a snapshot of rpool/myfs file system. zfs: name: rpool/myfs@mysnapshot state: present - name: Create a new file system called myfs2 with snapdir enabled zfs: name: rpool/myfs2 state: present extra_zfs_properties: snapdir: enabled - name: Create a new file system by cloning a snapshot zfs: name: rpool/cloned_fs state: present origin: rpool/myfs@mysnapshot - name: Destroy a filesystem zfs: name: rpool/myfs state: absent N(t AnsibleModuletZfscB`sYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( cC`s¬||_||_||_t|_|jdtƒ|_|jdtƒ|_|j dƒdj dƒd|_ t j ƒddk|_ |jƒ|_|jƒ|_dS(Ntzfstzpoolt/it@tSunOS(tmoduletnamet propertiestFalsetchangedt get_bin_pathtTruetzfs_cmdt zpool_cmdtsplittpooltostunamet is_solarist check_openzfst is_openzfstcheck_enhanced_sharingtenhanced_sharing(tselfRRR((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyt__init__\s    #cC`s”|jg}|jddgƒ|j|jƒ|jj|dtƒ\}}}|jƒdjƒd}|dkrztSt |ƒdkrtSt S(Ntgettversiontcheck_rciÿÿÿÿit-iˆ( RtextendtappendRRt run_commandRt splitlinesRtintR(R!tcmdtrctoutterrR$((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyRhs ! cC`sš|jr–|j r–|jg}|jddgƒ|j|jƒ|jj|dtƒ\}}}|j ƒdj ƒd}t |ƒdkr–tSnt S(NR#R$R%iÿÿÿÿii"( RRRR'R(RRR)RR*RR+R(R!R,R-R.R/R$((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyRts !cC`sW|jddd|jg}|jjdj|ƒƒ\}}}|dkrOtStSdS(Ntlists-ttallt i(RRRR)tjoinRR(R!R,R-R.R/((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pytexistss $ c C`sŸ|jjrt|_dS|j}|jjjddƒ}|jg}d|j kr^d}n|rmd}nd}|j |ƒ|dkrœ|dg7}n|rxu|j ƒD]d\}}|dkrÚ|d|g7}q¯|d krù|d |g7}q¯|d d ||fg7}q¯Wn|r<|dkr<|j |ƒn|j |j ƒ|jj d j |ƒƒ\}}} |dkrˆt|_n|jjd| ƒdS(NtoriginR tsnapshottclonetcreates-ptvolsizes-Vt volblocksizes-bs-os%s="%s"R2itmsg(screateR7(Rt check_modeRRRtparamsR#tNoneRRR(titemsR)R3t fail_json( R!RR5R,tactiontproptvalueR-R.R/((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyR8‡s8          !$  cC`s„|jjrt|_dS|jdd|jg}|jjdj|ƒƒ\}}}|dkrmt|_n|jjd|ƒdS(Ntdestroys-RR2iR;( RR<RRRRR)R3R@(R!R,R-R.R/((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyRD¬s  $  cC`s‰|jjrt|_dS|jd|dt|ƒ|jg}|jj|ƒ\}}}|dkrrt|_n|jjd|ƒdS(Ntsett=iR;( RR<RRRtstrRR)R@(R!RBRCR,R-R.R/((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyt set_property·s  &  cC`s[|jƒ}xH|jjƒD]7\}}|j|dƒ|kr|j||ƒqqWdS(N(tget_current_propertiesRR?R#R>RH(R!tcurrent_propertiesRBRC((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pytset_properties_if_changedÂs c C`s|jddg}|jr+|dg7}n|d|jg7}|jjdj|ƒƒ\}}}tƒ}xYg|jƒD]}|jdƒdd!^q{D](\}}} | d kr›|||( R!R,R-R.R/RtlRBRCtsource((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyRIÈs $ ?  ( t__name__t __module__R"RRR4R8RDRHRKRI(((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyR Zs  % cC`sûtdtdtdddtƒdtdddtddd gƒd tddd dƒd tdd d iƒƒdtƒ}|jjdƒ}|jjdƒ}|jjd ƒrÍd|krÍ|jddƒnxu|jd jƒD]`\}}t|t ƒr0|tkrd|jd |R=R#R@R?t isinstancetboolR R4RKR8RDtupdateRRt exit_json(RRWRRBRCtresultR ((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pytmainÙs>!           t__main__(t __future__RRRRUt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRtansible.module_utils.basicRtobjectR ReRR(((sC/usr/lib/python2.7/site-packages/ansible/modules/storage/zfs/zfs.pyts   '  2