??????????????
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 m Z dd l mZmZddlmZddlmZydd lZeZWnek rÕZeZnXdefd„ƒYZd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysö lookup: consul_kv version_added: "1.9" short_description: Fetch metadata from a Consul key value store. description: - Lookup metadata for a playbook from the key value store in a Consul cluster. Values can be easily set in the kv store with simple rest commands - C(curl -X PUT -d 'some-value' http://localhost:8500/v1/kv/ansible/somedata) requirements: - 'python-consul python library U(https://python-consul.readthedocs.io/en/latest/#installation)' options: _raw: description: List of key(s) to retrieve. type: list required: True recurse: type: boolean description: If true, will retrieve all the values that have the given key as prefix. default: False index: description: - If the key has a value with the specified index then this is returned allowing access to historical values. datacenter: description: - Retrieve the key from a consul datatacenter other than the default for the consul host. version_added: "2.9" token: description: The acl token to allow access to restricted values. host: default: localhost description: - The target to connect to, must be a resolvable address. Will be determined from C(ANSIBLE_CONSUL_URL) if that is set. - "C(ANSIBLE_CONSUL_URL) should look like this: C(https://my.consul.server:8500)" env: - name: ANSIBLE_CONSUL_URL ini: - section: lookup_consul key: host version_added: "2.8" port: description: - The port of the target host to connect to. - If you use C(ANSIBLE_CONSUL_URL) this value will be used from there. default: 8500 scheme: default: http description: - Whether to use http or https. - If you use C(ANSIBLE_CONSUL_URL) this value will be used from there. version_added: "2.8" validate_certs: default: True description: Whether to verify the ssl connection or not. env: - name: ANSIBLE_CONSUL_VALIDATE_CERTS ini: - section: lookup_consul key: validate_certs version_added: "2.8" client_cert: description: The client cert to verify the ssl connection. env: - name: ANSIBLE_CONSUL_CLIENT_CERT ini: - section: lookup_consul key: client_cert version_added: "2.8" sæ - debug: msg: 'key contains {{item}}' with_consul_kv: - 'key/to/retrieve' - name: Parameters can be provided after the key be more specific about what to retrieve debug: msg: 'key contains {{item}}' with_consul_kv: - 'key/to recurse=true token=E6C060A9-26FB-407A-B83E-12DDAFCB4D98' - name: retrieving a KV from a remote cluster on non default port debug: msg: "{{ lookup('consul_kv', 'my/key', host='10.10.10.10', port='2000') }}" s= _raw: description: - Value(s) stored in consul. N(turlparse(t AnsibleErrortAnsibleAssertionError(t LookupBase(tto_textt LookupModulecB`seZdd„Zd„ZRS(cK`s%tstdƒ‚ng}yÚxÓ|D]Ë}|j|ƒ}yvtjd}tjdpZt}tjdpmd} t|ƒ} tj d| j d| j d| j d|d | ƒ} Wn•t k rG|jdd ƒ} |jdd ƒ} |jdd ƒ}|jd tƒ}|jddƒ} tj d| d| d|d|d | ƒ} nX| jj|dd|dd|dd|dd|dƒ}|dr%t|dtƒrÒxG|dD]}|jt|dƒƒq®Wqð|jt|ddƒƒq%q%WWn)tk r }td||fƒ‚nX|S(Nsppython-consul is required for consul_kv lookup. see http://python-consul.readthedocs.org/en/latest/#installationtANSIBLE_CONSUL_URLtANSIBLE_CONSUL_VALIDATE_CERTStANSIBLE_CONSUL_CLIENT_CERTthosttporttschemetverifytcertt8500t localhostthttptvalidate_certst client_certtkeyttokentindextrecursetdct datacenteritValues-Error locating '%s' in kv store. Error was %s(t HAS_CONSULR t parse_paramstostenvirontTruetNoneRtconsultConsulthostnameRRtKeyErrortgettkvt isinstancetlisttappendR t Exception(tselfttermst variablestkwargstvaluesttermtparamsturlRRtut consul_apiRRRtresultstrte((sD/usr/lib/python2.7/site-packages/ansible/plugins/lookup/consul_kv.pytrunysH    *  !      &cC`sÚ|jdƒ}i|dd6dd6td6dd6dd6}yrxk|dD]_}|rJt|ƒdkrJ|jd ƒ\}}||krœtd |ƒ‚n|||((sD/usr/lib/python2.7/site-packages/ansible/plugins/lookup/consul_kv.pyR#¥s"   N(t__name__t __module__R'R?R#(((sD/usr/lib/python2.7/site-packages/ansible/plugins/lookup/consul_kv.pyR ws ,(t __future__RRRttypet __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNR$t+ansible.module_utils.six.moves.urllib.parseRtansible.errorsR R tansible.plugins.lookupR tansible.module_utils._textR R(R&R"t ImportErrorR>RCR (((sD/usr/lib/python2.7/site-packages/ansible/plugins/lookup/consul_kv.pyts$   F