Module mongodb¶
- License: Apache 2.0
- Version: 0.3.1
- Author: Inmanta <code@inmanta.com>
- Upstream project: https://github.com/inmanta/mongodb.git
Entities¶
-
entity
mongodb::Database¶ Parents:
std::StateMongodb database
-
attribute string
name¶
-
attribute bool
purged=False¶
-
relation mongodb::MongoDB
server[1]¶ other end:
mongodb::MongoDB.databases [0:*]
The following implements statements select implementations for this entity:
-
attribute string
-
entity
mongodb::MongoDB¶ Parents:
ip::services::ServerSet up a single mongodb server
-
attribute bool
smallfiles=False¶
-
attribute ip::ip
bindip='127.0.0.1'¶
-
relation mongodb::ReplicaSet
rs_master[0:1]¶ other end:
mongodb::ReplicaSet.master_server [1]
-
relation mongodb::Database
databases[0:*]¶ other end:
mongodb::Database.server [1]
-
relation mongodb::ReplicaSet
rs_slave[0:1]¶ other end:
mongodb::ReplicaSet.slave_servers [2:*]
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
mongodb::mongoServerFedoraconstraintstd::familyof(host.os,'fedora')mongodb::mongoServerEpelconstraintstd::familyof(host.os,'rhel')mongodb::mongoServerUbuntuconstraintstd::familyof(host.os,'ubuntu')
-
attribute bool
-
entity
mongodb::ReplicaSet¶ Parents:
std::EntityA mongo replica set
-
attribute string
name='rs01'¶
-
relation mongodb::MongoDB
master_server[1]¶ other end:
mongodb::MongoDB.rs_master [0:1]
-
relation mongodb::MongoDB
slave_servers[2:*]¶ other end:
mongodb::MongoDB.rs_slave [0:1]
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
-
attribute string
Implementations¶
-
implementation
mongodb::mongoServerEpel¶
-
implementation
mongodb::mongoServerFedora¶
-
implementation
mongodb::mongoServerMaster¶
-
implementation
mongodb::mongoServerUbuntu¶
Resources¶
-
class
mongodb.Database¶ - A mongodb database
- Resource for entity
mongodb::Database - Id attribute
name - Agent name
server.host.name - Handlers
mongodb.DatabaseHandler
- Resource for entity
Handlers¶
-
class
mongodb.DatabaseHandler¶ A handler to manage database on a mongodb server and snapshot/restore
(this handler currently does nothing because mongo creates its database lazily)
- Handler name
mongodb - Handler for entity
mongodb::Database
- Handler name