cookbook 'ramdisk', '= 0.1.0', :supermarket
ramdisk (3) Versions 0.1.0 Follow1
Manage tmpfs RAM disks with Chef
cookbook 'ramdisk', '= 0.1.0'
knife cookbook site install ramdisk
knife cookbook site download ramdisk
This cookbook manages tmpfs RAM disks with Chef.
This cookbook has been tested on the following platforms:
FreeBSD support is somewhat limited due to its current implementation: the remount is not supported on this platform and some mount options are ignored.
Please, let us know if you use it successfully on any other platform.
Creates or deletes a RAM disk.
If you change the RAM disk size, the
ramdisk resource will try to remount the disk without umounting.
create: Creates a RAM disk (default).
delete: Deletes a RAM disk.
|path||name parameter||tmpfs RAM disk mount path.|
||Size of the filesystem (required). The size is given in bytes. Also accepts a suffix k, m or g.|
||Whether to persist the RAM disk. Note: The data will not persist between reboots. This only creates the RAM disk on each boot.|
||Do not allow set-user-identifier or set-group-identifier bits to take effect.|
||Do not interpret character or block special devices on the filesystem.|
||Do not allow direct execution of any binaries on the mounted filesystem.|
||Do not update inode access times on this filesystem.|
||Do not update directory inode access times on this filesystem.|
||The maximum number of inodes for this instance.|
||Set initial permissions of the root directory.|
||The user id.|
||The group id.|
||The same as uid, but using user names.|
||The same as gid, but using group names.|
||Set the NUMA memory allocation policy for all files in that instance.|
These attributes are primarily intended to support the different platforms. Do not touch them unless you know what you are doing.
||Minimal default mount options to set.|
||calculated||Supported mount flag options:
||calculated||Supported mount variable options:
||calculated||Whether mount remount operation is supported.|
Including in the metadata
Before using this cookbook, remember to put it as a dependency in your metadata:
# metadata.rb depends 'ramdisk'
Create a 10MB tmpfs RAM disk:
ramdisk '/mnt/ramdisk1' do size '10m' end
A Complex Example
Create a tmpfs RAM disk setting some options and the owner user:
ramdisk '/tmp/secure_bob_ramdisk' do size '1g' user 'bob' group 'bob' persist false nosuid true nodev true noexec true noatime true inodes '999k' mode '750' end
Please do not hesitate to open an issue with any questions or problems.
License and Author
|Author:||Xabier de Zuazo (firstname.lastname@example.org)|
|Copyright:||Copyright (c) 2014, Onddo Labs, SL. (www.onddo.com)|
|License:||Apache License, Version 2.0|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This cookbook has no specified dependencies.
There are no cookbooks that are contingent upon this one.
This file is used to list changes made in each version of the
- Initial release of
0.1.0 passed this metric
0.1.0 passed this metric