PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/netbsd-613-amd64/definition.rb

https://github.com/halvards/veewee
Ruby | 103 lines | 67 code | 0 blank | 36 comment | 0 complexity | de7eb1b692f938b216a7bc1bd79b43f8 MD5 | raw file
  1. Veewee::Session.declare({
  2. :cpu_count => '1', :memory_size=> '256',
  3. :disk_size => '40960', :disk_format => 'VDI', :hostiocache => 'off',
  4. :os_type_id => 'NetBSD_64',
  5. :iso_file => "netbsd613_64.iso",
  6. :iso_src => "http://iso.netbsd.org/pub/NetBSD/iso/6.1.3/NetBSD-6.1.3-amd64.iso",
  7. :iso_sha256 => "830dd6871e228ba53522b1148e0ba87df9d3024b45bc12a630406257d0d93ce5",
  8. :iso_download_timeout => "1000",
  9. :boot_wait => "10", :boot_cmd_sequence => [
  10. # 1. Install NetBSD
  11. '1',
  12. '<Wait>'*20,
  13. # a: Installation messages in English
  14. '<Enter>',
  15. # a: unchanged
  16. '<Enter>',
  17. # a: Install NetBSD to hard disk
  18. '<Enter>',
  19. # Shall we continue? b: Yes
  20. 'b<Enter>',
  21. # >Hit enter to continue
  22. '<Enter>',
  23. # Select your distribution b: Installation without X11
  24. 'b<Enter>',
  25. # a: This is the correct geometry
  26. '<Enter>',
  27. # b: Use the entire disk
  28. 'b<Enter>',
  29. # Do you want to install the NetBSD bootcode? a: Yes
  30. '<Enter>',
  31. # Choose your installation b: Use existing partition sizes
  32. 'b<Enter>',
  33. # x: Partition sizes ok
  34. 'x<Enter>',
  35. # Please enter a name for your NetBSD disk [VBOX HARDDISK ]:
  36. '<Enter>',
  37. # Shall we continue?
  38. 'b<Enter>',
  39. '<Wait>'*15,
  40. # Bootblocks selection
  41. 'x<Enter>',
  42. # Install from a: CD-ROM / DVD / install image media
  43. '<Enter>',
  44. '<Wait>'*30,
  45. # Hit enter to continue
  46. '<Enter>',
  47. # d: Change root password
  48. 'd<Enter>',
  49. # yes or no? a: Yes
  50. '<Enter>',
  51. # Changing local password for root.
  52. 'vagrant<Enter>',
  53. 'vagrant<Enter>',
  54. 'vagrant<Enter>',
  55. # g: Enable sshd
  56. 'g<Enter>',
  57. # a: Configure network
  58. 'a<Enter>',
  59. # Which device shall I use? [wm0]
  60. '<Enter>',
  61. # Network media type [autoselect]:
  62. '<Enter>',
  63. # Perform DHCP autoconfiguration? a: Yes
  64. '<Enter>',
  65. '<Wait>'*5,
  66. # Your DNS domain [example.com]:
  67. '<Enter>',
  68. # Your host name:
  69. 'NetBSD61-amd64<Enter>',
  70. # Perform IPv6 autoconfiguration? a: No
  71. '<Enter>',
  72. # Are they OK? a: Yes
  73. '<Enter>',
  74. '<Wait>'*10,
  75. # Is the network information you entered accurate for thes machine
  76. # in regular operation and do you want it installed in /etc? a: Yes
  77. '<Enter>',
  78. # x: Finished configuring
  79. 'x<Enter>',
  80. # Hit enter to continue
  81. '<Enter>',
  82. # e: Utility menu
  83. 'e<Enter>',
  84. # a: Run /bin/sh
  85. 'a<Enter>',
  86. # put "PermitRootLogin" on /etc/ssh/sshd_config
  87. 'mount /dev/wd0a /mnt<Enter>',
  88. 'echo "PermitRootLogin yes" >> /mnt/etc/ssh/sshd_config<Enter>',
  89. 'umount /mnt<Enter>',
  90. 'reboot<Enter>'
  91. ],
  92. :kickstart_port => "7122", :kickstart_timeout => "300", :kickstart_file => "",
  93. :ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "vagrant", :ssh_key => "",
  94. :ssh_host_port => "7222", :ssh_guest_port => "22",
  95. :sudo_cmd => "sh '%f'",
  96. :shutdown_cmd => "/sbin/shutdown -p now",
  97. :postinstall_files => [
  98. "base.sh",
  99. "vagrant.sh",
  100. "chef.sh"
  101. ],
  102. :postinstall_timeout => "10000"
  103. })