Skip to content

caryp-cookbooks/filesystem

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Description

Partitions, formats and mounts a filesystem.

Requirements

Currently tested for Ubuntu 12.04

Usage

Work in progress. Provides a filesystem LWRP. Take a look at the resources and providers directory

Resources

filesystem

  • supports ext3 and ext4
  • see providers/default.rb

Example of creating an ext4 filesystem on /dev/sdb1:

filesystem "/mnt/persistent" do
  mount_point "/mnt/persistent"
  fstype "ext4"
  volume_label "data_volume"
  device "sdb"
  partition_number "1"
  action :create
end

filesystem_xfs (providers/xfs.rb)

  • supports xfs
  • volume_label not supported yet
  • see providers/xfs.rb

Example of creating an xfs filesystem on /dev/sdb1:

filesystem "/mnt/persistent" do
  mount_point "/mnt/persistent"
  fstype "xfs"
  device "sdb"
  partition_number "1"
  provider "filesystem_xfs"  
  action :create
en

Limitations

  • Currently creates a partition using the remaining space on device.
  • many others

Author

Author:: Cary Penniman<cpenniman_at-gmail-dot_com>

About

Prototype Chef resources to partition and format block devices to create a filesystem.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages