%PDF- %PDF-
| Direktori : /proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/states/keystone_domain.pyc |
�
���^c @@ sM d Z d d l m Z m Z m Z d Z d � Z d d � Z d d � Z d S( u$
Management of OpenStack Keystone Domains
========================================
.. versionadded:: 2018.3.0
:depends: shade
:configuration: see :py:mod:`salt.modules.keystoneng` for setup instructions
Example States
.. code-block:: yaml
create domain:
keystone_domain.present:
- name: domain1
create domain with optional params:
keystone_domain.present:
- name: domain1
- enabled: False
- description: 'my domain'
delete domain:
keystone_domain.absent:
- name: domain1
i ( t absolute_importt unicode_literalst print_functionu keystone_domainc C@ s d t k r t St d f S( Nu keystoneng.domain_getuT The keystoneng execution module failed to load: shade python module is not available( t __salt__t __virtualname__t False( ( ( s? /usr/lib/python2.7/site-packages/salt/states/keystone_domain.pyt __virtual__# s c K@ sK i | d 6i d 6t d 6d d 6} t d | � } t d | � t d d | � } | s� t d
r� d | d <| | d <d j | � | d <| S| | d <t d | � } | | d <d
| d <| St d | | � } | rGt d
rd | d <| | d <d j | � | d <| S| j | d <t d | � | d j | � d | d <n | S( u�
Ensure domain exists and is up-to-date
name
Name of the domain
enabled
Boolean to control if domain is enabled
description
An arbitrary description of the domain
u nameu changesu resultu u commentu args.clean_kwargsu keystoneng.setup_cloudsu keystoneng.domain_gett nameu testu Domain {} will be created.u keystoneng.domain_createu Created domainu keystoneng.compare_changesu Domain {} will be updated.u domain_idu keystoneng.domain_updateu Updated domainN( t Truet __utils__R t __opts__t Nonet formatt idt update( R t autht kwargst rett domaint changes( ( s? /usr/lib/python2.7/site-packages/salt/states/keystone_domain.pyt present) s<