Vagrant files to install the latest released ClusterControl version on Centos/Redhat or Debian/Ubuntu based distributions. The default MySQL root user password on the ClusterControl host is 'root123'.
$ git clone [email protected]:severalnines/vagrant.git
Launches 1 instance for ClusterControl and 3 instances for DB Nodes.
# Download a base image from HashiCorp.
# If you want to use an existing or another box then change the Vagrantfile first.
$ vagrant box add bento/centos-7.1
$ cd clustercontrol/centos
$ vagrant up
Launches 1 instance for ClusterControl and 3 instances for DB Nodes.
# Download a base image from HashiCorp.
# If you want to use an existing or another box then change the Vagrantfile first.
$ vagrant box add ubuntu/trusty64
$ cd clustercontrol/ubuntu
$ vagrant up
The default memory allocated for each instance is 768MB.
- 10.10.10.10 ClusterControl
- 10.10.10.11 DB 1
- 10.10.10.12 DB 2
- 10.10.10.13 DB 3
# default password for the vagrant user is 'vagrant'
$ vagrant ssh vm1
# to all DB nodes copy over the root's public ssh key
[vagrant@n1 ~]$ for h in 10.10.10.11 10.10.10.12 10.10.10.13; do \
sudo cat /root/.ssh/id_rsa.pub | ssh $h "sudo mkdir -p /root/.ssh && \
sudo tee -a /root/.ssh/authorized_keys && sudo chmod 700 /root/.ssh && \
sudo chmod 600 /root/.ssh/authorized_keys"; \
done;
Open your web browser to http://localhost:8080/clustercontrol
- Register your ClusterControl admin user.
- Create your database cluster on the available DB nodes by clicking on 'Create Database Cluster'.