Skip to content

A LearningLocker (v1) development environment (CentOS) using vagrant and ansible

License

Notifications You must be signed in to change notification settings

davidpesce/learninglocker-v1-dev-env

Repository files navigation

LearningLocker on CentOS 7.3

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.

Preparation

  1. Download and install Vagrant: https://www.vagrantup.com/downloads.html
  2. Install Ansible: http://docs.ansible.com/ansible/intro_installation.html

Configuration

  1. Copy vars.secret.yml.edit file to vars.secret.yml.
  2. Edit the vars.secret.yml file following the instructions detailed in the file.
  3. 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.

Typical usage

This section explains two use cases of this project:

  1. Create one VM machine with LL installed.
  2. Create two VM machines with LL installed: one for the webserver and the other for the database.

Use case 1. Create one VM machine

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:

Use case 2. Create two VM machines

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

Acknowledgements

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

About

A LearningLocker (v1) development environment (CentOS) using vagrant and ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages