Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added attribute for wipe_attributes to pass along to the lvm_volump_g… #46

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@

# The stripe size in kilobytes to be used if more than one ephemeral disk is found
default['ephemeral_lvm']['stripe_size'] = 512

# Whether to wipe signatures on any existing drives
default['ephemeral_lvm']['wipe_signatures'] = false

10 changes: 9 additions & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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 '1.0.15'
version '1.0.16'

supports 'ubuntu'
supports 'centos'
Expand Down Expand Up @@ -64,3 +64,11 @@
: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"

2 changes: 2 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
# they are created with LVM stripes with the stripe size set in the attributes.
#
lvm_volume_group node['ephemeral_lvm']['volume_group_name'] do
wipe_signatures node['ephemeral_lvm']['wipe_signatures']

physical_volumes ephemeral_devices

logical_volume node['ephemeral_lvm']['logical_volume_name'] do
Expand Down