Skip to content

Commit 07856cb

Browse files
committed
backport changes from QM workhorse
* fix versions in requirements.yaml * switch to develop branch for aiida & aiidalab roles * switch order of aiida and aiidalab roles (so that misconfigurations by aiidalab role can be fixed by aiida)
1 parent c8f1923 commit 07856cb

File tree

5 files changed

+52
-36
lines changed

5 files changed

+52
-36
lines changed

CHANGELOG.md

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

3+
## Quantum Mobile v19.XX.0
4+
5+
### Improvements
6+
* now installing fixed versions of ansible roles for improved reproducibility
7+
and tracking of changes between Quantum Mobile releases
8+
9+
### Software updates
10+
* roles:
11+
* marvel-nccr.add_user v0.2.1
12+
* marvel-nccr.simulationbase v0.1.1
13+
14+
### Build process
15+
* Virtualbox v6.0.8
16+
317
## Quantum Mobile v19.03.0
418

519
### Improvements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ provenance tracking.
2323
You can run Quantum Mobile on your Windows, MacOS or Linux computer using the
2424
[VirtualBox](http://virtualbox.org/) software.
2525
You can also
26-
[install Quantum Mobile on virtual machines using cloud services](https://github.com/materialscloud-org/ansible-playbook-workhorse)
26+
[install Quantum Mobile on virtual machines using cloud services](https://github.com/marvel-nccr/ansible-playbook-workhorse)
2727
like Amazon Web Services or OpenStack.
2828

2929
![Demo](https://image.ibb.co/n50SdT/quantum_mobile.gif "A brief impression of the Quantum Mobile interface.")

globalconfig.yml

Lines changed: 1 addition & 1 deletion
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.05.0-tutorial"
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"

playbook.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
hosts: default
44
gather_facts: no
55
roles:
6-
- marvel-nccr.ansible_prerequisites
6+
- role: marvel-nccr.ansible_prerequisites
77

8+
# Note: This play could be merged with "set up the VM" but it can make sense to
9+
# connect to the VM using the user created here. Leaving it separate for the moment.
810
- name: Add vm user
911
hosts: default
1012
gather_facts: no
13+
tags: add_user
1114
pre_tasks:
1215
- name: import global variables
1316
tags: always
@@ -25,7 +28,10 @@
2528
vars:
2629
add_user_name: "{{ vm_user }}"
2730
add_user_password: "{{ vm_password }}"
28-
add_user_sudo: True
31+
add_user_groups:
32+
- "{{ vm_user }}"
33+
- sudo
34+
add_user_passwordless_sudo: true
2935

3036
# Note: it is important to pass variables to roles using the 'vars' dictionary.
3137
# If variables are passed on the same indentation level as the role, the variable is
@@ -35,11 +41,6 @@
3541
hosts: default
3642
become: True
3743
become_user: "{{ vm_user }}"
38-
pre_tasks:
39-
- name: import global variables
40-
tags: always
41-
include_vars:
42-
file: globalconfig.yml
4344
vars:
4445
- release_notes: True
4546
- run_tests: False
@@ -80,11 +81,6 @@
8081
slurm_hostname: "{{ vm_hostname }}"
8182
slurm_cpus: "{{ vm_cpus }}"
8283
slurm_memory: "{{ vm_memory }}"
83-
# - role: marvel-nccr.torque
84-
# tags: torque
85-
# vars:
86-
# torque_hostname: "{{ vm_hostname }}"
87-
# torque_cpus: "{{ vm_cpus }}"
8884
- role: marvel-nccr.quantum_espresso
8985
tags: quantum_espresso
9086
vars:
@@ -109,14 +105,14 @@
109105
tags: wannier90
110106
vars:
111107
wannier90_code_folder: "{{ vm_codes_folder }}"
108+
- role: marvel-nccr.aiidalab
109+
tags: aiidalab
110+
vars:
111+
aiidalab_headless: "{{ vm_headless }}"
112112
- role: marvel-nccr.aiida
113113
tags: aiida
114114
vars:
115115
aiida_code_folder: "{{ vm_codes_folder }}"
116116
aiida_localhost_cpus: "{{ vm_cpus }}"
117117
aiida_localhost_scheduler: "{{ vm_scheduler }}"
118118
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: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,40 @@
44
#- src: gantsign.default-web-browser
55
# version: 3.1.0
66
- src: marvel-nccr.ansible_prerequisites
7-
version: master
7+
version: v0.1.0
88
- src: marvel-nccr.current_user
9-
version: master
9+
version: v0.1.0
1010
- src: marvel-nccr.add_user
11-
version: master
11+
version: v0.2.1
1212
- src: marvel-nccr.simulationbase
13-
version: master
13+
version: v0.1.1
1414
- src: marvel-nccr.ubuntu_desktop
15-
version: master
15+
version: v0.1.0
1616
- src: marvel-nccr.quantum_mobile_customizations
17-
version: master
17+
version: v0.1.0
1818
- src: marvel-nccr.editors
19-
version: master
19+
version: v0.1.0
2020
- src: marvel-nccr.slurm
21-
version: master
21+
version: v0.1.1
2222
- src: marvel-nccr.quantum_espresso
23-
version: master
23+
version: v0.1.0
2424
- src: marvel-nccr.yambo
25-
version: master
25+
version: v0.1.0
2626
- src: marvel-nccr.fleur
27-
version: master
27+
version: v0.1.0
2828
- src: marvel-nccr.siesta
29-
version: master
29+
version: v0.1.0
3030
- src: marvel-nccr.cp2k
31-
version: master
31+
version: v0.1.0
3232
- src: marvel-nccr.wannier90
33-
version: master
34-
- src: marvel-nccr.aiida
35-
version: master
36-
- src: marvel-nccr.aiidalab
37-
version: master
33+
version: v0.1.0
34+
#- src: marvel-nccr.aiida
35+
# version: v0.1.0
36+
- src: https://github.com/marvel-nccr/ansible-role-aiida.git
37+
version: tutorial-2019-05
38+
name: marvel-nccr.aiida
39+
#- src: marvel-nccr.aiidalab
40+
# version: v0.1.0
41+
- src: https://github.com/marvel-nccr/ansible-role-aiidalab.git
42+
version: tutorial-2019-05
43+
name: marvel-nccr.aiidalab

0 commit comments

Comments
 (0)