cookbook 'storage', '= 2.1.7'
storage
(21) Versions
2.1.7
-
Follow0
Installs/Configures storage
cookbook 'storage', '= 2.1.7', :supermarket
knife supermarket install storage
knife supermarket download storage
storage-cookbook
A cookbook for mounting all available EC2 ephemeral volumes and saving their
respective mount points into node attributes.
Supported Platforms
EC2 only (but it will fail cleanly on other platforms).
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['storage']['ephemeral_mounts']</tt></td>
<td>Array</td>
<td>An array of strings, set automatically by the recipe, to be used by other cookbooks, which lists the mount points of ephemeral storage devices.</td>
<td><tt>automatic</tt></td>
</tr>
</table>
Usage
storage::default
Include storage
in a wrapper cookbook:
include_recipe 'storage::default'
...or include storage
in your node's run_list
:
{ "run_list": [ "recipe[storage::default]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
License and Authors
Author:: EverTrue, Inc. (eric.herot@evertrue.com)
2.1.7
- Update to et_fog v1.1.1 to avoid issues with
apt-get update
& installingbuild-essential
at compile time
2.1.6
- Confirm (using Fog) that the current instance flavor has instance storage
2.1.5
- Disable /mnt mount (instead of just unmounting it) and enable the new mounts
2.1.4
- Populate ephemeral_mounts attribute even if /mnt/dev is already mounted
2.1.3
- Use /proc/mounts (rather than node attributes) to see if we need to run
- Fix method reference error in vagrant support
2.1.2
- s/ephemeral1/ephemeral0/ in library this time
2.1.1
- Look for ephemeral0 in ec2 attributes
2.1.0
- Fixed error making it impossible to converge twice
- Move format-mount to a resource
- Library-ify a bunch of small functions
2.0.2
- Add some real content to the README
- Handle NPE by only printing mounts if there are any
2.0.1
- Do umount during precompile phase
2.0.0
- Add vagrant support
1.0.1
- Initial release
Foodcritic Metric
2.1.7 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/45d1a33795f3d00b6be95510/storage/providers/format_mount.rb:6
FC016: LWRP does not declare a default action: /tmp/cook/45d1a33795f3d00b6be95510/storage/resources/format_mount.rb:1
FC023: Prefer conditional attributes: /tmp/cook/45d1a33795f3d00b6be95510/storage/recipes/default.rb:40
2.1.7 failed this metric
FC016: LWRP does not declare a default action: /tmp/cook/45d1a33795f3d00b6be95510/storage/resources/format_mount.rb:1
FC023: Prefer conditional attributes: /tmp/cook/45d1a33795f3d00b6be95510/storage/recipes/default.rb:40