%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/pillar/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/pillar/confidant.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZy"ddlZddl	Ze
ZWnek
rue
ZnXeje�ZdZd�Zdd�ZdS(u�
An external pillar module for getting credentials from confidant.

Configuring the Confidant module
================================

The module can be configured via ext_pillar in the minion config:

.. code-block:: yaml

ext_pillar:
  - confidant:
      profile:
        # The URL of the confidant web service
        url: 'https://confidant-production.example.com'
        # The context to use for KMS authentication
        auth_context:
        from: example-production-iad
        to: confidant-production-iad
        user_type: service
        # The KMS master key to use for authentication
        auth_key: "alias/authnz"
        # Cache file for KMS auth token
        token_cache_file: /run/confidant/confidant_token
        # The duration of the validity of a token, in minutes
        token_duration: 60
        # key, keyid and region can be defined in the profile, but it's
        # generally best to use IAM roles or environment variables for AWS
        # auth.
        keyid: 98nh9h9h908h09kjjk
        key: jhf908gyeghehe0he0g8h9u0j0n0n09hj09h0
        region: us-east-1

:depends: confidant-common, confidant-client

Module Documentation
====================
i(tabsolute_importtprint_functiontunicode_literalsNu	confidantcC@str
tStSdS(u9
    Only return if requests and boto are installed.
    N(tHAS_LIBSt__virtualname__tFalse(((s9/usr/lib/python2.7/site-packages/salt/pillar/confidant.pyt__virtual__<scC@s�|dkri}nitd6dd6dd6}tj|�}|jdt�r_t|d<|S|jdd�}y,|d}|d	}|d
}|d}	Wn+ttfk
r�d}
tj	|
�|SX|jd
d�}|jdd�}|jdd�}
|jd�}|jdd�}t
jj|||d|d|d|d|d|
d|�}y|j
|	dt�}Wnt
jjk
r�|SX|ds�|St
jj|�}t|d<|S(u6
    Read pillar data from Confidant via its API.
    ucredentials_resultucredentialsucredentials_metadataudisableduresultu
token_versioniuurluauth_keyuauth_contextufromu3profile has undefined url, auth_key or auth_contexturegionu	us-east-1utoken_durationi<uretriesiutoken_cache_fileubackoffttoken_lifetimet
token_versionttoken_cache_filetregiontretriestbackofft
decrypt_blindN(tNoneRtcopytdeepcopytgettTruetKeyErrort	TypeErrortlogtdebugt	confidanttclienttConfidantClienttget_servicetTokenCreationErrort	formattertcombined_credential_pair_format(t	minion_idtpillartprofiletrettprofile_dataRturltauth_keytauth_contexttroletmsgR
ttoken_durationRR	RRtdata((s9/usr/lib/python2.7/site-packages/salt/pillar/confidant.pyt
ext_pillarFs\	





		


(t__doc__t
__future__RRRtloggingRtconfidant.clientRtconfidant.formatterRRtImportErrorRt	getLoggert__name__RRRRR*(((s9/usr/lib/python2.7/site-packages/salt/pillar/confidant.pyt<module>'s


	

Zerion Mini Shell 1.0