%PDF- %PDF-
Direktori : /proc/self/root/lib/python2.7/site-packages/cloudinit/config/ |
Current File : //proc/self/root/lib/python2.7/site-packages/cloudinit/config/cc_rh_subscription.pyo |
� oB�]c @ s� d Z d d l m Z d d l m Z e j e � Z d d g Z d � Z d e f d � � YZ d e f d � � YZ e d � Z d S( s" RedHat Subscription ------------------- **Summary:** register red hat enterprise linux based system Register a RedHat system either by username and password *or* activation and org. Following a sucessful registration, you can auto-attach subscriptions, set the service level, add subscriptions based on pool id, enable/disable yum repositories based on repo id, and alter the rhsm_baseurl and server-hostname in ``/etc/rhsm/rhs.conf``. For more details, see the ``Register RedHat Subscription`` example config. **Internal name:** ``cc_rh_subscription`` **Module frequency:** per instance **Supported distros:** rhel, fedora **Config keys**:: rh_subscription: username: <username> password: <password> activation-key: <activation key> org: <org number> auto-attach: <true/false> service-level: <service level> add-pool: <list of pool ids> enable-repo: <list of yum repo ids> disable-repo: <list of yum repo ids> rhsm-baseurl: <url> server-hostname: <hostname> i����( t log( t utilt fedorat rhelc C s� t | d | �} | j � s2 | j d | � d S| j � s�yi| j � \ } } | t k rn t | � � n | j � } | s� t d � � n | j r� | j d k r� | j � s� t d � � q| j j d � n7 | j r| j � s� t d � � q| j j d � n | j d k rxt | j t � sBd } t | � � n | j | j � } | sxt d j | j � � � qxn | j � } | s�t d � � n | j d � Wq�t k r�} | j t | � � | j d � q�Xn | j d � d S( NR s %s: module not configured.s- Registration failed or did not run completelys Setting of service-level faileds( Completed auto-attach with service levels Setting auto-attach faileds Completed auto-attachs"