puppet-gluster
puppet-gluster copied to clipboard
Duplicate declaration
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.
You don't need to specify Peer resources when you have them declared as serving your bricks.
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.