%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/pillar/ |
Current File : //usr/lib/python2.7/site-packages/salt/pillar/foreman.pyo |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l m Z y d d l Z e Z Wn e k rm e Z n Xi d d 6d d 6d d 6d d 6e d 6d d 6d d 6d d 6e d 6Z e j e � Z d Z d � Z d d d � Z d S( u� A module to pull data from Foreman via its API into the Pillar dictionary Configuring the Foreman ext_pillar ================================== Set the following Salt config to setup Foreman as external pillar source: .. code-block:: yaml ext_pillar: - foreman: key: foreman # Nest results within this key only: ['hostgroup_name', 'parameters'] # Add only these keys to pillar foreman.url: https://example.com/foreman_api foreman.user: username # default is admin foreman.password: password # default is changeme The following options are optional: .. code-block:: yaml foreman.api: apiversion # default is 2 (1 is not supported yet) foreman.verifyssl: False # default is True foreman.certfile: /etc/ssl/certs/mycert.pem # default is None foreman.keyfile: /etc/ssl/private/mykey.pem # default is None foreman.cafile: /etc/ssl/certs/mycert.ca.pem # default is None foreman.lookup_parameters: True # default is True An alternative would be to use the Foreman modules integrating Salt features in the Smart Proxy and the webinterface. Further information can be found on `GitHub <https://github.com/theforeman/foreman_salt>`_. Module Documentation ==================== i ( t absolute_importt print_functiont unicode_literalsN( t sixu http://foreman/apiu foreman.urlu adminu foreman.useru changemeu foreman.passwordi u foreman.apiu foreman.verifysslu foreman.certfileu foreman.keyfileu foreman.cafileu foreman.lookup_parametersu foremanc C@ s t s t St S( u6 Only return if all the modules are available ( t HAS_REQUESTSt Falset __virtualname__( ( ( s7 /usr/lib/python2.7/site-packages/salt/pillar/foreman.pyt __virtual__H s c @ s� t d } t d } t d } t d } t d } t d } t d } t d } t d } t j d | | � y(| d k r� t j d � t � n i d t j | � d d 6} | r� | d k r� | } n t j | d | d | | f d | d | d | | f �} | j � � t j d � � | rot � } x. � d D]"