source: installer/vagrant/Vagrantfile-boottools-vbox @ 1c9ef24

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 1c9ef24 was 8413f14, checked in by ramon <ramongomez@…>, 9 years ago

#724 #739: Automatizar el entorno virtual para generar cliente ogLive mediante Vagrant.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@4846 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# Vagrantfile to install OpenGnsys boot-tools .1 virtual environment using VirtualBox provider.
2
3VAGRANTFILE_API_VERSION = "2"
4# VM provider: Oracle VM VirtualBox.
5ENV['VAGRANT_DEFAULT_PROVIDER'] = "virtualbox"
6# Language.
7LANGUAGE = "es_ES"
8ENV['LC_ALL'] = LANGUAGE + ".UTF-8"
9# Amount of memory VM.
10VMMEM = 1024
11# OpenGnsys boot-tools environment provisioning script.
12SCRIPT = <<EOT
13# Set language.
14export LANG="#{LANGUAGE}.UTF-8"
15echo "LANG=\"$LANG\"" > /etc/default/locale
16locale-gen --lang #{LANGUAGE}
17# Install dependencies.
18apt-get update -y
19apt-get install -y subversion
20# Prepare environment.
21mkdir -p /opt/opengnsys/client /tmp/opengnsys_installer/opengnsys
22ln -fs /var/lib/tftpboot /opt/opengnsys
23svn export http://opengnsys.es/svn/branches/version1.1/client /tmp/opengnsys_installer/opengnsys/client
24echo "Connect to this VM, launch boot-tools generation script and follow instructions:"
25echo "    sudo /tmp/opengnsys_installer/opengnsys/client/boot-tools/boottoolsgenerator.sh"
26EOT
27
28Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
29
30  # OpenGnsys boot-tools environment VM definition.
31  config.vm.define "ogBootTools" do |bt|
32    # Specific VirtualBox configuration.
33    bt.vm.provider "virtualbox" do |vb|
34      # VM name, memory and CPUs.
35      vb.name = "ogBootTools"
36      vb.memory = VMMEM
37      vb.cpus = 1
38      vb.gui = true
39    end
40    # VM base and host name.
41    bt.vm.box = "ubuntu/wily32"
42    bt.vm.hostname = "ogBootTools"
43    # Disable synced folder.
44    bt.vm.synced_folder ".", "/vagrant", disabled: true
45    # Launch provisioning script.
46    bt.vm.provision "shell", inline: SCRIPT
47  end
48
49end
50
Note: See TracBrowser for help on using the repository browser.