Skip to content

silte/infra-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infra template

Requirements

Setup

Start VM for the first time

$ git clone [email protected]:silte/infra-template.git folder-name
$ cd THISREPO

Change every 'CHANGE-ME' found

$ grep -r "{CHANGE-ME}" * 

After changing everything

$ ansible-galaxy install -r ansible/requirements.yml -p ansible/roles
$ vagrant up

Configure production server

Requirements

  • SSH Access to server as ROOT

Provision all settings

$ ansible-playbook -i ansible/inventory/production ansible/provision.yml

Provision host changes

  • Go to ansible/group_vars/production.yml
  • Follow the instructions

After you've changed your host settings

$ ansible-playbook -i ansible/inventory/production ansible/provision-apache.yml

Deploy project

  • Go to ansible/group_vars/production.yml
  • Follow the instructions

After you've changed project settings

$ ansible-playbook -i ansible/inventory/production ansible/deploy.yml --extra-vars "deploy={{project.YOUR-PROJECT-NAME}

HOST Configuration

Add new sites

  • Create a folder for your site in sites/
  • Go to ansible/group_vars/development.yml
  • Follow the instructions

After following the instructions

$ vagrant provision

Adding only a new host name

$ ansible-playbook -i ansible/inventory/development ansible/provision-apache.yml

Virtual domain configuration

$ sudo nano /etc/hosts
  • Add 192.168.55.12 local.local
  • Open local.local in your browser

Used roles

About

A VM for web development (php, nodejs, java)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages