-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
40 lines (33 loc) · 1.65 KB
/
README
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
# obecne sa najskor odporuca upgrade balikov
sudo apt-get update
sudo apt-get upgrade -y
# Nainstalovat ansible 2.12
sudo echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main" > /etc/apt/sources.list.d/ansible_ubuntu_focal_main.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
sudo apt-get update
sudo apt-get install ansible -y
# Vytvorit kluc pre pristup do git repa a zaregistrovat kluc vo svojom profile na githube
ssh-keygen -t ed25519
# Stiahnut repo
git clone <this repo>
# potreba nastavit spravne uzivatela <pulsar_user>, jeho UID a spravny NFS-home v playbooku v pulsar.yml (galaxyelixir, galaxyumsa ci galaxyeu)
# vytvorit trezor
cd pulsar_node
openssl rand -base64 24 > .vault-password.txt
rm group_vars/secret.yml # ak sa jedna o fresh instalaciu
ansible-vault create group_vars/secret.yml # zadat heslo pre komunikaciu s prislusnou instanciou rabbitmq-server (napr. rabbitmq_password: a-very-long-password)
# spustime playbook
ansible-playbook pulsar.yml
##########################
## INFO: Bolo nutne zmenit obsah subora: roles/galaxyproject.pulsar/tasks/paths.yml (task Create Pulsar user-owned directories):
- name: Create Pulsar user-owned directories
file:
path: "{{ item }}"
state: directory
#owner: "{{ __pulsar_user_name }}"
#group: "{{ __pulsar_user_group }}"
#mode: "{{ __pulsar_dir_perms }}"
with_items: "{{ pulsar_dirs }}"
become: yes
become_user: "{{ __pulsar_user_name }}"
## Ak sa nespusti tvrda reinstalacia ansible zavislosti via `ansible-galaxy install -f -p roles -r requirements.yml` tak by nemalo dojst k obnove povodneho obsahu