%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/states/ |
Current File : //usr/lib/python2.7/site-packages/salt/states/mysql_grants.pyo |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d � Z d � Z d d d d e e e e d � Z d d d d e e d � Z d S( uy Management of MySQL grants (user permissions) ============================================= :depends: - MySQLdb Python module :configuration: See :py:mod:`salt.modules.mysql` for setup instructions. The mysql_grants module is used to grant and revoke MySQL permissions. The ``name`` you pass in purely symbolic and does not have anything to do with the grant itself. The ``database`` parameter needs to specify a 'priv_level' in the same specification as defined in the MySQL documentation: * \* * \*.\* * db_name.\* * db_name.tbl_name * etc... This state is not able to set password for the permission from the specified host. See :py:mod:`salt.states.mysql_user` for further instructions. .. code-block:: yaml frank_exampledb: mysql_grants.present: - grant: select,insert,update - database: exampledb.* - user: frank - host: localhost frank_otherdb: mysql_grants.present: - grant: all privileges - database: otherdb.* - user: frank restricted_singletable: mysql_grants.present: - grant: select - database: somedb.sometable - user: joe i ( t absolute_importt print_functiont unicode_literalsNc C@ s d t k S( u4 Only load if the mysql module is available u mysql.grant_exists( t __salt__( ( ( s<