-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #1821: Added seed node update scripts
* Added seed node update scripts * Updated PENDING * Fixed issue with GENESISFILE and added GENESISURL to seed node scripts * Fixed unsafe reset bug * As requested, multiline ansible-playbook command * Added monitoring gaiacli.service to logz.io template * Added journald configuration ansible script
- Loading branch information
1 parent
840d915
commit 179b8f9
Showing
14 changed files
with
140 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
|
||
- hosts: all | ||
any_errors_fatal: true | ||
gather_facts: no | ||
roles: | ||
- add-lcd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
|
||
GAIAD_ADDRESS: tcp://0.0.0.0:1317 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
- name: systemctl | ||
systemd: name=gaiacli enabled=yes daemon_reload=yes | ||
|
||
- name: restart gaiacli | ||
service: name=gaiacli state=restarted | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
|
||
- name: Copy binary | ||
copy: | ||
src: "{{GAIACLI_BINARY}}" | ||
dest: /usr/bin | ||
mode: 0755 | ||
notify: restart gaiacli | ||
|
||
- name: Copy service | ||
template: | ||
src: gaiacli.service.j2 | ||
dest: /etc/systemd/system/gaiacli.service | ||
notify: systemctl | ||
|
17 changes: 17 additions & 0 deletions
17
networks/remote/ansible/roles/add-lcd/templates/gaiacli.service.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=gaiacli | ||
Requires=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
Restart=on-failure | ||
User=gaiad | ||
Group=gaiad | ||
PermissionsStartOnly=true | ||
ExecStart=/usr/bin/gaiacli advanced rest-server --laddr {{GAIAD_ADDRESS}} | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
KillSignal=SIGTERM | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
networks/remote/ansible/roles/setup-journald/handlers/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
|
||
- name: restart journald | ||
service: name=systemd-journald state=restarted | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
networks/remote/ansible/roles/setup-journald/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
|
||
- name: Disable journald rate-limiting | ||
lineinfile: "dest=/etc/systemd/journald.conf regexp={{item.regexp}} line='{{item.line}}'" | ||
with_items: | ||
- { regexp: "^#RateLimitInterval", line: "RateLimitInterval=0s" } | ||
- { regexp: "^#RateLimitBurst", line: "RateLimitBurst=0" } | ||
notify: restart journald | ||
|
||
- name: Create journal directory for permanent logs | ||
file: path=/var/log/journal state=directory | ||
notify: restart journald | ||
|
||
- name: Set journal folder with systemd-tmpfiles | ||
command: "systemd-tmpfiles --create --prefix /var/log/journal" | ||
notify: restart journald | ||
|
||
#- name: Ability to get the core dump on SIGABRT | ||
# shell: "ulimit -c unlimited" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
|
||
- hosts: all | ||
any_errors_fatal: true | ||
gather_facts: no | ||
roles: | ||
- setup-journald | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
- hosts: all | ||
any_errors_fatal: true | ||
gather_facts: no | ||
roles: | ||
- upgrade-gaiad | ||
- add-lcd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters