Class: ClusterChef::RaidGroup

Inherits:
Volume show all
Defined in:
lib/cluster_chef/volume.rb

Overview

Constant Summary

Constants inherited from Volume

Volume::VOLUME_DEFAULTS

Instance Attribute Summary

Attributes inherited from Volume

#fog_volume, #parent

Instance Method Summary collapse

Methods inherited from Volume

#block_device_mapping, #create_at_launch?, #ephemeral_device?, #has_server?, #in_cloud?, #initialize, #reverse_merge!, #snapshot_name

Methods inherited from DslObject

#configure, #die, #dump, has_keys, #initialize, #reverse_merge!, #safely, #set, #step, #to_hash, #to_mash, #to_s, ui, #ui

Constructor Details

This class inherits a constructor from ClusterChef::Volume

Instance Method Details

#defaultsObject


141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/cluster_chef/volume.rb', line 141

def defaults()
  super
  fstype            'xfs'
  mount_options     "defaults,nobootwait,noatime,nouuid,comment=cluster_chef"
  attachable        false
  create_at_launch  false
  #
  mountable         true
  resizable         false
  formattable       true
  #
  in_raid           false
  #
  sub_volumes       []
end

#descObject


137
138
139
# File 'lib/cluster_chef/volume.rb', line 137

def desc
  "#{name} on #{parent.fullname} (#{volume_id} @ #{device} from #{sub_volumes.join(',')})"
end