The main intent of this repository is for developers of LearningLocker (v1) to rapidly create a local instance of LearningLocker.
This project contains Vagrant and Ansible scripts to provision CentOS 7.3 machines with LearningLocker.
This LearningLocker installation will depend on Apache2 and MongoDB.
- Download and install Vagrant: https://www.vagrantup.com/downloads.html
- Install Ansible: http://docs.ansible.com/ansible/intro_installation.html
- If on Mac with Homebrew installed: http://brewformulas.org/Ansible
- Copy vars.secret.yml.edit file to vars.secret.yml.
- Edit the vars.secret.yml file following the instructions detailed in the file.
- Modify the learninglocker file in the group_vars directory by specifying the ll_repo and ll_repo_version.
If you need to use a proxy, please see the proxy fork of this repository.
This section explains two use cases of this project:
- Create one VM machine with LL installed.
- Create two VM machines with LL installed: one for the webserver and the other for the database.
To create a virtual machine and provision it with LearningLocker, simply run:
vagrant up
If the installation is completed successfully, you will be able to:
- Access LL through your web browser: http://localhost:8082
- Connect to the machine:
vagrant ssh
To create a virtual machine and provision it with LearningLocker, modify the Vagrantfile: From this:
machines_file ||= './vagrant/one_machine'
To this:
machines_file ||= './vagrant/two_machines'
If the installation is completed successfully, you will be able to:
- Access LL through your web browser: http://localhost:8082
- Connect to the machines:
vagrant ssh ll-web
vagrant ssh ll-db
To create this I relied heavily on the Vagrant/Ansible playbook written by Aitor Gómez-Goiri that can be found here: https://github.com/gomezgoiri/learninglocker-centos7