%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/mongodb_database.pyc |
�
���^c @@ sM d Z d d l m Z m Z m Z d Z d � Z d d d d d d � Z d S( u�
Management of MongoDB Databases
===============================
:depends: - pymongo Python module
Only deletion is supported, creation doesn't make sense and can be done using
:py:func:`mongodb_user.present <salt.states.mongodb_user.present>`.
i ( t absolute_importt print_functiont unicode_literalsu mongodb_databasec C@ s d t k r t St S( Nu mongodb.db_exists( t __salt__t __virtualname__t False( ( ( s@ /usr/lib/python2.7/site-packages/salt/states/mongodb_database.pyt __virtual__ s c C@ s� i | d 6i d 6t d 6d d 6} t d | | | | | d | �r� t d ro d | d <d j | � | d <| St d
| | | | | d | �r� d j | � | d <d | d | <| Sn d
j | � | d <| S( u�
Ensure that the named database is absent. Note that creation doesn't make
sense in MongoDB.
name
The name of the database to remove
user
The user to connect as (must be able to create the user)
password
The password of the user
host
The host to connect to
port
The port to connect to
authdb
The database in which to authenticate
u nameu changesu resultu u commentu mongodb.db_existst authdbu testu/ Database {0} is present and needs to be removedu mongodb.db_removeu Database {0} has been removedu Absentu Database {0} is not presentN( t TrueR t __opts__t Nonet format( t namet usert passwordt hostt portR t ret( ( s@ /usr/lib/python2.7/site-packages/salt/states/mongodb_database.pyt absent s
"
"N( t __doc__t
__future__R R R R R R
R ( ( ( s@ /usr/lib/python2.7/site-packages/salt/states/mongodb_database.pyt <module>
s