-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase_node.yml
More file actions
61 lines (47 loc) · 1.46 KB
/
database_node.yml
File metadata and controls
61 lines (47 loc) · 1.46 KB
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
# Playbook runs basic setup and configuration for clusterhat cluster using USBBOOT images. Follow steps below.
# 1. Image controller SD
# 2. Touch `ssh` in `boot` vol (/Volumes/boot on MacOS)
# 3. Boot controller from SD
# 4. ssh to controller using default username/pw and change hostname
# 4. Copy pi user ID `ssh-copy-id -i [pi user id file] pi@[hostname]`
# 5. Run playbook with `ansible-playbook -i inventory.yml --private-key ~/.ssh/pi_id_ecdsa cluster_setup.yml -K`
---
- hosts: database
remote_user: ansible
become: yes
vars_files:
- vars/vars.yml
pre_tasks:
- name: "Install pip, setuptools, virtualenv if not already"
apt:
name:
- python-pip
- python-setuptools
- virtualenv
state: present
update_cache: yes
- name: "Install pyOpenSSL if not already"
pip:
name:
- cryptography
- pyOpenSSL # required for OpenSSL cert creation
state: present
roles:
- role: common
tags:
- common
- role: docker
tags:
- docker
- role: prometheus
tags:
- prometheus
- role: influxdb
tags:
- influxdb
- role: zcube-cadvisor
tags:
- cadvisor
- role: cloudalchemy.node-exporter
tags:
- node-exporter