Commit 620d51d1 authored by Guillaume Mella's avatar Guillaume Mella
Browse files

move so we can add a dedicated huge partition

parent aa382089
......@@ -10,6 +10,28 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/stretch64"
# added to get a 50GB disk
# vagrant-vbguest does not compile properly using an ansible playbook to do it
# required_plugins = %w( vagrant-vbguest vagrant-disksize )
required_plugins = %w( vagrant-disksize )
_retry = false
required_plugins.each do |plugin|
unless Vagrant.has_plugin? plugin
system "vagrant plugin install #{plugin}"
_retry=true
end
end
if (_retry)
exec "vagrant " + ARGV.join(' ')
end
config.disksize.size = "50GB"
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.network "forwarded_port", guest: 80, host: 8081
......
......@@ -37,6 +37,8 @@
gather_facts: true
tasks:
- name: "Install owncloud from their repo"
block:
- apt_key : url="http://download.opensuse.org/repositories/isv:ownCloud:desktop/Debian_9.0/Release.key"
......@@ -60,28 +62,32 @@
- vim-gui-common
- curl
- name: "Create a new partition for school software and data"
block:
- parted:
device: /dev/sda
number: 3
part_type: primary
part_start: 20764672s
part_end: 104857599s
state: present
- filesystem:
fstype: ext4
dev: /dev/sda3
- mount:
path: /school
src: /dev/sda3
fstype: ext4
state: mounted
- include_role:
name: PeterMosmans.virtualbox-guest
name: PeterMosmans.virtualbox-guest
- include_role:
name: williamyeh.oracle-java
- name: "Install some ESO pipelines"
include_role:
name: eso-pipelines
- name: "Install system packages required by LITpro"
apt: name={{ item }} state=present
with_items:
- xsltproc
- xmlstarlet
- name: alternatives link for "xmlstarlet"
alternatives:
name: xml
link: /usr/bin/xml
path: "/usr/bin/xmlstarlet"
name: williamyeh.oracle-java
- user:
name: "{{ user_login}}"
comment: "{{ user_login | upper}} roscoff tutorial user"
......@@ -101,7 +107,6 @@
xset s off
# TODO : fix it, it does not work !!!
- name: 'Perform custom replacements'
replace:
dest: "{{item.dest}}"
......@@ -110,7 +115,26 @@
with_items:
- {dest: "/etc/lightdm/lightdm.conf",regexp: "#autologin-user=",replace: "autologin-user=ees17",reason: "Auto login"}
- {dest: "/etc/default/keyboard",regexp: 'XKBLAYOUT="us"',replace: 'XKBLAYOUT="fr,us"',reason: "add fr layout in keyboard"}
- name: "Install some ESO pipelines"
include_role:
name: eso-pipelines
vars:
eso-pipelines-install-dir: /school/eso-pipelines
- name: "Install system packages required by LITpro"
apt: name={{ item }} state=present
with_items:
- xsltproc
- xmlstarlet
- name: alternatives link for "xmlstarlet"
alternatives:
name: xml
link: /usr/bin/xml
path: "/usr/bin/xmlstarlet"
- name: "Install required science packages"
apt: name={{ item }} state=present
with_items:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment