Class: Vmit::Kickstart
- Inherits:
-
Object
- Object
- Vmit::Kickstart
- Defined in:
- lib/vmit/kickstart.rb
Instance Attribute Summary collapse
-
#install ⇒ Object
Returns the value of attribute install.
Instance Method Summary collapse
-
#initialize ⇒ Kickstart
constructor
ks=floppy.
- #to_ks_script ⇒ Object
Constructor Details
Instance Attribute Details
#install ⇒ Object
Returns the value of attribute install.
28 29 30 |
# File 'lib/vmit/kickstart.rb', line 28 def install @install end |
Instance Method Details
#to_ks_script ⇒ Object
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 |
# File 'lib/vmit/kickstart.rb', line 34 def to_ks_script template = ERB.new <<-EOF cmdline halt rootpw linux lang en_US.UTF-8 keyboard us timezone --utc America/New_York bootloader --location=mbr --driveorder=sda --append="rhgb quiet" install <% if install.is_a?(String) || install.is_a?(::URI)%> url --url=<%= install.to_s.strip %> <% else %> <%= install %> <% end %> network --device eth0 --bootproto dhcp zerombr yes clearpart --all --initlabel autopart %packages --nobase @core @server-policy wget mc %end EOF template.result(binding) end |