??????????????
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ΚddlmZmZmZeZdZdZddlZddl m Z ddl m Z ddlmZddlmZdd lmZmZdd lmZdd lmZd efd „ƒYZdS(i(tabsolute_importtdivisiontprint_functionsG name: online plugin_type: inventory author: - Remy Leone (@sieben) short_description: Online inventory source description: - Get inventory hosts from Online options: plugin: description: token that ensures this is a source file for the 'online' plugin. required: True choices: ['online'] oauth_token: required: True description: Online OAuth token. env: # in order of precedence - name: ONLINE_TOKEN - name: ONLINE_API_KEY - name: ONLINE_OAUTH_TOKEN hostnames: description: List of preference about what to use as an hostname. type: list default: - public_ipv4 choices: - public_ipv4 - private_ipv4 - hostname groups: description: List of groups. type: list choices: - location - offer - rpn sΗ # online_inventory.yml file in YAML format # Example command line: ansible-inventory --list -i online_inventory.yml plugin: online hostnames: - public_ipv4 groups: - location - offer - rpn N(tversion(t AnsibleError(topen_url(tBaseInventoryPlugin(t to_nativetto_text(t __version__(turljointInventoryModulecB`s›eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z e d „ƒZd „Zd „Zd„Zed„ZRS(tonlineshttps://api.online.netcC`sFy|dddSWn+tttfk rA|jjdƒdSXdS(NtnetworktipisLAn error happened while extracting public IPv4 address. Information skipped.(tKeyErrort TypeErrort IndexErrortdisplaytwarningtNone(tselft host_infos((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytextract_public_ipv4Ls cC`sFy|dddSWn+tttfk rA|jjdƒdSXdS(NR tprivateisMAn error happened while extracting private IPv4 address. Information skipped.(RRRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytextract_private_ipv4Ss cC`s?y|ddSWn(ttfk r:|jjdƒdSXdS(Ntostnames@An error happened while extracting OS name. Information skipped.(RRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytextract_os_nameZs cC`s?y|ddSWn(ttfk r:|jjdƒdSXdS(NRRsCAn error happened while extracting OS version. Information skipped.(RRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytextract_os_versionas cC`s;y |dSWn(ttfk r6|jjdƒdSXdS(NthostnamesAAn error happened while extracting hostname. Information skipped.(RRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytextract_hostnamehs  cC`s?y|ddSWn(ttfk r:|jjdƒdSXdS(Ntlocationt datacentersLAn error happened while extracting datacenter location. Information skipped.(RRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytextract_locationos cC`s;y |dSWn(ttfk r6|jjdƒdSXdS(NtoffersIAn error happened while extracting commercial offer. Information skipped.(RRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyt extract_offervs  cC`sBy|j|dSWn(ttfk r=|jjdƒdSXdS(NtidsHAn error happened while extracting RPN information. Information skipped.(trpn_lookup_cacheRRRRR(RR((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyt extract_rpn}s cC`s΅yt|d|jƒ}Wn(tk rC}|jjd|ƒdSXyt|jƒddƒ}Wntk rt dƒ‚nXyt j |ƒSWnt k r°t dƒ‚nXdS(Ntheaderss$An error happened while fetching: %sterrorstsurrogate_or_stricts9Incorrect encoding of fetched payload from Online serverssIncorrect JSON payload( RR(t ExceptionRRRRtreadt UnicodeErrorRtjsontloadst ValueError(Rturltresponsetetraw_data((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyt_fetch_information„s  cC`sBi}x5|D]-}x$|dD]}|d||dR?R@RA(t inventoryt set_variableRRRR(RRRttargeted_attributest attribute((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyt_fill_host_variabless* "%%%cC`s9x2|D]*}|j||ƒr|j||ƒSqWdS(N(t extractorsR(RRthostname_preferencestpref((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyt _filter_hostΊs cC`s©|jd|d|ƒ}|s"dS|jjd|ƒ|jd|d|ƒxW|D]O}|j||ƒ}|sudS|jjd|ƒ|jjd|d|ƒqRWdS(NRRLthostRtgroup(RNRFtadd_hostRJtgroup_extractorst add_group(RRRLtgroup_preferencesRtgRP((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pytdo_server_inventoryΒs  cC`sΕtt|ƒj|||ƒ|jd|ƒ|jdƒ}|jdƒ}|jdƒ}|dkrng}ni|jd6|jd6|jd6|_ i|j d6|j d 6|j d 6|_ id |d 6d ttjdƒdfd6dd6|_ttjdƒ}|jd|ƒ} d |kr^ttjdƒ} |jd| ƒ} |j| ƒ|_nx`| D]X} ttj| ƒ} |jd| ƒ}|dkr‘qen|jd|d|d|ƒqeWdS(Ntpatht oauth_tokent hostnamestgroupsRBt private_ipv4RR R#R9s Bearer %st Authorizationsansible %s Python %st is User-Agentsapplication/jsons Content-types api/v1/serverR1sapi/v1/rpn/groupRRLRT(tsuperR tparset_read_config_datat get_optionRRRRRKR"R$R'RRtansible_versiontpython_versiontsplitR(R t API_ENDPOINTR5R;R&RV(RRFtloaderRWtcachettokenRLRTt servers_urltservers_api_pathtrpn_groups_urlR7tserver_api_patht server_urltraw_server_info((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyR_ΧsB           (t__name__t __module__tNAMEReRRRRRR"R$R'R5t staticmethodR;RJRNRVtTrueR_(((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyR Hs             (t __future__RRRttypet __metaclass__t DOCUMENTATIONtEXAMPLESR.tsysRRctansible.errorsRtansible.module_utils.urlsRtansible.plugins.inventoryRtansible.module_utils._textRRt$ansible.module_utils.ansible_releaseR Rbt+ansible.module_utils.six.moves.urllib.parseR R (((sD/usr/lib/python2.7/site-packages/ansible/plugins/inventory/online.pyts'