-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathaggregator.yaml
More file actions
61 lines (54 loc) · 1.6 KB
/
aggregator.yaml
File metadata and controls
61 lines (54 loc) · 1.6 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
- import_playbook: setup.yaml
- import_playbook: go.yaml
- import_playbook: rust.yaml
- import_playbook: eigenlayer-cli.yaml
- hosts: aggregator
vars:
service: "aggregator"
tasks:
- name: Update apt and install required system packages
become: true
apt:
pkg:
- pkg-config
- libssl-dev
- gcc
state: latest
update_cache: true
- name: Create directories for each service if do not exist
become: true
ansible.builtin.file:
path: /home/{{ app_user }}/repos/{{ service }}
state: directory
mode: '0755'
owner: '{{ app_user }}'
group: '{{ app_user }}'
loop:
- aggregator
- name: Clone Aligned repository
become: true
ansible.builtin.git:
repo: https://github.com/yetanotherco/aligned_layer.git
dest: /home/{{ app_user }}/repos/{{ service }}/aligned_layer
version: v0.10.2
loop:
- aggregator
- name: Set permissions for cloned repository
become: true
ansible.builtin.file:
path: /home/{{ app_user }}/repos/{{ service }}/aligned_layer
mode: '0755'
owner: '{{ app_user }}'
group: '{{ app_user }}'
recurse: yes
- name: Compile all FFIs
become: true
shell:
chdir: /home/{{ app_user }}/repos/aggregator/aligned_layer
cmd: sudo -u {{ app_user }} . /home/{{ app_user }}/.profile && sudo -u {{ app_user }} make build_all_ffi_linux
- name: Allow access to tcp port 8090
become: true
ufw:
rule: allow
port: 8090
proto: tcp