diff --git a/README.rst b/README.rst index 9530388..3abc4ed 100644 --- a/README.rst +++ b/README.rst @@ -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. diff --git a/php/apc.sls b/php/apc.sls new file mode 100644 index 0000000..6241fad --- /dev/null +++ b/php/apc.sls @@ -0,0 +1,10 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php-apc: + pkg.installed: + - order: 180 + +{% endif %} diff --git a/php/curl.sls b/php/curl.sls new file mode 100644 index 0000000..8495dfb --- /dev/null +++ b/php/curl.sls @@ -0,0 +1,11 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php-curl: + pkg.installed: + - name: php5-curl + - order: 180 + +{% endif %} diff --git a/php/fpm.sls b/php/fpm.sls new file mode 100644 index 0000000..efc71f0 --- /dev/null +++ b/php/fpm.sls @@ -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 %} diff --git a/php/gd.sls b/php/gd.sls new file mode 100644 index 0000000..b8eff90 --- /dev/null +++ b/php/gd.sls @@ -0,0 +1,11 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php-gd: + pkg.installed: + - name: php5-gd + - order: 180 + +{% endif %} diff --git a/php/init.sls b/php/init.sls index e69de29..c718554 100644 --- a/php/init.sls +++ b/php/init.sls @@ -0,0 +1,11 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php: + pkg.installed: + - name: php5 + - order: 175 + +{% endif %} diff --git a/php/mcrypt.sls b/php/mcrypt.sls new file mode 100644 index 0000000..fc19d99 --- /dev/null +++ b/php/mcrypt.sls @@ -0,0 +1,11 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php-mcrypt: + pkg.installed: + - name: php5-mcrypt + - order: 180 + +{% endif %} diff --git a/php/mysql.sls b/php/mysql.sls new file mode 100644 index 0000000..a9563e7 --- /dev/null +++ b/php/mysql.sls @@ -0,0 +1,11 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php-mysql: + pkg.installed: + - name: php5-mysql + - order: 180 + +{% endif %} diff --git a/php/pear.sls b/php/pear.sls new file mode 100644 index 0000000..cb9b1b5 --- /dev/null +++ b/php/pear.sls @@ -0,0 +1,10 @@ +include: + - apt + +{% if grains['os']=="Ubuntu" %} + +php-pear: + pkg.installed: + - order: 180 + +{% endif %}