%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/postgres_cluster.pyc |
�
���^c @@ sM d Z d d l m Z m Z m Z d � Z d d d d d � Z d � Z d S( uG
Management of PostgreSQL clusters
=================================
The postgres_cluster state module is used to manage PostgreSQL clusters.
Clusters can be set as either absent or present
.. code-block:: yaml
create cluster 9.3 main:
postgres_cluster.present:
- name: 'main'
- version: '9.3'
i ( t absolute_importt unicode_literalst print_functionc C@ s d t k r t d f St S( u9
Only load if the deb_postgres module is present
u postgres.cluster_existsuF Unable to load postgres module. Make sure `postgres.bins_dir` is set.( t __salt__t Falset True( ( ( s@ /usr/lib/python2.7/site-packages/salt/states/postgres_cluster.pyt __virtual__ s
c
C@ s� d j | | � } i | d 6i d 6t d 6| d 6} t d | | � r� t d d t � } | d j | | � } t | r� | | d
k n t | r� | | d k n t f � r� d j | | � | d <t | d <n | St j d
� rd | d <d } | j | | � | d <| St d d | d | d | d | d | d | � }
|
r~d } | j | | � | d <d | d d j | | � <n&