Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #64 from Rud5G/issue-62-mpm_event-reenabled-on-che…
Browse files Browse the repository at this point in the history
…f-server

Issue 62 mpm event reenabled on chef server
  • Loading branch information
Rud5G committed Apr 3, 2015
2 parents 5d8c1f8 + 9d0d987 commit df1797b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 28 deletions.
4 changes: 3 additions & 1 deletion attributes/apache2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
# custom
default['apache']['canonical_host'] = false


# make sure for PHP we dont have the mpm_event mod
# set override here and save to node in the apache2 recipe
override['apache2']['mpm'] = 'prefork'

# default['apache']['listen_addresses'] #- Addresses that httpd should listen on. Default is any ("*").
# default['apache']['listen_ports'] #- Ports that httpd should listen on. Default is port 80.
Expand Down
25 changes: 0 additions & 25 deletions attributes/mysql.rb

This file was deleted.

2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Installs/Configures ZF2'
long_description 'Installs/Configures ZF2'
version '0.7.3'
version '0.7.4'

# baseserver
depends 'baseserver', '~> 0.7.10'
Expand Down
10 changes: 9 additions & 1 deletion recipes/apache2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
# All rights reserved - Do Not Redistribute
#

include_recipe 'apache2'
# make sure for PHP we dont have the mpm_event mod
# save to node here and set override in the attributes/apache2
node.set['apache2']['mpm'] = 'prefork'
node.save unless Chef::Config[:solo]

include_recipe 'apache2::default'

# this should not be required anymore.
# include_recipe 'apache2::mpm_prefork'


begin
Expand Down
2 changes: 2 additions & 0 deletions recipes/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# need for secure_password
::Chef::Node.send(:include, Opscode::OpenSSL::Password)

node.set_unless['mysql']['server_root_password'] = secure_password
node.save unless Chef::Config[:solo]

begin
data_bag('databases').each do |database|
Expand Down

0 comments on commit df1797b

Please sign in to comment.