Provisions a box that can run the complete Eponyms 2 stack. It installs:
- Couchbase Server 🔹
- ports
8091
and8092
- ports
- Couchbase Sync Gateway 🔹
- port
4984
open on localhost - admin port
4985
open on localhost
- port
- Eponyms 2 Python web app 🔹
- port
8000
(via gunicorn) open on localhost
- port
- nginx 🔹
By default, the provisioned machine is available on 192.168.10.22 from the host machine.
The auto-bucket-creation is currently disabled since it's not quite clear to me why I can initialize a cluster with Ansible, but then am still prompted to create a bucket when accessing the web interface the first time.
Also, you must restart sync_gateway after booting the machine since it seems to fail to wait for couchbase to be running.
SSH into your VM and issue: sudo start sync_gateway
Most important configuration variables, like admin username+password, live in couchbase-server.yml
.
The defaults provision a machine with 2GB of RAM, 1GB dedicated to the bucket.
-
Install Vagrant (download) and Ansible (as
pip install ansible
) -
Install vagrant cachier plugin:
$ vagrant plugin install vagrant-cachier
-
Run:
$ vagrant up
If this fails at later steps (rebalancing or setting up buckets), you may be able to proceed with manual configuration.
-
You can now configure Couchbase by going through the setup wizard on 192.168.10.22:8091
-
The sync gateway is available on 192.168.10.22:4999
-
The web app is available on 192.168.10.22
vagrant up
: Build, run and provision the VMvagrant provision
: Update VM (re-run the ansible playbook)vagrant ssh
: SSH into the VMvagrant halt
: Shut down gracefullyvagrant destroy
: Destroy entire VM