??????????????
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 Zd Z dd l Z dd l Z dd l m Z d efd„ƒYZd„Zedkr¯eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysË --- module: beadm short_description: Manage ZFS boot environments on FreeBSD/Solaris/illumos systems. description: - Create, delete or activate ZFS boot environments. - Mount and unmount ZFS boot environments. version_added: "2.3" author: Adam Å tevko (@xen0l) options: name: description: - ZFS boot environment name. type: str required: True aliases: [ "be" ] snapshot: description: - If specified, the new boot environment will be cloned from the given snapshot or inactive boot environment. type: str description: description: - Associate a description with a new boot environment. This option is available only on Solarish platforms. type: str options: description: - Create the datasets for new BE with specific ZFS properties. - Multiple options can be specified. - This option is available only on Solarish platforms. type: str mountpoint: description: - Path where to mount the ZFS boot environment. type: path state: description: - Create or delete ZFS boot environment. type: str choices: [ absent, activated, mounted, present, unmounted ] default: present force: description: - Specifies if the unmount should be forced. type: bool default: false s - name: Create ZFS boot environment beadm: name: upgrade-be state: present - name: Create ZFS boot environment from existing inactive boot environment beadm: name: upgrade-be snapshot: be@old state: present - name: Create ZFS boot environment with compression enabled and description "upgrade" beadm: name: upgrade-be options: "compression=on" description: upgrade state: present - name: Delete ZFS boot environment beadm: name: old-be state: absent - name: Mount ZFS boot environment on /tmp/be beadm: name: BE mountpoint: /tmp/be state: mounted - name: Unmount ZFS boot environment beadm: name: BE state: unmounted - name: Activate ZFS boot environment beadm: name: upgrade-be state: activated sñ name: description: BE name returned: always type: str sample: pre-upgrade snapshot: description: ZFS snapshot to create BE from returned: always type: str sample: rpool/ROOT/oi-hipster@fresh description: description: BE description returned: always type: str sample: Upgrade from 9.0 to 10.0 options: description: BE additional options returned: always type: str sample: compression=on mountpoint: description: BE mountpoint returned: always type: str sample: /mnt/be state: description: state of the target returned: always type: str sample: present force: description: If forced action is wanted returned: always type: bool sample: False N(t AnsibleModuletBEcB`skeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z RS( cC`s–||_|jd|_|jd|_|jd|_|jd|_|jd|_|jd|_|jd|_t j ƒdd k|_ dS( Ntnametsnapshott descriptiontoptionst mountpointtstatetforceitFreeBSD( tmoduletparamsR R R R RRRtostunamet is_freebsd(tselfR((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt__init__–s cC`s^|jjdƒg}|jdƒ|jdƒd|jkrN|jdƒn|jj|ƒS(Ntbeadmtlists-Ht@s-s(Rt get_bin_pathtappendR t run_command(Rtcmd((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt _beadm_list¢s   cC`sÙd|jkrƒxÃ|jƒD]`}|jrVtjdj|jƒ|ƒ}|r||Sq|jdƒ}|d|jkr|SqWnR|jr’dnd}x:|jƒD],}|j|ƒ}|d|jkr¥|Sq¥WdS(NRs .+/({0})\s+\-t;is i(R t splitlinesRtretmatchtformattsplittNone(Rtouttlinetchecktsplitter((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt_find_be_by_nameªs  cC`sC|jƒ\}}}|dkr;|j|ƒr4tStSntSdS(Ni(R R,tTruetFalse(RtrcR(t_((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pytexists¾s  cC`s‰|jƒ\}}}|dkr…|j|ƒ}|jre|dk r‚d|jdƒdkr‚tSq…d|jdƒdkr…tSntS(NitRs iR!i(R R,RR'R&R-R.(RR/R(R0R)((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt is_activatedÉs  %cC`sB|jjdƒg}|jdƒ|j|jƒ|jj|ƒS(NRtactivate(RRRR R(RR((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt activate_be×s cC`sÉ|jjdƒg}|jdƒ|jrK|jdƒ|j|jƒn|js©|jr}|jdƒ|j|jƒn|jr©|jdƒ|j|jƒq©n|j|jƒ|jj|ƒS(NRtcreates-es-ds-o( RRRR RR R R R(RR((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt create_beßs        cC`sO|jjdƒg}|jdƒ|jdƒ|j|jƒ|jj|ƒS(NRtdestroys-F(RRRR R(RR((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt destroy_beõs   cC`s|jƒ\}}}|dkrŒ|j|ƒ}|jrr|jdƒddkr‰|jdƒddkr‰tSqŒ|jdƒdrŒtSntS(Nis it-t/R!i(R R,RR&R-R.(RR/R(R0R)((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt is_mountedþs  cC`s^|jjdƒg}|jdƒ|j|jƒ|jrN|j|jƒn|jj|ƒS(NRtmount(RRRR RR(RR((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pytmount_bes   cC`s[|jjdƒg}|jdƒ|jr;|jdƒn|j|jƒ|jj|ƒS(NRtunmounts-f(RRRRR R(RR((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt unmount_bes   ( t__name__t __module__RR R,R1R3R5R7R9R<R>R@(((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyR •s       cC`sÔtdtdtdddtddgƒdtddƒd tddƒd tddƒd tdd ƒd tddddddddddgƒdtdddtƒƒdtƒ}t|ƒ}d}d}d}i}|j|d<|j|d <|jr|j|dR@(RRHR/R(terrtresult((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pytmain&s¶*                                       t__main__(t __future__RRRRDt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNRR#tansible.module_utils.basicRtobjectR R^RA(((s@/usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyts   2)&  ‘ ‚