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

Possibly support Multi-master and/or Mirror mode #10

Open
bodgit opened this issue May 1, 2015 · 4 comments
Open

Possibly support Multi-master and/or Mirror mode #10

bodgit opened this issue May 1, 2015 · 4 comments
Assignees

Comments

@bodgit
Copy link
Owner

bodgit commented May 1, 2015

No description provided.

@bodgit bodgit self-assigned this May 1, 2015
@bodgit
Copy link
Owner Author

bodgit commented Jul 8, 2015

ITS#7274

@Kyoshiro-san
Copy link

Hi,

I needed this feature, so I added it quickly.
A patch is attached, it's quite simple and I hope I didn't make any errors in there.

puppet-openldap-mirrormode.diff.txt

@bodgit
Copy link
Owner Author

bodgit commented Sep 14, 2016

In theory, what you've provided describes the end state correctly, however the documentation is not very clear and I've seen conflicting reports/howtos that state you should first set olcServerID to just a number before setting it to a list of ID + URL pairs. Also, in the ITS ticket I posted as a reminder to myself, you supposedly should set the server ID after the syncprov overlay has been enabled on the database so on a fresh install I'd need to defer setting the server ID until the overlay has been enabled which would perhaps need multiple Puppet runs which I'd like to avoid.

Sadly I don't think it's as simple as just adding those extra settings which is why I've not done it yet. I'd love to find a canonical document that explains the correct steps and more importantly why it has to be done that way.

@Kyoshiro-san
Copy link

You're right, official documentation indeed states it should have a standalone numeric ServerID first :
http://www.openldap.org/doc/admin24/replication.html
I noticed that but since we're still in project mode I took my chances anyways, but I'm no OpenLDAP expert... I don't know why it is required, or if it is at all in fact, but I'd be interested to know too !

Do you think it's possible to achieve such configuration in one puppet run ? Maybe with multiple reload calls and dependencies ?

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

No branches or pull requests

2 participants