??????????????
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@`sHddlmZmZmZeZdZdZddlZddl m Z ddl m Z m Z ddlmZmZddlmZdd lmZddljjjjjZd „Zd „Zd „Zd „Zd„Z d„Z!d„Z"d„Z#d„Z$ied6ed6e"d6e d6e!d6Z%de e fd„ƒYZ&dS(i(tabsolute_importtdivisiontprint_functions) name: scaleway plugin_type: inventory author: - Remy Leone (@sieben) short_description: Scaleway inventory source description: - Get inventory hosts from Scaleway options: plugin: description: token that ensures this is a source file for the 'scaleway' plugin. required: True choices: ['scaleway'] regions: description: Filter results on a specific Scaleway region type: list default: - ams1 - par1 tags: description: Filter results on a specific tag type: list oauth_token: required: True description: Scaleway OAuth token. env: # in order of precedence - name: SCW_TOKEN - name: SCW_API_KEY - name: SCW_OAUTH_TOKEN hostnames: description: List of preference about what to use as an hostname. type: list default: - public_ipv4 choices: - public_ipv4 - private_ipv4 - public_ipv6 - hostname - id variables: description: 'set individual variables: keys are variable names and values are templates. Any value returned by the L(Scaleway API, https://developer.scaleway.com/#servers-server-get) can be used.' type: dict s # scaleway_inventory.yml file in YAML format # Example command line: ansible-inventory --list -i scaleway_inventory.yml # use hostname as inventory_hostname # use the private IP address to connect to the host plugin: scaleway regions: - ams1 - par1 tags: - foobar hostnames: - hostname variables: ansible_host: private_ip state: state # use hostname as inventory_hostname and public IP address to connect to the host plugin: scaleway hostnames: - hostname regions: - par1 variables: ansible_host: public_ip.address N(t AnsibleError(tBaseInventoryPlugint Constructable(tSCALEWAY_LOCATIONtparse_pagination_link(topen_url(t to_nativec C`s*g}|}xtr%y$t|di|d6dd6ƒ}Wn/tk rj}td|t|ƒfƒ‚nXytj|jƒƒ}Wntk r£tdƒ‚nXy|j |dƒWnt k rØtdƒ‚nX|j d }|sð|St |ƒ}d |kr |St j||d ƒ}qWdS( Ntheaderss X-Auth-Tokensapplication/jsons Content-typesError while fetching %s: %ssIncorrect JSON payloadtserverss/Incorrect format from the Scaleway API responsetLinktnext(tTrueRt ExceptionRR tjsontloadstreadt ValueErrortextendtKeyErrorR Rt urllib_parseturljoin( ttokenturltresultst paginated_urltresponsetetraw_jsontlinkt relations((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt_fetch_information`s0         cC`sdj|dgƒS(Nt/R (tjoin(t api_endpoint((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt_build_server_url}scC`s/y|ddSWnttfk r*dSXdS(Nt public_iptaddress(Rt TypeErrortNone(t server_info((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pytextract_public_ipv4scC`s+y |dSWnttfk r&dSXdS(Nt private_ip(RR(R)(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pytextract_private_ipv4ˆs cC`s+y |dSWnttfk r&dSXdS(Nthostname(RR(R)(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pytextract_hostnames cC`s+y |dSWnttfk r&dSXdS(Ntid(RR(R)(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pytextract_server_id–s cC`s/y|ddSWnttfk r*dSXdS(Ntipv6R'(RR(R)(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pytextract_public_ipv6scC`s+y |dSWnttfk r&dSXdS(Nttags(RR(R)(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt extract_tags¤s cC`s/y|ddSWnttfk r*dSXdS(Ntlocationtzone_id(RR(R)(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt extract_zone«st public_ipv4t private_ipv4t public_ipv6R.R0tInventoryModulecB`sGeZdZd„Zd„Zd„Zd„Zd„Zed„Z RS(tscalewaycC`sâd }x(|D] }|jj||||ƒq W|jj|d|dƒtd|ƒr||jj|d td|ƒƒntd|ƒr­|jj|d td|ƒƒntd|ƒrÞ|jj|d td|ƒƒndS( Ntarchtcommercial_typeR0t organizationtstateR.R4R*R;R9R:(R>R?sidR@sstateshostname(t inventoryt set_variableR3R+R-(tselfthostR*ttargeted_attributest attribute((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt_fill_host_variables¾s ""cC`sttjƒƒj|ƒS(N(tsetRtkeyst intersection(RDt config_zones((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt _get_zonesÕscC`s‰td|ƒ}td|ƒ}|dkr1tƒS|dkrSt|ƒj|fƒSt|ƒj|ƒ}|sutƒS|j|fƒSdS(NR*(R8R5R)RItunionRK(RDR*R4t server_zonet server_tagst matching_tags((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt match_groupsØs  cC`s3x,|D]$}t||ƒrt||ƒSqWdS(N(t extractorsR)(RDt host_infosthostname_preferencestpref((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyt _filter_hostës c C`sÿ|jj|ƒt|}t|dƒ}td|d|ƒ}x¹|D]±}|jd|d|ƒ} | spqFn|j||ƒ} xr| D]j} |jjd| ƒ|jjd| d| ƒ|jd| d|ƒ|j |j d ƒ|| d t ƒq‰WqFWdS( NR$RRRTRUtgroupRER*t variableststrict( RBt add_groupRR%R!RWRRtadd_hostRHt_set_composite_varst get_optiontFalse( RDtzoneRR4RUt zone_infoRtraw_zone_hosts_infosRTR.tgroupsRX((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pytdo_zone_inventoryós    c C`s¨tt|ƒj|||ƒ|jd|ƒ|jdƒ}|jdƒ}|jdƒ}|jdƒ}x9|j|ƒD](} |jd| d|d|d|ƒqxWdS( NtpathtregionsR4t oauth_tokent hostnamesR`RRU(tsuperR<tparset_read_config_dataR^RMRd( RDRBtloaderRetcacheRLR4Rthostname_preferenceR`((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyRj s( t__name__t __module__tNAMERHRMRRRWRdRRj(((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyR<»s     ('t __future__RRRttypet __metaclass__t DOCUMENTATIONtEXAMPLESRtansible.errorsRtansible.plugins.inventoryRRtansible.module_utils.scalewayRRtansible.module_utils.urlsRtansible.module_utils._textR t+ansible.module_utils.six.moves.urllib.parset module_utilstsixtmovesturllibRjRR!R%R+R-R/R1R3R5R8RSR<(((sF/usr/lib/python2.7/site-packages/ansible/plugins/inventory/scaleway.pyts41