Permalink
Browse files

Adding tune-able attributes to php cookbook

  • Loading branch information...
1 parent 0dbf957 commit 7b19680cf152aeead06fe436a73e2891258194cf Tavish Armstrong committed May 4, 2012
Showing with 17 additions and 13 deletions.
  1. +2 −0 php/attributes/default.rb
  2. +11 −11 php/metadata.json
  3. +1 −1 php/recipes/default.rb
  4. +3 −1 php/templates/default/apc.ini.erb
@@ -21,3 +21,5 @@
# apc
default[:php][:apc][:shm_size] = '256'
+default[:php][:apc][:shm_segments] = '1'
+default[:php][:apc][:write_lock] = '1'
View
@@ -1,15 +1,12 @@
{
- "long_description": "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES:\n\n= USAGE:\n\n",
- "providing": {
+ "recommendations": {
},
"description": "Installs and configures PHP",
- "maintainer": "Evolving Web Inc",
- "replacing": {
+ "suggestions": {
},
"attributes": {
},
- "maintainer_email": "jeff@evolvingweb.ca",
- "groupings": {
+ "conflicting": {
},
"dependencies": {
"graphviz": [
@@ -19,17 +16,20 @@
]
},
- "recipes": {
- },
- "recommendations": {
+ "long_description": "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES:\n\n= USAGE:\n\n",
+ "providing": {
},
"platforms": {
},
+ "maintainer": "Evolving Web Inc",
"version": "0.0.1",
- "suggestions": {
+ "replacing": {
},
"license": "All rights reserved",
"name": "php",
- "conflicting": {
+ "maintainer_email": "jeff@evolvingweb.ca",
+ "recipes": {
+ },
+ "groupings": {
}
}
View
@@ -95,5 +95,5 @@
mode 0644
owner "root"
group "root"
- variables :shm_size => node[:php][:apc][:shm_size]
+ variables :shm_size => node[:php][:apc][:shm_size], :apcattrs => node[:php][:apc]
end
@@ -4,5 +4,7 @@
extension = apc.so
apc.enabled = 1
apc.enable_cli = 0
-apc.shm_size = <%= @shm_size %>
+apc.shm_size = <%= @apcattrs[:shm_size] %>
+apc.shm_segments = <%= @apcattrs[:shm_segments] %>
+apc.write_lock = <%= @apcattrs[:write_lock] %>
apc.include_once_override = 0

0 comments on commit 7b19680

Please sign in to comment.