Puppet Class: mongodb::shardsvr

Defined in:
manifests/shardsvr.pp

Summary

Wrapper class useful for hiera based deployments

Overview

Examples:

hieradata

mongodb::shardsvr::shards:
  shard01:
    keys:
      - {x: 1}
    members:
      - shardhost01.exmaple.com:30000
      - shardhost02.exmaple.com:30000
      - shardhost03.exmaple.com:30000

Parameters:

  • shards (Any) (defaults to: undef)

    Hash of attributes as described in the mongodb_shardsvr custom type



16
17
18
19
20
21
22
# File 'manifests/shardsvr.pp', line 16

class mongodb::shardsvr (
  $shards = undef
) {
  if $shards {
    create_resources(mongodb_shard, $shards)
  }
}