This module is part of Tarmak and should currently be considered alpha.
This module attaches, formats (if needed) and mounts EBS volumes in AWS. This
base class just makes sure that all the necessary dependencies are met. To
actually attach & mount a volume you have to use the defined type
aws_ebs::mount
- path to the binary directory for helper scripts
- Type:
String
- Default:
'/opt/bin'
- path to the directory where systemd units should be placed
- Type:
String
- Default:
'/etc/systemd/system'
include ::aws_ebs
class{'aws_ebs':
bin_dir => '/usr/local/sbin',
}
This defined type attaches, formats (if needed) and mounts a single EBS volume in AWS.
- the volume id of the AWS EBS volume
- Type:
String
- where to mount the device (needs to exists)
- Type:
String
- block device to attach to (should be
/dev/xvd[a-z]
) - Type:
String
- select the filesystem to initialize a volume
- Type:
Enum['xfs']
- Default:
'xfs'
aws_ebs::mount{'data':
volume_id => 'vol-deadbeef',
device => '/dev/xvdd',
dest_path => '/mnt',
}