Giter VIP home page Giter VIP logo

ansible-webserver's Introduction

Ansible-Webserver

Ansible provisioning configuration for webservers using nginx/php-fpm/mysql and Symfony2

Components

  • nginx
  • php-fpm
  • php-cli
  • intl
  • PDO
  • mysql
  • symfony installer
  • phpmyadmin
  • composer
  • mailcatcher

Configuration

Ubuntu box

Ubuntu Server Trusty 14.04 from Vagrantbox.es

https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-12.04-amd64-vbox.box

Virtual Machine

  • NFS shared folders (sorry for Windows users... You should change your OS, really).
  • DHCP private network
  • Port bindings
    • 80 -> 8080 : web application
    • 8081 -> 8081 : phpmyadmin
  • Provisioning from Ansible provisioner, so you have to install Ansible to your Vagrant host (see Vagrant doc for more information)

Notes

This provisioning does not create a new Symfony2 project but only install the Symfony installer. It's up to you to create a new project (see Symfony2 installation doc) or clone your existing project in the sources folder (ignored by gitignore).

Variables

  • database_name: MySQL database used by project
  • nginx_project_root: project root used by nginx
  • nginx_project_name: project name used to write nginx log file

Notes

Run playbook locally

In case you are running this using Windows, you can play the playbook locally using the command:

ansible-playbook -i "localhost," -c local playbook.yml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.