source: installer/vagrant/Vagrantfile-boottools-vbox @ 978e186

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 978e186 was 11364a6, checked in by ramon <ramongomez@…>, 9 years ago

#724: Herramientas boot-tools preparadas para generar clinete ogLive basado en Ubuntu 16.04 LTS.

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

  • Property mode set to 100644
File size: 1.8 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
16echo "LANG=\"$LANG\"" >> /etc/environment
17locale-gen --lang #{LANGUAGE}
18sed -i "s/XKBLAYOUT=.*/XKBLAYOUT=\"${LANG%_*}\"/" /etc/default/keyboard
19dpkg-reconfigure -fnoninteractive console-setup
20# Install dependencies.
21apt-get update -y
22apt-get install -y subversion
23# Prepare environment.
24groupadd opengnsys
25mkdir -p /opt/opengnsys/client /tmp/opengnsys_installer/opengnsys
26ln -fs /var/lib/tftpboot /opt/opengnsys
27svn export http://opengnsys.es/svn/branches/version1.1/client /tmp/opengnsys_installer/opengnsys/client
28echo "Connect to this VM, launch boot-tools generation script and follow instructions:"
29echo "    sudo /tmp/opengnsys_installer/opengnsys/client/boot-tools/boottoolsgenerator.sh"
30EOT
31
32Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
33
34  # OpenGnsys boot-tools environment VM definition.
35  config.vm.define "ogBootTools" do |bt|
36    # Specific VirtualBox configuration.
37    bt.vm.provider "virtualbox" do |vb|
38      # VM name, memory and CPUs.
39      vb.name = "ogBootTools"
40      vb.memory = VMMEM
41      vb.cpus = 1
42    end
43    # VM base and host name.
44    bt.vm.box = "ubuntu/wily32"
45    bt.vm.hostname = "ogBootTools"
46    # Comment out to disable synced folder.
47    #bt.vm.synced_folder ".", "/vagrant", disabled: true
48    # Launch provisioning script.
49    bt.vm.provision "shell", inline: SCRIPT
50  end
51
52end
53
Note: See TracBrowser for help on using the repository browser.