Skip to content

Commit a1fdb46

Browse files
committed
changed README and upped version
1 parent eec1f35 commit a1fdb46

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

README.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
memcached Cookbook
22
==================
3-
TODO: Enter the cookbook description here.
4-
5-
e.g.
6-
This cookbook makes your favorite breakfast sandwhich.
7-
8-
Requirements
9-
------------
10-
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
11-
12-
e.g.
13-
#### packages
14-
- `toaster` - memcached needs toaster to brown your bagel.
3+
Basic Memcahed Cookbook that has currently only been tested with Ubuntu 12.04.
154

165
Attributes
176
----------
18-
TODO: List you cookbook attributes here.
197

20-
e.g.
218
#### memcached::default
229
<table>
2310
<tr>
@@ -27,19 +14,40 @@ e.g.
2714
<th>Default</th>
2815
</tr>
2916
<tr>
30-
<td><tt>['memcached']['bacon']</tt></td>
31-
<td>Boolean</td>
32-
<td>whether to include bacon</td>
33-
<td><tt>true</tt></td>
17+
<td><tt>['memcached']['listen_ip']</tt></td>
18+
<td>String</td>
19+
<td>IP for memcached to listen on</td>
20+
<td>0.0.0.0</td>
21+
</tr>
22+
<tr>
23+
<td><tt>['memcached']['listen_tcp']</tt></td>
24+
<td>String</td>
25+
<td>TCP Port for memcached to listen on</td>
26+
<td>11211</td>
27+
</tr>
28+
<tr>
29+
<td><tt>['memcached']['listen_UDP']</tt></td>
30+
<td>String</td>
31+
<td>UDP Port for memcached to listen on</td>
32+
<td>11211</td>
33+
</tr>
34+
<tr>
35+
<td><tt>['memcached']['user']</tt></td>
36+
<td>String</td>
37+
<td>User to run memcached as</td>
38+
<td>nobody</td>
39+
</tr>
40+
<tr>
41+
<td><tt>['memcached']['max_mem']</tt></td>
42+
<td>String</td>
43+
<td>Default max amount of memory to allow memcached to use. Can be set to percentage or an actual number</td>
44+
<td>90%</td>
3445
</tr>
3546
</table>
3647

3748
Usage
3849
-----
3950
#### memcached::default
40-
TODO: Write usage instructions for each cookbook.
41-
42-
e.g.
4351
Just include `memcached` in your node's `run_list`:
4452

4553
```json
@@ -53,9 +61,7 @@ Just include `memcached` in your node's `run_list`:
5361

5462
Contributing
5563
------------
56-
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
5764

58-
e.g.
5965
1. Fork the repository on Github
6066
2. Create a named feature branch (like `add_component_x`)
6167
3. Write you change
@@ -65,4 +71,4 @@ e.g.
6571

6672
License and Authors
6773
-------------------
68-
Authors: TODO: List authors
74+
Authors: Jim Rosser

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
license 'All rights reserved'
55
description 'Installs/Configures memcached'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '13.3.0'
7+
version '13.3.1'

recipes/.default.rb.swp

12 KB
Binary file not shown.

recipes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
action [:install]
1111
end
1212

13+
# Allows for memory percentage to be used
1314
if node["memcached"]["max_mem"].to_s.match("%")
1415
node.set[:memcached][:max_mem]= ((node["memory"]["total"].to_i / 1024)*(node["memcached"]["max_mem"].to_i * 0.01)).to_i
1516
end

0 commit comments

Comments
 (0)