Skip to content

create admin and repl set fail with password #414

@eputnam

Description

@eputnam

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:
  • Ruby:
  • Distribution: CentOS 7
  • Module version: 1.0.0

Any additional information you'd like to impart

migrated from JIRA

How to reproduce (e.g Puppet code you use)

The relevant settings for the setup

  class { 'mongodb::server':
    port           => 27017,
    dbpath         => '/data/mongo',
    bind_ip        => ['0.0.0.0'],
    auth           => true,
    keyfile        => '/opt/mongo/mongo-keyfile',
    replset        => 'rsmain',
    replset_config => {
      'rsmain' => {
        ensure  => present,
        members => ["${ip1}:27017", "${ip2}:27017"]
      }
    }
    ,
    create_admin   => true,
    admin_password => "test",
 }

i use the mongodb own repos
'https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/'

Output log

Error: /Mongodb_user[User admin on db admin]: Only one of 'password_hash' or 'password' should be provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions