Skip to content

Commit e1afa84

Browse files
authored
Merge pull request #100 from marvel-nccr/develop
merge release 19.09
2 parents c8f1923 + dc91983 commit e1afa84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+98
-1901
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ other_stuff/*/*.png
1414

1515
# roles & dependencies
1616
roles/marvel-nccr*
17+
roles/gantsign*

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

3+
## Quantum Mobile v19.09.0
4+
5+
### Improvements
6+
* first official Quantum Mobile release with AiiDA 1.0
7+
* python environment switched from 2.7 to 3.6
8+
9+
### Software updates
10+
* aiida-core v1.0.0b6
11+
* aiida-quantumespresso v3.0.0a4
12+
* aiidalab v19.08.0a1
13+
14+
## Quantum Mobile v19.07.0
15+
16+
### Improvements
17+
* now installing fixed versions of ansible roles for improved reproducibility
18+
and tracking of changes between Quantum Mobile releases
19+
* now installing codes system-wide for better reuse in servers
20+
+ following ansible conventions
21+
22+
### Software updates
23+
* aiidalab v19.05.3
24+
25+
### Build process
26+
* ansible 2.7.10
27+
* Vagrant v2.2.5
28+
* vbguest v0.19.0
29+
* bento/ubuntu-18.04 v201906.18.0
30+
* Virtualbox v6.0.10
31+
332
## Quantum Mobile v19.03.0
433

534
### Improvements

Vagrantfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Vagrant.configure(2) do |config|
2626
vb.customize ["modifyvm", :id, "--vram", gconfig['vm_vram']]
2727
# makes mouse/typing more responsive
2828
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
29+
# see https://github.com/marvel-nccr/quantum-mobile/issues/99
30+
vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxsvga"]
2931
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
3032
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
3133
# turn off remote display (requires Virtualbox Extension pack)
@@ -51,7 +53,7 @@ Vagrant.configure(2) do |config|
5153
#config.vm.box = "bento/ubuntu-16.04"
5254
#config.vm.box_version = "201803.24.0"
5355
config.vm.box = "bento/ubuntu-18.04"
54-
config.vm.box_version = "201812.27.0"
56+
config.vm.box_version = "201906.18.0"
5557
#config.vm.box = "ubuntu/xenial64"
5658
config.vm.boot_timeout = 60
5759

@@ -74,7 +76,7 @@ Vagrant.configure(2) do |config|
7476
ansible.verbose = "v"
7577
ansible.playbook = "playbook.yml"
7678
ansible.extra_vars = {
77-
ansible_python_interpreter: "/usr/bin/python2.7",
79+
ansible_python_interpreter: "/usr/bin/python3",
7880
}
7981
ansible.raw_arguments = Shellwords.shellsplit(ENV['ANSIBLE_ARGS']) if ENV['ANSIBLE_ARGS']
8082
end

globalconfig.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# Caution: This file is read by vagrant, ansible and bash
3-
vm_version: "19.03.0"
43
vm_name: "Quantum Mobile"
4+
vm_version: "19.09.0"
55
vm_description: "A Virtual Machine for Computational Materials Science"
66
vm_url: "https://github.com/marvel-nccr/marvel-virtualmachine"
77
vm_author: "MARVEL NCCR and MaX CoE"
@@ -20,4 +20,4 @@ vm_codes_folder: "${HOME}/codes"
2020
vm_examples_folder: "${HOME}/examples"
2121
vm_headless: False
2222
vm_browser: chromium-browser # 'chromium-browser' or 'firefox'
23-
vm_scheduler: slurm # 'slurm' or 'torque'
23+
vm_scheduler: slurm # 'slurm' or 'direct'

hosts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[vms:vars]
22
ansible_ssh_common_args= -F vagrant-ssh
3+
# modify this line to switch to python2
4+
ansible_python_interpreter=/usr/bin/python3
35
[vms]
46
default ansible_user=vagrant

other_stuff/reconnect_vagrant.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
In order to connect vagrant to a new VM in Virtualbox:
1+
In order to connect vagrant to a new VM in Virtualbox, use ./reconnect_vagrant.sh
2+
3+
### Old instructions
24

35
1. Get uuid of machine from: vboxmanage list vms
46
2. echo "<the-uuid>" > .vagrant/machines/default/virtualbox/id
@@ -10,7 +12,7 @@ folder which contains, amongst other things, the private key.
1012

1113
3. cp ~/.vagrant.d/insecure_private_key .vagrant/machines/default/virtualbox/
1214
4. Generate the corresponding public key
13-
ssh-keygen -y -f ~/.vagrant.d/insecure_private_key
15+
ssh-keygen -y -f ~/.vagrant.d/private_key
1416
5. Use the Virtualbox GUI to paste the public key inside the VM:
1517
mkdir -p ~/.ssh
1618
vim ~/.ssh/authorized_keys

playbook.yml

Lines changed: 25 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
---
22
- name: Install ansible prerequisites
3-
hosts: default
4-
gather_facts: no
5-
roles:
6-
- marvel-nccr.ansible_prerequisites
7-
8-
- name: Add vm user
93
hosts: default
104
gather_facts: no
115
pre_tasks:
@@ -20,38 +14,35 @@
2014
debug:
2115
msg: Connecting to host '{{ inventory_hostname }}' as user '{{ ansible_user }}'
2216
roles:
23-
- name: add user {{ vm_user }} with key
24-
role: marvel-nccr.add_user
25-
vars:
26-
add_user_name: "{{ vm_user }}"
27-
add_user_password: "{{ vm_password }}"
28-
add_user_sudo: True
29-
30-
# Note: it is important to pass variables to roles using the 'vars' dictionary.
17+
- role: marvel-nccr.ansible_prerequisites
18+
19+
# Note: Pass variables to roles using the 'vars' dictionary!
3120
# If variables are passed on the same indentation level as the role, the variable is
3221
# set correctly inside the role, but following roles will read the *default*
3322
# value of the variable (as defined inside the role).
3423
- name: set up the VM
3524
hosts: default
36-
become: True
37-
become_user: "{{ vm_user }}"
38-
pre_tasks:
39-
- name: import global variables
40-
tags: always
41-
include_vars:
42-
file: globalconfig.yml
4325
vars:
4426
- release_notes: True
27+
- release_notes_vm_user: "{{ vm_user }}"
4528
- run_tests: False
4629
- clean: False
4730
- root_user: root
4831
- cloud_platform: virtualbox
4932
roles:
33+
- name: add user {{ vm_user }} with key
34+
role: marvel-nccr.add_user
35+
vars:
36+
add_user_name: "{{ vm_user }}"
37+
add_user_password: "{{ vm_password }}"
38+
add_user_groups:
39+
- "{{ vm_user }}"
40+
- sudo
41+
add_user_passwordless_sudo: true
5042
- role: marvel-nccr.simulationbase
5143
tags: simulationbase
5244
vars:
5345
simulationbase_vm_user: "{{ vm_user }}"
54-
simulationbase_vm_user_public_key: "{{ lookup('file', './keys/aiida_tutorial_aiidaaccount.pub') }}"
5546
simulationbase_hostname: "{{ vm_hostname }}"
5647
simulationbase_codes_folder: "{{ vm_codes_folder }}"
5748
- role: marvel-nccr.ubuntu_desktop
@@ -74,49 +65,40 @@
7465
qm_customizations_examples_folder: "{{ vm_examples_folder }}"
7566
- role: marvel-nccr.editors
7667
tags: editors
68+
vars:
69+
editors_vm_user: "{{ vm_user }}"
7770
- role: marvel-nccr.slurm
7871
tags: slurm
7972
vars:
8073
slurm_hostname: "{{ vm_hostname }}"
8174
slurm_cpus: "{{ vm_cpus }}"
8275
slurm_memory: "{{ vm_memory }}"
83-
# - role: marvel-nccr.torque
84-
# tags: torque
85-
# vars:
86-
# torque_hostname: "{{ vm_hostname }}"
87-
# torque_cpus: "{{ vm_cpus }}"
8876
- role: marvel-nccr.quantum_espresso
8977
tags: quantum_espresso
90-
vars:
91-
quantum_espresso_code_folder: "{{ vm_codes_folder }}"
9278
- role: marvel-nccr.yambo
9379
tags: yambo
94-
vars:
95-
yambo_code_folder: "{{ vm_codes_folder }}"
9680
- role: marvel-nccr.fleur
9781
tags: fleur
98-
vars:
99-
fleur_code_folder: "{{ vm_codes_folder }}"
10082
- role: marvel-nccr.siesta
10183
tags: siesta
102-
vars:
103-
siesta_code_folder: "{{ vm_codes_folder }}"
10484
- role: marvel-nccr.cp2k
10585
tags: cp2k
106-
vars:
107-
cp2k_code_folder: "{{ vm_codes_folder }}"
86+
#vars:
87+
# cp2k_installation_route: "apt"
10888
- role: marvel-nccr.wannier90
10989
tags: wannier90
110-
vars:
111-
wannier90_code_folder: "{{ vm_codes_folder }}"
90+
- role: marvel-nccr.aiidalab
91+
become: true
92+
become_user: "{{ vm_user }}"
93+
tags: aiidalab
94+
vars:
95+
aiidalab_headless: "{{ vm_headless }}"
11296
- role: marvel-nccr.aiida
11397
tags: aiida
98+
become: true
99+
become_user: "{{ vm_user }}"
114100
vars:
115101
aiida_code_folder: "{{ vm_codes_folder }}"
116102
aiida_localhost_cpus: "{{ vm_cpus }}"
117103
aiida_localhost_scheduler: "{{ vm_scheduler }}"
118104
aiida_examples_folder: "{{ vm_examples_folder }}"
119-
- role: marvel-nccr.aiidalab
120-
tags: aiidalab
121-
vars:
122-
aiidalab_headless: "{{ vm_headless }}"

requirements.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,41 @@
11
---
2-
# Needed to modify this role for become_user
3-
# See https://github.com/marvel-nccr/quantum-mobile/issues/67
4-
#- src: gantsign.default-web-browser
5-
# version: 3.1.0
2+
- src: gantsign.default-web-browser
3+
version: 3.2.0
64
- src: marvel-nccr.ansible_prerequisites
7-
version: master
5+
version: v0.1.0
86
- src: marvel-nccr.current_user
9-
version: master
7+
version: v0.1.0
108
- src: marvel-nccr.add_user
11-
version: master
9+
version: v0.2.1
1210
- src: marvel-nccr.simulationbase
13-
version: master
11+
version: v1.0.0
1412
- src: marvel-nccr.ubuntu_desktop
15-
version: master
13+
version: v1.0.0
1614
- src: marvel-nccr.quantum_mobile_customizations
17-
version: master
15+
version: v1.0.0
1816
- src: marvel-nccr.editors
19-
version: master
17+
version: v1.0.1
2018
- src: marvel-nccr.slurm
21-
version: master
19+
version: v1.0.0
2220
- src: marvel-nccr.quantum_espresso
23-
version: master
21+
version: v1.0.1
2422
- src: marvel-nccr.yambo
25-
version: master
23+
version: v1.0.0
2624
- src: marvel-nccr.fleur
27-
version: master
25+
version: v1.0.0
2826
- src: marvel-nccr.siesta
29-
version: master
27+
version: v1.0.1
3028
- src: marvel-nccr.cp2k
31-
version: master
29+
version: v1.0.1
3230
- src: marvel-nccr.wannier90
33-
version: master
34-
- src: marvel-nccr.aiida
35-
version: master
36-
- src: marvel-nccr.aiidalab
37-
version: master
31+
version: v1.0.0
32+
#- src: marvel-nccr.aiida
33+
# version: v0.1.2
34+
- src: https://github.com/marvel-nccr/ansible-role-aiida.git
35+
version: develop
36+
name: marvel-nccr.aiida
37+
#- src: marvel-nccr.aiidalab
38+
# version: v0.1.2
39+
- src: https://github.com/marvel-nccr/ansible-role-aiidalab.git
40+
version: develop
41+
name: marvel-nccr.aiidalab

roles/gantsign.default-web-browser/.editorconfig

Lines changed: 0 additions & 19 deletions
This file was deleted.

roles/gantsign.default-web-browser/.gitattributes

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)