trexglobal / lamp-formula

Setup LAMP server

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LAMP SaltStack Formula

To setup LAMP server.

What it does

  1. Install Apache server
  2. Install MySQL server
  3. Install PHP

Install

  1. Add remotes to /etc/salt/master
gitfs_remotes:
  - git://github.com/trexglobal/monit-formula
  - git://github.com/trexglobal/lamp-formula
  - git://github.com/trexglobal/apache-formula
  - git://github.com/trexglobal/mysql-formula
  - git://github.com/trexglobal/php-formula
  1. Setup pillar from pillar.example
  2. Add lamp to your server state file
include:
    - lamp

or to the top.sls file

base:
  'wordpress.blog.example.com':
    - lamp
  1. You have to disable monit during MySQL import
$ monit unmonitor mysql
$ mysql < importfile.sql
$ monit monitor mysql

Otherwise import will fail on small instances.

About

Setup LAMP server

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License:MIT License


Languages

Language:SaltStack 66.5%Language:Shell 33.5%