Commit Graph

23 Commits

Author SHA1 Message Date
Jakub Sokołowski 75e8e71993
set SyslogLevel=debug for systemd service avoid journald
This setting in combination with `MaxLevelStore=info` in `/etc/systemd/journald.conf`
will prevent Journald from being constantly filled by a considerable flow of
logs from beacon nodes and making debugging of other servics on the host harder.

Due to this `journalctl` will no longer show logs for the service.

Issue: https://github.com/status-im/infra-role-bootstrap-linux/issues/24

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-09-21 17:40:07 +02:00
Zahary Karadjov 84ebd34117
Expose the --num-threads option 2021-09-20 13:21:43 +03:00
Jakub Sokołowski ff400bfbce
use different sudoers files for permissions setup
Otherwise only the last ran role works, and other branches fail:
```
pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
pam_unix(sudo:auth): conversation failed
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-09-07 15:45:59 +02:00
Jakub Sokołowski 5c3e0d9a62
send service logs to local6 facility to save space
Otherwise all service logs go into `/var/log/syslog` which becomes huge.

The `local6` syslog facility is the one handled by our default rsyslog
configuration and sends logs to `/var/log/service` directories as well
as to Logstash service for aggregation in the ELK stack.

Depends on:
https://github.com/status-im/infra-role-bootstrap-linux/commit/9ad8bb7d

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-09-02 12:08:53 +02:00
Jakub Sokołowski 43fb41a81c
add service restart to build script
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-09-01 22:21:53 +02:00
Zahary Karadjov 172e0000f1 Allow overriding --validators-dir and --secrets-dir; Disable the RPC service by default 2021-08-25 15:03:17 +02:00
Zahary Karadjov c327a454ce
Allow overriding the listening address of the RPC and metrics services; Use a safer default
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-23 16:44:33 +02:00
Zahary Karadjov 6500d4e3f4 Add an option for specifying a rest port 2021-08-23 16:43:59 +02:00
Jakub Sokołowski bbba401d46
nimbus_sudoers: fix wrong user set for su command
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-18 15:10:26 +02:00
Jakub Sokołowski d19a71843f
use infra-role-open-ports, open metrics for metrics.hq
https://github.com/status-im/infra-hq/issues/69

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-12 17:05:29 +02:00
Jakub Sokołowski d96c254880
update dist-validators use, drop group var
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-07-16 15:09:58 +02:00
Jakub Sokołowski 09d0176c12
create nimbus home, otherwise we can't use git_config
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-07-15 19:35:30 +02:00
Jakub Sokołowski 083a675b0f
allow staff group members to sudo as nimbus user
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-07-07 09:43:21 +02:00
Jakub Sokołowski 8d032c1efb
add user and group for dist-validators role
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-07-07 09:35:40 +02:00
Jakub Sokołowski 217bbbde10
use infra-role-dist-validators to deploy validators
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-30 20:14:44 +02:00
Jakub Sokołowski 376753c502
make network name check quiet
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-29 14:55:41 +02:00
Jakub Sokołowski 335a8b7fa4
drop outdated comment about updating repo
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-29 14:37:23 +02:00
Jakub Sokołowski 2ec1172756
fix name of consul service to fix metrics scraping
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-29 14:37:23 +02:00
Jakub Sokołowski 28cd9ccdd7
add more precise service description
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-28 21:01:42 +02:00
Jakub Sokołowski 3a6c0bdd21
don't run script via Ansible, run it via systemd timer
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-28 20:50:17 +02:00
Jakub Sokołowski 7c9c804851
use /etc/systemd instead of /lib/systemd
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-28 20:34:55 +02:00
Jakub Sokołowski 1e640b4742
add network name to the service name, for formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-28 09:57:56 +02:00
Arthur Koziel e69cebc8bd
initial commit
Signed-off-by: Arthur Koziel <arthur@arthurkoziel.com>
2021-06-22 17:34:37 +08:00