??????????????
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@`sddlmZmZmZeZdZdZddlm Z ddl m Z ddl m Z mZmZddlmZddlmZmZmZy4dd lZe ejƒe d ƒkrΙe‚nWnek rιe d ƒ‚nXdd lmZd eefd„ƒYZd S(i(tabsolute_importtdivisiontprint_functions? name: foreman plugin_type: inventory short_description: foreman inventory source version_added: "2.6" requirements: - requests >= 1.1 description: - Get inventory hosts from the foreman service. - "Uses a configuration file as an inventory source, it must end in ``.foreman.yml`` or ``.foreman.yaml`` and has a ``plugin: foreman`` entry." extends_documentation_fragment: - inventory_cache options: plugin: description: the name of this plugin, it should always be set to 'foreman' for this plugin to recognize it as it's own. required: True choices: ['foreman'] url: description: url to foreman default: 'http://localhost:3000' env: - name: FOREMAN_SERVER version_added: "2.8" user: description: foreman authentication user required: True env: - name: FOREMAN_USER version_added: "2.8" password: description: foreman authentication password required: True env: - name: FOREMAN_PASSWORD version_added: "2.8" validate_certs: description: verify SSL certificate if using https type: boolean default: False group_prefix: description: prefix to apply to foreman groups default: foreman_ vars_prefix: description: prefix to apply to host variables, does not include facts nor params default: foreman_ want_facts: description: Toggle, if True the plugin will retrieve host facts from the server type: boolean default: False want_params: description: Toggle, if true the inventory will retrieve 'all_parameters' information as host vars type: boolean default: False sy # my.foreman.yml plugin: foreman url: http://localhost:2222 user: ansible-tester password: secure validate_certs: False (t LooseVersion(t AnsibleError(tto_bytest to_nativetto_text(tMutableMapping(tBaseInventoryPlugint Cacheabletto_safe_group_nameNs1.1.0s=This script requires python-requests 1.1 as a minimum version(t HTTPBasicAuthtInventoryModulecB`steZdZdZd„Zd„Zd„Zd d„Zd„Z d„Z d„Z d „Z d „Z ed „ZRS( s< Host inventory parser for ansible using foreman as source. tforemancC`s;tt|ƒjƒd|_d|_d|_d|_dS(N(tsuperR t__init__tNonet foreman_urltsessiont cache_keyt use_cache(tself((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyR_s    cC`sMt}tt|ƒj|ƒrI|jdƒr6t}qI|jjdƒn|S(Ns foreman.yamls foreman.ymlsOSkipping due to inventory source not ending in "foreman.yaml" nor "foreman.yml"(s foreman.yamls foreman.yml(tFalseRR t verify_filetendswithtTruetdisplaytvvv(Rtpathtvalid((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyRjs  cC`sd|js]tjƒ|_t|jdƒt|jdƒƒƒ|j_|jdƒ|j_n|jS(Ntusertpasswordtvalidate_certs(RtrequestsR t get_optionRtauthtverify(R((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyt _get_sessionts  -cC`s‘|j s(||jj|jiƒkr|j|jkrTid|6|j|jR3tvaluestlistt ValueError(RthostR8tfacts((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyt _get_facts·s c C`sbx[|jƒD]M}|jdƒr |jj|dƒ|jd|jdƒƒ}|r΄td|jdƒ|jƒjddƒfƒ}|jj|ƒ}|jj ||dƒny”x|j ƒD]\}}|dkrΔy+|jj |d|jdƒ||ƒWqCt k r?}|j jd ||t|ƒfƒqCXqΔqΔWWn7t k r}|j jd |dt|ƒfƒnX|jd ƒr"xŽ|j|d ƒD]v}y&|jj |d|d|d ƒWq₯t k r}|j jd|dt|d ƒ|t|ƒfƒq₯Xq₯Wn|jdƒrZ|jj |dd|j|ƒƒqZq q WdS(Ntnamethostgroup_titlethostgroup_names%s%st group_prefixt R't vars_prefixs7Could not set host info hostvar for %s, skipping %s: %ss,Could not get host info for %s, skipping: %st want_paramsR?tvaluesACould not set hostvar %s to '%s' for the '%s' host, skipping: %st want_factst ansible_facts(snameRGRH(R:R.t inventorytadd_hostR R#tlowertreplacet add_groupt add_childtitemst set_variableRBRR4RR=RRE(RRCt group_nametktvtetp((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyt _populateΓs41 +2(& 3cC`sstt|ƒj|||ƒ|j|ƒ|jdƒ|_|j|ƒ|_|o_|jdƒ|_|j ƒdS(NR5tcache( RR tparset_read_config_dataR#Rt get_cache_keyRRR](RRPtloaderRR^((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyR_ιs  N(t__name__t __module__t__doc__tNAMERRR&RR9R:R=R>RER]RR_(((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyR Zs  .    &(t __future__RRRttypet __metaclass__t DOCUMENTATIONtEXAMPLEStdistutils.versionRtansible.errorsRtansible.module_utils._textRRRt/ansible.module_utils.common._collections_compatRtansible.plugins.inventoryR R R R"t __version__t ImportErrort requests.authR R (((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/foreman.pyts 7