??????????????
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 @` s9 d d l m Z m Z m Z e Z d Z d Z d Z d d l m
Z
d d l m Z d d l
m Z m Z m Z d d l m Z m Z d d l m Z d d
l m Z d d l m Z d d l m Z d d
l Z d d
l Z d d
l Z e Z d e f d YZ! d e" f d YZ# d e f d YZ$ d
S( i ( t absolute_importt divisiont print_functions
author:
- Kyrylo Galanov (galanoff@gmail.com)
lookup: manifold
version_added: "2.8"
short_description: get credentials from Manifold.co
description:
- Retrieves resources' credentials from Manifold.co
options:
_terms:
description:
- Optional list of resource labels to lookup on Manifold.co. If no resources are specified, all
matched resources will be returned.
type: list
elements: string
required: False
api_token:
description:
- manifold API token
type: string
required: True
env:
- name: MANIFOLD_API_TOKEN
project:
description:
- The project label you want to get the resource for.
type: string
required: False
team:
description:
- The team label you want to get the resource for.
type: string
required: False
s
- name: all available resources
debug: msg="{{ lookup('manifold', api_token='SecretToken') }}"
- name: all available resources for a specific project in specific team
debug: msg="{{ lookup('manifold', api_token='SecretToken', project='poject-1', team='team-2') }}"
- name: two specific resources
debug: msg="{{ lookup('manifold', 'resource-1', 'resource-2') }}"
s
_raw:
description:
- dictionary of credentials ready to be consumed as environment variables. If multiple resources define
the same environment variable(s), the last one returned by the Manifold API will take precedence.
type: dict
( t AnsibleError( t
LookupBase( t open_urlt ConnectionErrort SSLValidationError( t HTTPErrort URLError( t urlencode( t six( t Display( t format_exceptionNt ApiErrorc B` s e Z RS( ( t __name__t
__module__( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/manifold.pyR I s t ManifoldApiClientc B` sY e Z d Z d Z d Z d Z d d d d Z d d Z d d Z d Z
RS( s+ https://api.{api}.manifold.co/v1/{endpoint}s python-manifold-ansible-1.0.0c C` s
| | _ d S( N( t _token( t selft token( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/manifold.pyt __init__Q s c O` sψ i d j | j d 6d d 6} | j j d | d | } | } | j d d } | ri | j | n yu t j d j | t | d | d | j | | } | j
}
| j j d
d k rΩ t
j |
}
n |
SWnt k
rt d j d
|
d | nε t k
rQ} t d j d t | d | d | j
n£ t k
r} t d j d | d t | nm t k
r½} t d j d | d t | n7 t k
rσ} t d j d | d t | n Xd S( s³
Send a request to API backend and pre-process a response.
:param api: API to send a request to
:type api: str
:param endpoint: API endpoint to fetch data from
:type endpoint: str
:param args: other args for open_url
:param kwargs: other kwargs for open_url
:return: server response. JSON response is automatically deserialized.
:rtype: dict | list | str
s
Bearer {0}t
Authorizations */*t Acceptt apit endpointt headerss! manifold lookup connecting to {0}t
http_agents content-types application/jsons<