Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding tune-able attributes to php cookbook

  • Loading branch information...
commit 7b19680cf152aeead06fe436a73e2891258194cf 1 parent 0dbf957
Tavish Armstrong authored
View
2  php/attributes/default.rb
@@ -21,3 +21,5 @@
# apc
default[:php][:apc][:shm_size] = '256'
+default[:php][:apc][:shm_segments] = '1'
+default[:php][:apc][:write_lock] = '1'
View
22 php/metadata.json
@@ -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
2  php/recipes/default.rb
@@ -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
View
4 php/templates/default/apc.ini.erb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.