This repository has been archived by the owner on Nov 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update memcached to use the package defaults with a template
- Loading branch information
jtimberman
committed
Oct 22, 2009
1 parent
6ccf6dc
commit 5f5054f
Showing
5 changed files
with
90 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,72 @@ | ||
{ | ||
"maintainer": "Opscode, Inc.", | ||
"description": "Installs memcached and provides a define to set up an instance of memcache via runit", | ||
"replacing": { | ||
"recommendations": { | ||
|
||
}, | ||
"maintainer_email": "cookbooks@opscode.com", | ||
"recipes": { | ||
"memcached": "" | ||
}, | ||
"platforms": { | ||
"suggestions": { | ||
|
||
}, | ||
"maintainer": "Opscode, Inc.", | ||
"version": "0.7.0", | ||
"recommendations": { | ||
"platforms": { | ||
|
||
}, | ||
"version": "0.8.0", | ||
"name": "memcached", | ||
"maintainer_email": "cookbooks@opscode.com", | ||
"conflicting": { | ||
|
||
}, | ||
"attributes": { | ||
"memcached\/memory": { | ||
"default": "64", | ||
"type": "string", | ||
"multiple_values": false, | ||
"description": "Memory allocated for memcached instance", | ||
"display_name": "Memcached Memory", | ||
"required": false, | ||
"recipes": [ | ||
|
||
] | ||
], | ||
"required": false | ||
}, | ||
"memcached\/user": { | ||
"default": "nobody", | ||
"type": "string", | ||
"multiple_values": false, | ||
"description": "User to run memcached instance as", | ||
"display_name": "Memcached User", | ||
"required": false, | ||
"recipes": [ | ||
|
||
] | ||
], | ||
"required": false | ||
}, | ||
"memcached\/port": { | ||
"default": "11211", | ||
"type": "string", | ||
"multiple_values": false, | ||
"description": "Port to use for memcached instance", | ||
"display_name": "Memcached Port", | ||
"required": false, | ||
"recipes": [ | ||
|
||
] | ||
], | ||
"required": false | ||
} | ||
}, | ||
"suggestions": { | ||
"providing": { | ||
"memcached": [ | ||
|
||
] | ||
}, | ||
"license": "Apache 2.0", | ||
"conflicting": { | ||
"long_description": "= DESCRIPTION:\n\nInstalls memcached and provides a define to set up an instance of memcache via runit.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Ubuntu 8.10. Uses the memcached package by default. A runit service can be set up for instances using the included define.\n\n== Cookbooks:\n\nOpscode cookbooks, http:\/\/github.com\/opscode\/cookbooks\/tree\/master:\n\n* runit\n\n= ATTRIBUTES: \n\nThe following are node attributes passed to the template for the runit service.\n\n* memcached[:memory] - maximum memory for memcached instances.\n* memcached[:user] - user to run memcached as.\n* memcached[:port] - port for memcached to listen on.\n\n= USAGE:\n\nUse the define, memcached_instance, to set up a runit service for the named memcached instance.\n\n memcached_instance \"myproj\" \n\n= LICENSE and AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\nAuthor:: Joshua Sierles (<joshua@37signals.com>)\n\nCopyright:: 2009, Opscode, Inc\nCopyright:: 2009, 37signals\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", | ||
"replacing": { | ||
|
||
}, | ||
"dependencies": { | ||
"runit": [ | ||
|
||
] | ||
}, | ||
"providing": { | ||
"memcached": [ | ||
|
||
] | ||
}, | ||
"long_description": "= DESCRIPTION:\n\nInstalls memcached and provides a define to set up an instance of memcache via runit.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Ubuntu 8.10. Uses the memcached package but disables the service and uses runit, see below.\n\n== Cookbooks:\n\nOpscode cookbooks, http:\/\/github.com\/opscode\/cookbooks\/tree\/master:\n\n* runit\n\n= ATTRIBUTES: \n\nThe following are node attributes passed to the template for the runit service.\n\n* memcached[:memory] - maximum memory for memcached instances.\n* memcached[:user] - user to run memcached as.\n* memcached[:port] - port for memcached to listen on.\n\n= USAGE:\n\nUse the define, memcached_instance, to set up a runit service for the named memcached instance.\n\n memcached_instance \"myproj\" \n\n= LICENSE and AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\nAuthor:: Joshua Sierles (<joshua@37signals.com>)\n\nCopyright:: 2009, Opscode, Inc\nCopyright:: 2009, 37signals\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# Configured by Chef. Logcal changes will be lost. | ||
# | ||
# memcached default config file | ||
# 2003 - Jay Bonci <jaybonci@debian.org> | ||
# This configuration file is read by the start-memcached script provided as | ||
# part of the Debian GNU/Linux distribution. | ||
|
||
# Run memcached as a daemon. This command is implied, and is not needed for the | ||
# daemon to run. See the README.Debian that comes with this package for more | ||
# information. | ||
-d | ||
|
||
# Log memcached's output to /var/log/memcached | ||
logfile /var/log/memcached.log | ||
|
||
# Be verbose | ||
-v | ||
|
||
# Be even more verbose (print client commands as well) | ||
# -vv | ||
|
||
# Start with a cap of 64 megs of memory. It's reasonable, and the daemon default | ||
# Note that the daemon will grow to this size, but does not start out holding this much | ||
# memory | ||
-m <%= @memory %> | ||
|
||
# Default connection port is 11211 | ||
-p <%= @port %> | ||
|
||
# Run the daemon as root. The start-memcached will default to running as root if no | ||
# -u command is present in this config file | ||
-u <%= @user %> | ||
|
||
# Specify which IP address to listen on. The default is to listen on all IP addresses | ||
# This parameter is one of the only security measures that memcached has, so make sure | ||
# it's listening on a firewalled interface. | ||
-l <%= @ipaddress %> | ||
|
||
# Limit the number of simultaneous incoming connections. The daemon default is 1024 | ||
# -c 1024 | ||
|
||
# Lock down all paged memory. Consult with the README and homepage before you do this | ||
# -k | ||
|
||
# Return error when memory is exhausted (rather than removing items) | ||
# -M | ||
|
||
# Maximize core file limit | ||
# -r |