Skip to content

Commit

Permalink
Merge pull request onema#6 from onema/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
onema committed Oct 31, 2013
2 parents f3adc97 + 68d227e commit 3f980a3
Show file tree
Hide file tree
Showing 34 changed files with 48 additions and 2,175 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Some of the cookbooks functionality include:
* mod_env must be enabled.

# Version
0.2.0
0.3.0

# Credits
Some parts of this code where taken from the [ace-cookbooks opsworks_app_environment](https://github.com/ace-cookbooks/opsworks_app_environment). Also see [this](https://forums.aws.amazon.com/thread.jspa?threadID=118107).
Expand Down Expand Up @@ -57,8 +57,13 @@ See these references for more info:
- [Symfony2, Composer, Capifony and an EC2 Micro instance](http://jonathaningram.com.au/category/composerphp/)
- [ErrorException: proc_open(): fork failed - Cannot allocate memory in phar](https://github.com/composer/composer/issues/945)

###phpenv::mongodb
This recipe installs the mongodb php driver using PECL (Requires the **php-pear** OS package).
###phpenv::php_mongodb
This recipe installs the mongodb php module using PECL (Requires the **php-pear** OS package).

Use recipe on **Setup** ONLY.

###phpenv::php_redis
This recipe installs the redis php module using PECL (Requires the **php-pear** OS package).

Use recipe on **Setup** ONLY.

Expand Down
19 changes: 0 additions & 19 deletions phpenv/recipes/configure.rb

This file was deleted.

29 changes: 0 additions & 29 deletions phpenv/recipes/dbconfig.rb

This file was deleted.

4 changes: 0 additions & 4 deletions phpenv/recipes/mongodb.rb

This file was deleted.

18 changes: 18 additions & 0 deletions phpenv/recipes/php_mongodb.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
execute 'install_php_mongo_driver' do
command "pecl install mongo"
action :run
end

template 'mongo.ini' do
case node[:platform]
when 'centos','redhat','fedora','amazon'
path "/etc/php.d/mongo.ini"
when 'debian','ubuntu'
path "/etc/php5/conf.d/mongo.ini"
end
source 'mongo.ini.erb'
owner 'root'
group 'root'
mode 0644
notifies :restart, resources(:service => 'apache2')
end
18 changes: 18 additions & 0 deletions phpenv/recipes/php_redis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
execute 'install_php_redis' do
command "pecl install redis"
action :run
end

template 'redis.ini' do
case node[:platform]
when 'centos','redhat','fedora','amazon'
path "/etc/php.d/redis.ini"
when 'debian','ubuntu'
path "/etc/php5/conf.d/redis.ini"
end
source 'redis.ini.erb'
owner 'root'
group 'root'
mode 0644
notifies :restart, resources(:service => 'apache2')
end
29 changes: 0 additions & 29 deletions phpenv/recipes/rdsconfig.rb

This file was deleted.

26 changes: 0 additions & 26 deletions phpenv/recipes/ses.rb

This file was deleted.

14 changes: 0 additions & 14 deletions phpenv/templates/default/db.php.erb

This file was deleted.

2 changes: 2 additions & 0 deletions phpenv/templates/default/mongo.ini.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
; MongoDB Driver
extension=mongo.so
2 changes: 2 additions & 0 deletions phpenv/templates/default/redis.ini.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
; configuration for php REDIS module
extension=redis.so
9 changes: 0 additions & 9 deletions phpenv/templates/default/ses.php.erb

This file was deleted.

Loading

0 comments on commit 3f980a3

Please sign in to comment.