Server IP : 85.193.89.191 / Your IP : 18.226.187.193 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/ansible/plugins/inventory/ |
Upload File : |
� � �\c @` s d d l m Z m Z m Z e Z d Z d Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z y4 d d l Z e e j � e d � k r� e � n Wn e k r� e d � � n Xd d l m Z d e e f d � � YZ d S( i ( t absolute_importt divisiont print_functionsD 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 alwys 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:300' user: description: foreman authentication user required: True password: description: foreman authentication password required: True 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 N( t MutableMapping( t LooseVersion( t AnsibleError( t to_bytest to_native( t BaseInventoryPlugint Cacheables 1.1.0s= This script requires python-requests 1.1 as a minimum version( t HTTPBasicAutht InventoryModulec B` s} e Z d Z d Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � Z RS( s<