??????????????
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¨ddlZddlZddlZddlZddlZddlmZdefd„ƒYZdefd„ƒYZ defd„ƒYZ d efd „ƒYZ dS( iÿÿÿÿN(t configparsertRegistrationBasecBsYeZddd„Zd„Zd„Zd„Zd„Zd„Ze d„Z d„Z RS( cCs||_||_||_dS(N(tmoduletusernametpassword(tselfRRR((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt__init__'s  cCstdƒ‚dS(Ns"Must be implemented by a sub-class(tNotImplementedError(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt configure,scCs,d}tjj|ƒr(tj|ƒndS(Ns/etc/yum.repos.d/redhat.repo(tostpathtisfiletunlink(Rt redhat_repo((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pytenable/scCstdƒ‚dS(Ns"Must be implemented by a sub-class(R(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pytregister5scCstdƒ‚dS(Ns"Must be implemented by a sub-class(R(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt unregister8scCstdƒ‚dS(Ns"Must be implemented by a sub-class(R(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt unsubscribe;scCsÉd|}tjj|ƒrÅtjƒ\}}tj||ƒtjƒ}|j |gƒ|rv|j dddƒn|j dddƒt |dƒ}|j |ƒ|j ƒ|jj||ƒndS(Ns/etc/yum/pluginconf.d/%s.conftmaintenablediisw+(R R R ttempfiletmkstemptshutiltcopy2Rt ConfigParsertreadtsettopentwritetcloseRt atomic_move(RtpluginRt plugin_confttmpfdttmpfiletcfgtfd((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pytupdate_plugin_conf>s    cKstdƒ‚dS(Ns"Must be implemented by a sub-class(R(Rtkwargs((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt subscribeQsN( t__name__t __module__tNoneRRRRRRtTrueR%R'(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR&s      tRhsmcBsheZd d d„Zdd„Zd„Zd„Zed„ƒZd„Z d„Z d„Z d „Z RS( cCs2tj||||ƒ|jƒ|_||_dS(N(RRt _read_configtconfigR(RRRR((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRVss/etc/rhsm/rhsm.confcCsDtjƒ}|j|ƒdd„}tj||tjƒ|_|S(s Load RHSM configuration from /etc/rhsm/rhsm.conf. Returns: * ConfigParser object tcSsQ|jddƒ\}}|j|ƒrI|j||ƒrI|j||ƒS|SdS(Nt.i(tsplitt has_sectiont has_optiontget(Rtkeytdefaulttsecttopt((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pytget_option_defaulths!(RRRttypest MethodTypet get_option(Rt rhsm_conftcpR9((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR-[s    cCs1tj|ƒ|jdtƒ|jdtƒdS(sÈ Enable the system to receive updates from subscription-manager. This involves updating affected yum plugins and removing any conflicting yum repositories. t rhnpluginssubscription-managerN(RRR%tFalseR+(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRss cKs{ddg}xR|jƒD]D\}}tjd|ƒr|jd|jddƒ|fƒqqW|jj|dtƒdS( s¦ Configure the system as directed for registration with RHN Raises: * Exception - if error occurs while running command ssubscription-managerR.s^(system|rhsm)_s--%s=%st_R0tcheck_rcN(titemstretsearchtappendtreplaceRt run_commandR+(RR&targstktv((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR}s  *cCsEddg}|jj|dtƒ\}}}|dkr=tStSdS(s¾ Determine whether the current system Returns: * Boolean - whether the current system is currently registered to RHN. ssubscription-managertidentityRBiN(RRHR@R+(RRItrctstdouttstderr((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt is_registeredŽs  ! c Cs™ddg}|r&|jd|ƒnN|r<|jdƒn|rX|jd|gƒn|rt|jd|gƒn|jj|dtƒ\}}}dS( s¢ Register the current system to the provided RHN server Raises: * Exception - if error occurs while running command ssubscription-managerRs--activationkey "%s"s--autosubscribes --usernames --passwordRBN(RFtextendRRHR+( RRRt autosubscribet activationkeyRIRMRORN((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRs cCs4dddg}|jj|dtƒ\}}}dS(s Unsubscribe a system from all subscribed channels Raises: * Exception - if error occurs while running command ssubscription-managerRs--allRBN(RRHR+(RRIRMRORN((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR³scCsQddg}|jj|dtƒ\}}}|jdtƒ|jdtƒdS(s” Unregister a currently registered system Raises: * Exception - if error occurs while running command ssubscription-managerRRBR?N(RRHR+R%R@(RRIRMRORN((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR¼s !cCs7t|jƒ}x!|j|ƒD]}|jƒqWdS(sÍ Subscribe current system to available pools matching the specified regular expression Raises: * Exception - if error occurs while running command N(t RhsmPoolsRtfilterR'(Rtregexptavailable_poolstpool((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR'Çs N( R(R)R*RR-RRtpropertyRPRRRR'(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR,Us    tRhsmPoolcBs)eZdZd„Zd„Zd„ZRS(sD Convenience class for housing subscription information cKs:||_x*|jƒD]\}}t|||ƒqWdS(N(RRCtsetattr(RRR&RJRK((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRÛs cCst|jdƒƒS(Nt_name(tstrt__getattribute__(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyt__str__àscCsFd|j}|jj|dtƒ\}}}|dkr>tStSdS(Ns(subscription-manager subscribe --pool %sRBi(tPoolIdRRHR+R@(RRIRMRNRO((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyR'ãs  ! (R(R)t__doc__RR_R'(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRZÖs  RTcBs5eZdZd„Zd„Zd„Zdd„ZRS(sO This class is used for manipulating pools subscriptions with RHSM cCs||_|jƒ|_dS(N(Rt_load_product_listtproducts(RR((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRðs cCs |jjƒS(N(Rct__iter__(R((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRdôsc Csd}|jj|dtƒ\}}}g}xÔ|jdƒD]Ã}|jƒ}t|ƒdkrgq=q=d|kr=|jddƒ\}}|jƒjddƒ}|jƒ}|dkrà|jt|jd |d |ƒƒq|r|d j ||ƒqq=q=W|S(sT Loads list of all available pools for system in data structure s%subscription-manager list --availableRBs it:it R/t ProductNametSubscriptionNameR\R5iÿÿÿÿ(RgRh( RRHR+R1tstriptlenRGRFRZt __setattr__( RRIRMRNRORctlineR5tvalue((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRb÷s !    %s^$ccsAtj|ƒ}x+|jD] }|j|jƒr|VqqWdS(sc Return a list of RhsmPools whose name matches the provided regular expression N(RDtcompileRcRER\(RRVtrtproduct((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRUs(R(R)RaRRdRbRU(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyRTìs    ( R RDRRR:tansible.module_utils.six.movesRtobjectRR,RZRT(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/redhat.pyts     /