Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate declaration #128

Open
dkossako opened this issue Jul 24, 2017 · 2 comments
Open

Duplicate declaration #128

dkossako opened this issue Jul 24, 2017 · 2 comments

Comments

@dkossako
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.0.2
  • Ruby: 2.3.1
  • Distribution: Ubuntu Xenial
  • Module version: v.3.0.0

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

  class { ::gluster:
    server  => true,
    client  => false,
    repo    => false,
    volumes => {
      'backups' => {
        replica => 2,
        bricks  => [
          'sid-gfs-01.i.i.com:/mnt/backups',
          'sid-gfs-02.i.i.com:/mnt/backups',
        ],
        options => [
          'server.allow-insecure: on',
          'nfs.disable: true',
        ],
      }
    }
  }

  gluster::peer { [ 'sid-gfs-01.i.i.com' ]:
    pool    => 'gfs-backup',
    require => Class[::gluster::service],
  }

What are you seeing

Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Gluster::Peer[sid-gfs-01.i.i.com] is already declared in file modules/gluster/manifests/init.pp:73

This conf comes from examples and does not work.

@tux-o-matic
Copy link
Contributor

You don't need to specify Peer resources when you have them declared as serving your bricks.

@matthewmrichter
Copy link

Can you update the documentation to reflect this? Like this poster, I am basically using the exact code from example_01 and it's not working due to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants