Merge pull request #2 from PCMi/master

Basic php install formulas
This commit is contained in:
Joseph Hall 2013-08-05 13:58:37 -07:00
commit 6993687c57
9 changed files with 114 additions and 1 deletions

View File

@ -1,2 +1,25 @@
php php
=== ======
DEPENDENCIES:
These formulas are required:
1) apt
ORDERING:
The ordering of the states for php falls into block ranges which are:
1) php will use 1-500 for ordering
2) php will reserve 1 -100 as unused
3) php will reserve 101-150 for pre pkg install
4) php will reserve 151-200 for pkg install
5) php will reserve 201-250 for pkg configure
6) php will reserve 251-300 for downloads, git stuff, load data
7) php will reserve 301-400 for unknown purposes
8) php will reserve 401-450 for service restart-reloads
9) php WILL reserve 451-460 for service.running
10) php will reserve 461-500 for cmd requiring operational services
PILLARS:
No Pillars are used in this formula as of yet.

10
php/apc.sls Normal file
View File

@ -0,0 +1,10 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-apc:
pkg.installed:
- order: 180
{% endif %}

11
php/curl.sls Normal file
View File

@ -0,0 +1,11 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-curl:
pkg.installed:
- name: php5-curl
- order: 180
{% endif %}

15
php/fpm.sls Normal file
View File

@ -0,0 +1,15 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-fpm:
pkg.installed:
- name: php5-fpm
- order: 175
service.running:
- name: php5-fpm
- enable: True
- order: 455
{% endif %}

11
php/gd.sls Normal file
View File

@ -0,0 +1,11 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-gd:
pkg.installed:
- name: php5-gd
- order: 180
{% endif %}

View File

@ -0,0 +1,11 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php:
pkg.installed:
- name: php5
- order: 175
{% endif %}

11
php/mcrypt.sls Normal file
View File

@ -0,0 +1,11 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-mcrypt:
pkg.installed:
- name: php5-mcrypt
- order: 180
{% endif %}

11
php/mysql.sls Normal file
View File

@ -0,0 +1,11 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-mysql:
pkg.installed:
- name: php5-mysql
- order: 180
{% endif %}

10
php/pear.sls Normal file
View File

@ -0,0 +1,10 @@
include:
- apt
{% if grains['os']=="Ubuntu" %}
php-pear:
pkg.installed:
- order: 180
{% endif %}