-
Notifications
You must be signed in to change notification settings - Fork 32
/
inventory.yml
110 lines (98 loc) · 3.99 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
# This file provides shared 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: "Quantum Mobile"
vm_version: "23.04.03"
vm_description: "A Virtual Machine for Computational Materials Science"
vm_url: "https://github.com/marvel-nccr/marvel-virtualmachine"
vm_author: "MARVEL NCCR and MaX CoE"
vm_author_url: "http://nccr-marvel.ch"
# VM configuration
vm_base_image: "bento/ubuntu-20.04"
vm_hostname: "qmobile"
vm_user: "max"
vm_password: "moritz"
vm_memory: 1536
vm_cpus: 2
vm_vram: 128
vm_headless: false
vm_browser: chromium-browser # 'chromium-browser' or 'firefox'
vm_data_folder: "/usr/local/share" # this is used to put shared data files in
# vm_shared_folder: "/shared" # this is currently inactive in Vagrant config
vm_timezone: "Europe/Zurich"
# Connection variables
ansible_python_interpreter: /usr/bin/python3
root_user: root
# Build options
build_dir: "/tmp"
run_tests: true
# Readme and Release Notes (populated by roles during build)
qm_homepage: "https://quantum-mobile.readthedocs.io"
readme_vm_path: "/home/{{ vm_user }}/README.md"
release_notes: true
release_notes_vm_user: "{{ vm_user }}"
release_notes_vm_path: "/home/{{ vm_user }}/RELEASE_NOTES.txt"
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"
aiida_conda_env: "aiida"
aiida_profile: "generic"
aiida_jupyter_ip: "localhost"
aiida_jupyter_port: 8890
aiida_jupyter_token: "7c8a1215d6768f78e8300804741bd3883d7b1510159b755e"
hosts:
vagrant-provision:
# this private network IP will be created by `vagrant up`
cloud_platform: virtualbox
ansible_host: 192.168.56.10
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
aiida_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') }}"