Version information
Start using this module
Add this module to your Puppetfile:
mod 'ignis-ecryptfs', '0.1.4'
Learn more about managing modules with a PuppetfileDocumentation
ecryptfs
Table of Contents
- Overview
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
Overview
This module allows to manage ecryptfs mounts as puppet types. Passphrase for encryption should be stored in a file and secured separately.
Mounts are NOT persisted across reboots.
Usage
Use ecryptfs::mount
type to define encrypted mounts:
ecryptfs::mount { 'encrypted JENKINS_HOME':
source_dir => '/mnt/ebs/jenkins',
dest_dir => '/var/lib/jenkins',
passphrase_file => '/dev/shm/.jenkins_home_ecryptfs'
}
This will install ecryptfs-utils and try to mount /mnt/ebs/jenkins
to /var/lib/jenkins
using a
passphrase stored in plaintext in a file /dev/shm/.jenkins_home_ecryptfs
. Please note that
a passphrase file should be created by you -- either by puppet or by any other means. Same goes
for a source and destination directory. Please see an example in manifests/vagrant.pp.
If you need to define a resource which makes sure that an encrypted mount is UNMOUNTED upon
puppet run, set ensure => unmounted
leaving all the other parameters in place.
Limitations
This module was tested on CentOS 6.x so far.
Types in this module release
Dependencies
- puppetlabs-stdlib (>= 1.0.0)