-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbelow.src.pb
34 lines (34 loc) · 992 Bytes
/
below.src.pb
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
# https://developers.facebook.com/blog/post/2021/09/21/below-time-travelling-resource-monitoring-tool/
---
- hosts: all
vars:
TYPE: below
INSTANCE: git
REPO: https://github.com/facebookincubator/below
BINS:
- name: build.sh
basedir: True
exec: |
#cargo install below
cargo build --release
- name: install.sh
basedir: True
exec: |
#ln -s $(pwd)/target/release/below $GLOBAL_BINS_DIR/
# so we don't have to reconfigure below.service
ln -sf $(pwd)/target/release/below /usr/bin/below
ln -sf $(pwd)/etc/below.service $SYSTEMD_UNIT_DIR/
systemctl enable below.service
PKGS:
- zlib1g-dev
- libelf-dev
- libncurses-dev
- libssl-dev
ENV:
CLANG: clang-18
GLOBAL_BINS_DIR: "{{GLOBAL_BINS_DIR}}"
SYSTEMD_UNIT_DIR: "{{SYSTEMD_UNIT_DIR}}"
tasks:
- import_tasks: tasks/compfuzor.includes
vars:
type: src