Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Ansible playbook and Vagrantfile to provision and setup the various environments

Notifications You must be signed in to change notification settings

GroupEat/groupeat-pizza-yolo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

GroupEat use Vagrant in order not to mess too much with your computer setup. Everything will be installed and run in a virtual machine, leaving your actual environment untouched! The added benefit is that the local development environment will be the same than the production one.

Installing

Clone this repository on your machine. Place it where you like and rename it if you want but make sure you won't change your mind because moving it after the following steps will break things... Then cd into the project root so that you are in the folder of the Vagrantfile.

Composer and GitHub

Since the API needs a lot of Composer dependencies, you need a token from GitHub in order to be allowed to make all the needed requests. To do so, browse to https://github.com/settings/applications#personal-access-tokens and generate a new token. Create a .composer file in the project root and paste the token inside it.

Required software

  • Git
  • Ansible >= 1.9.1
  • Vagrant >= 1.7.4
  • VirtualBox >= 5.0.0

Finally

  • ./install.sh

Local Usage

Administration zone

Some useful admin routes are defined to tinker with the application:

Use the groupeat password on the local environment to access these pages.

Provisioning the distant servers

  • Tweak the inventory file if needed.
  • Run the ansible-playbook prod.yml -i hosts --ask-vault-pass -vv command in the project root folder.

Ansible vault

Ansible vault keeps all secret passwords and keys in a secure file. To read its content, you need to have in the current directory a .vault_pass file whose content is a password (ask about it to the team members if you don't know it):

echo <password> > .vault-pass
ansible-vault --vault-password-file .vault_pass view vars/secrets.yml

About

Ansible playbook and Vagrantfile to provision and setup the various environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages