-
Notifications
You must be signed in to change notification settings - Fork 16
/
metadata.rb
77 lines (66 loc) · 2.83 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# frozen_string_literal: true
name 'ephemeral_lvm'
maintainer 'RightScale, Inc.'
maintainer_email '[email protected]'
license 'Apache-2.0'
description 'Configures available ephemeral devices on a cloud server'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '3.0.3'
issues_url 'https://github.com/rightscale-cookbooks/ephemeral_lvm/issues' if respond_to?(:issues_url)
source_url 'https://github.com/rightscale-cookbooks/ephemeral_lvm' if respond_to?(:source_url)
chef_version '>= 12.0' if respond_to?(:chef_version)
supports 'ubuntu'
supports 'centos'
supports 'debian'
depends 'now'
depends 'lvm', '>= 4.0.6'
recipe 'ephemeral_lvm::default', 'Sets up ephemeral devices on a cloud server'
attribute 'ephemeral_lvm/filesystem',
display_name: 'Ephemeral LVM Filesystem',
description: 'The filesystem to be used on the ephemeral volume.' \
' Defaults are based on OS and determined in attributes/defaults.rb.',
recipes: ['ephemeral_lvm::default'],
required: 'recommended'
attribute 'ephemeral_lvm/mount_point',
display_name: 'Ephemeral LVM Mount Point',
description: 'The mount point for the ephemeral volume',
default: '/mnt/ephemeral',
recipes: ['ephemeral_lvm::default'],
required: 'recommended'
attribute 'ephemeral_lvm/mount_point_properties',
display_name: 'Ephemeral LVM Mount Properties',
description: 'The options used when mounting the ephemeral volume',
type: 'hash',
default: { options: %w(defaults noauto), pass: 0 },
recipes: ['ephemeral_lvm::default'],
required: 'optional'
attribute 'ephemeral_lvm/volume_group_name',
display_name: 'Ephemeral LVM Volume Group Name',
description: 'The volume group name for the ephemeral LVM',
default: 'vg-data',
recipes: ['ephemeral_lvm::default'],
required: 'optional'
attribute 'ephemeral_lvm/logical_volume_size',
display_name: 'Ephemeral LVM Logical Volume Size',
description: "The size to be used for the ephemeral LVM. Syntax for 'lvcreate --extents' flag is used",
default: '100%VG',
recipes: ['ephemeral_lvm::default'],
required: 'optional'
attribute 'ephemeral_lvm/logical_volume_name',
display_name: 'Ephemeral LVM Logical Volume Name',
description: 'The name of the logical volume for ephemeral LVM',
default: 'ephemeral0',
recipes: ['ephemeral_lvm::default'],
required: 'optional'
attribute 'ephemeral_lvm/stripe_size',
display_name: 'Ephemeral LVM Stripe Size',
description: 'The stripe size to be used for the ephemeral logical volume',
default: '512',
recipes: ['ephemeral_lvm::default'],
required: 'optional'
attribute 'ephemeral_lvm/wipe_signatures',
display_name: 'Ephemeral LVM Wire Signatures',
description: 'Whether to wipe any existing filesystem signatures',
default: false,
recipes: ['ephemeral_lvm::default'],
required: 'optional'