Resource Type: mongodb_conn_validator

Defined in:
lib/puppet/type/mongodb_conn_validator.rb
Providers:
tcp_port

Overview

Verify that a connection can be successfully established between a node and the mongodb server. Its primary use is as a precondition to prevent configuration changes from being applied if the mongodb server cannot be reached, but it could potentially be used for other purposes such as monitoring.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent

Parameters

  • name (namevar)

    An arbitrary name used as the identity of the resource. It can also be the connection string to test (ie. 127.0.0.1:27017)

  • port (defaults to: 27017)

    The port that the mongodb server should be listening on.

  • provider

    The specific backend to use for this ‘mongodb_conn_validator` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • server (defaults to: 127.0.0.1)

    An array containing DNS names or IP addresses of the server where mongodb should be running.

  • timeout (defaults to: 60)

    The max number of seconds that the validator should wait before giving up and deciding that puppetdb is not running; defaults to 60 seconds.