Closed Bug 663883 Opened 13 years ago Closed 13 years ago

Create vagrant scripts to install a working Mozillians instance

Categories

(Participation Infrastructure :: Phonebook, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: davedash, Assigned: ozten)

Details

(Whiteboard: [qa-])

Per our conversation, we want somehting so devs don't have to install openLDAP on their machines, but they can run it virutally in a VirtualBox vm using the magic of vagrant and puppet.

To test this, I and any other developers that work on Mozillians will dogfood this script to work on Mozillians.
For what it's worth, I've started playing with a playdoh project using Vagrant and Puppet here:

https://github.com/lmorchard/badger2/blob/master/Vagrantfile
https://github.com/lmorchard/badger2/blob/master/puppet/manifests/dev.pp

It's still in rough shape after about an hour of tinkering. But, it could help point the way.
If this is done EOD 6/30 then I can add the LDAP pieces by EOD 7/1.
I'll see if I can't throw this vagrant / puppet voodoo into a fork of playdoh. That should make it not too hard to cherrypick into another playdoh project

https://github.com/lmorchard/playdoh
I've got a first cut of this based on @lorchard's work.

I've compiled Berkeley DB, OpenSSL, Cyrus SASL, and OpenLDAP.

I'm debugging 1 issues, so keeping bug open.
Assignee: tofumatt → ozten.bugs
I've found that slapd will deadlock. Not sure why. I tried flushing to disk and changing BDB checkpoint settings.

I'm setting up an Ubuntu 10.04 vm and it doesn't exhibit the deadlock. I'll probably switch to Ubuntu.
(In reply to comment #6)
> I've found that slapd will deadlock. Not sure why. I tried flushing to disk
> and changing BDB checkpoint settings.
> 
> I'm setting up an Ubuntu 10.04 vm and it doesn't exhibit the deadlock. I'll
> probably switch to Ubuntu.

Ugh, hopefully that doesn't happen in production, or at least we have solutions for it there.
See https://github.com/mozilla/mozillians/blob/base/INSTALL for steps to run mozillians.org.

I've switched to Ubuntu for now. Here is how the puppet configs changed.
https://github.com/mozilla/mozillians/commit/e008b0b3f4ab58823595e982cca28e29c70627bc

Note: I've not done 100% of the compatibility work, to be able to fold this back into playdoh, due to time constraints.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
If you get
[default] Could not run: Could not find file dev-vagrant.pp
or another error, try try again.

vagrant halt && vagrant up

Is a lightweight retry.
(In reply to comment #9)
> vagrant halt && vagrant up
> 
> Is a lightweight retry.

Even better is this, which just reruns Puppet on a live VM:

vagrant provision

(In reply to comment #8)
> I've switched to Ubuntu for now. Here is how the puppet configs changed.
...
> Note: I've not done 100% of the compatibility work, to be able to fold this
> back into playdoh, due to time constraints.

Kudos on getting Ubuntu forks in there - that looked painful :/
Whiteboard: [qa-]
Closing as qa-
Status: RESOLVED → VERIFIED
Component: mozillians.org → Phonebook
Product: Websites → Community Tools
QA Contact: mozillians-org → phonebook
Target Milestone: 1.0 → ---
Version: unspecified → other
You need to log in before you can comment on or make changes to this bug.