forked from marvel-nccr/quantum-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory.yml
114 lines (100 loc) · 4.11 KB
/
inventory.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# This file provides variable configuration:
# `all/vars` provides the global configuration
# `all/hosts/*` specifies variables that override global configuration
# CLI variables override any in this file: `ansible-playbook --extra-vars "name=value"`
# see also: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html
all:
vars:
# VM Metadata
vm_name: "Siesta Mobile"
vm_version: "0.2.0"
vm_description: "A Virtual Machine for Siesta Schools, based on the Marvel Quantum Mobile"
vm_url: "https://github.com/marvel-nccr/marvel-virtualmachine"
vm_author: "MARVEL NCCR, MaX CoE, and the Siesta Group"
vm_author_url: "http://siesta-project.org"
vm_release_notes_file: "${HOME}/Desktop/release_notes.txt"
vm_readme_file: "${HOME}/Desktop/README.md"
# VM configuration
vm_base_image: "bento/ubuntu-18.04"
vm_hostname: "qmobile"
vm_user: "max"
vm_password: "moritz"
vm_memory: 1536
vm_cpus: 2
vm_vram: 128
vm_shared_folder: "/shared"
vm_codes_folder: "${HOME}/codes"
vm_data_folder: "/usr/local/share"
vm_headless: false
vm_browser: chromium-browser # 'chromium-browser' or 'firefox'
vm_scheduler: slurm # 'slurm' or 'direct'
vm_examples_folder: # "${HOME}/examples" we don't currently use this folder
vm_examples_folder_reamde: # "${HOME}/examples/README.txt"
# Python virtual environments base location
aiida_venv_base: "${HOME}/.virtualenvs"
# Connection Ports
aiida_jupyter_port: 8890
aiidalab_jupyter_port: 8888
# Release Notes (populated by roles during build)
release_notes: true
release_notes_vm_user: "{{ vm_user }}"
release_notes_locally: true
local_dist_folder: "{{ playbook_dir }}/dist"
release_notes_localhost: "{{ local_dist_folder }}/Software-{{ vm_version }}.ini"
# Vagrant Intructions (created during the package/export phase)
release_instructions: "{{ local_dist_folder }}/Release-{{ vm_version }}.md"
# Connection variables
ansible_python_interpreter: /usr/bin/python3
root_user: root
# Build options
run_tests: true
clean: false # remove build files (will break idempotance, so only run before packaging/release)
hosts:
vagrant-provision:
# this private network IP will be created by `vagrant up`
cloud_platform: virtualbox
ansible_host: 192.168.111.222
ansible_user: vagrant
vagrant-ssh:
# requires first running `vagrant ssh-config > vagrant-ssh`
cloud_platform: virtualbox
ansible_host: default
ansible_ssh_common_args: "-F vagrant-ssh"
ansible_user: vagrant
docker:
# see playbook-docker.yml to start container
cloud_platform: docker
ansible_host: qm_instance # the instance name
ansible_connection: docker
ansible_user: root
vm_headless: true
jupyter_ip: "0.0.0.0"
# To connect to VMs you should change the host IP and provide an SSH key file
aws:
cloud_platform: aws
ansible_host: 34.227.10.49 # change this
ansible_ssh_common_args: -i ./keys/quantum-mobile.pem -o StrictHostKeyChecking=no
ansible_user: ubuntu
vm_headless: true
add_user_public_key: "{{ lookup('file', './keys/user-key.pub') }}"
hwcloud:
cloud_platform: hwcloud
ansible_host: 34.250.68.129 # change this
ansible_ssh_common_args: -i ./keys/quantum-mobile.pem -o StrictHostKeyChecking=no
ansible_user: root
vm_headless: true
# add_user_public_key: "{{ lookup('file', './keys/user-key.pub') }}"
openstack:
cloud_platform: openstack
ansible_host: 34.250.68.129 # change this
ansible_ssh_common_args: -i ./keys/quantum-mobile.pem -o StrictHostKeyChecking=no
ansible_user: ubuntu
vm_headless: true
# add_user_public_key: "{{ lookup('file', './keys/user-key.pub') }}"
gcp:
cloud_platform: gcp
ansible_host: 34.250.68.129 # change this
ansible_ssh_common_args: -i ./keys/quantum-mobile.pem -o StrictHostKeyChecking=no
ansible_user: max
vm_headless: true
# add_user_public_key: "{{ lookup('file', './keys/user-key.pub') }}"