Sha256: 05cd7331702258f16ff2a74289a96d694ea158bd83f4dc81fcb7805ed197c876

Contents?: true

Size: 1.97 KB

Versions: 4

Compression:

Stored size: 1.97 KB

Contents

module Ironfan
  class Dsl

    class Volume < Ironfan::Dsl
      field     :name,                  String

      magic     :attachable,            String,   :default => 'ebs'
      magic     :availability_zone,     String
      magic     :create_at_launch,      :boolean, :default => false
      magic     :device,                String
      magic     :formattable,           :boolean, :default => false
      magic     :fstype,                String,   :default => 'xfs'
      magic     :in_raid,               :boolean, :default => false
      magic     :keep,                  :boolean, :default => true
      magic     :mount_dump,            String
      magic     :mount_pass,            String
      magic     :mount_options,         String,   :default => 'defaults,nouuid,noatime'
      magic     :mount_point,           String
      magic     :mountable,             :boolean, :default => true
      magic     :size,                  String
      magic     :volume_id,             String
      magic     :resizable,             :boolean, :default => false
      magic     :snapshot_id,           String
      magic     :snapshot_name,         String
      magic     :tags,                  Hash,     :default => {}
    end

    class RaidGroup < Volume
      # volumes that comprise this raid group
      magic     :sub_volumes,           Array,    :default => []
      # RAID level (http://en.wikipedia.org/wiki/RAID#Standard_levels)
      magic     :level,                 String
      # Raid chunk size (https://raid.wiki.kernel.org/articles/r/a/i/RAID_setup_cbb2.html)
      magic     :chunk,                 String
      # read-ahead buffer
      magic     :read_ahead,            String

      # Overrides of Volume field defaults
      magic     :attachable,            :boolean, :default => false
      magic     :formattable,           :boolean, :default => true
      magic     :mount_options,         String,   :default => 'defaults,nobootwait,noatime,nouuid,comment=ironfan'
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ironfan-4.0.3 lib/ironfan/dsl/volume.rb
ironfan-4.0.2 lib/ironfan/dsl/volume.rb
ironfan-4.0.1 lib/ironfan/dsl/volume.rb
ironfan-4.0.0 lib/ironfan/dsl/volume.rb