salt.states.mongodb_user

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin state modules »

# salt.states.mongodb_user

## Management of Mongodb users

`salt.states.mongodb_user.` `absent`(name, user=None, password=None, host=None, port=None, database='admin')

  Ensure that the named user is absent

  name
    The name of the user 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
  database
    The database to create the user in (if the db doesn't exist, it will be created)

`salt.states.mongodb_user.` `present`(name, passwd, database='admin', user=None, password=None, host=None, port=None)

  Ensure that the user is present with the specified properties

  name
    The name of the user to manage
  passwd
    The password of the user
  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
  database
    The database to create the user in (if the db doesn't exist, it will be created)

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin state modules »