Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby_block "Create or attach LVM volume out of #{raid_device}" do
- block do
- BlockDevice.create_lvm(raid_device, options)
- node.set[:ebs][:devicetomount] = node[:ebs][:lvm_device]
- node.save unless Chef::Config[:solo]
- end
- only_if { options[:uselvm] }
- action :create
- end
- mount options[:mount_point] do
- fstype options[:fstype]
- device node[:ebs][:devicetomount]
- options "noatime"
- not_if do
- File.read('/etc/mtab').split("\n").any?{|line| line.match(" #{options[:mount_point]} ")}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement