Explorar el Código

Merge pull request #2 from PCMi/master

Basic php install formulas
tags/v0.34.0
Joseph Hall hace 11 años
padre
commit
6993687c57
Se han modificado 9 ficheros con 114 adiciones y 1 borrados
  1. +24
    -1
      README.rst
  2. +10
    -0
      php/apc.sls
  3. +11
    -0
      php/curl.sls
  4. +15
    -0
      php/fpm.sls
  5. +11
    -0
      php/gd.sls
  6. +11
    -0
      php/init.sls
  7. +11
    -0
      php/mcrypt.sls
  8. +11
    -0
      php/mysql.sls
  9. +10
    -0
      php/pear.sls

+ 24
- 1
README.rst Ver fichero

@@ -1,2 +1,25 @@
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
- 0
php/apc.sls Ver fichero

@@ -0,0 +1,10 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php-apc:
pkg.installed:
- order: 180

{% endif %}

+ 11
- 0
php/curl.sls Ver fichero

@@ -0,0 +1,11 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php-curl:
pkg.installed:
- name: php5-curl
- order: 180

{% endif %}

+ 15
- 0
php/fpm.sls Ver fichero

@@ -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
- 0
php/gd.sls Ver fichero

@@ -0,0 +1,11 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php-gd:
pkg.installed:
- name: php5-gd
- order: 180

{% endif %}

+ 11
- 0
php/init.sls Ver fichero

@@ -0,0 +1,11 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php:
pkg.installed:
- name: php5
- order: 175

{% endif %}

+ 11
- 0
php/mcrypt.sls Ver fichero

@@ -0,0 +1,11 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php-mcrypt:
pkg.installed:
- name: php5-mcrypt
- order: 180

{% endif %}

+ 11
- 0
php/mysql.sls Ver fichero

@@ -0,0 +1,11 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php-mysql:
pkg.installed:
- name: php5-mysql
- order: 180

{% endif %}

+ 10
- 0
php/pear.sls Ver fichero

@@ -0,0 +1,10 @@
include:
- apt

{% if grains['os']=="Ubuntu" %}

php-pear:
pkg.installed:
- order: 180

{% endif %}

Cargando…
Cancelar
Guardar