forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ava-labs#1 from StephenButtolph/update-ipcs
Resolve merge conflicts
- Loading branch information
Showing
32 changed files
with
324 additions
and
42 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
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
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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
[defaults] | ||
any_errors_fatal = true | ||
transport = ssh | ||
deprecation_warnings = false | ||
host_key_checking = false | ||
|
||
[ssh_connection] | ||
ssh_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null | ||
# Optimisation, speeds up playbook execution by reducing network round trips. | ||
# However, remote systems must not have requiretty set in /etc/sudoers. | ||
pipelining = true | ||
ssh_args = | ||
-C | ||
-o ControlMaster=auto | ||
-o ControlPersist=60s | ||
-o ForwardAgent=yes | ||
-o UserKnownHostsFile=/dev/null |
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,3 @@ | ||
ava_nodes: | ||
hosts: | ||
localhost: |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
#!/usr/bin/env ansible-playbook | ||
--- | ||
- name: Update the network | ||
connection: ssh | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
#!/usr/bin/env ansible-playbook | ||
--- | ||
- name: Update the network | ||
connection: ssh | ||
|
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,15 @@ | ||
- name: Install AVA dependencies | ||
become: true | ||
apt: | ||
name: | ||
# Build | ||
- cmake | ||
- curl | ||
- g++ | ||
- libssl-dev | ||
- libuv1-dev | ||
- make | ||
# Staking key management | ||
- openssl | ||
- python3-cryptography | ||
state: present |
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,5 @@ | ||
ava_binary: ~/go/src/github.com/ava-labs/gecko/build/ava | ||
repo_folder: ~/go/src/github.com/ava-labs/gecko | ||
repo_name: ava-labs/gecko | ||
repo_url: https://github.com/{{ repo_name }} | ||
repo_branch: master |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
- name: Update git clone | ||
git: | ||
repo: ssh://[email protected]/{{ repo_name }}.git | ||
repo: "{{ repo_url }}" | ||
dest: "{{ repo_folder }}" | ||
version: "{{ repo_branch }}" | ||
update: yes | ||
|
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,22 @@ | ||
# These names, & default values are based on Meson build builtin options; | ||
# which in turn follow established *nix conventions. | ||
# See | ||
# https://mesonbuild.com/Builtin-options.html | ||
# https://www.gnu.org/prep/standards/html_node/Directory-Variables.html | ||
prefix: "/usr/local" | ||
bindir: "{{ prefix }}/bin" | ||
libdir: "{{ prefix }}/lib" | ||
localstatedir: "{{ prefix | replace('/usr', '/var') }}" | ||
sharedstatedir: "{{ localstatedir }}/lib" | ||
# Has no Meson builtin equivalent | ||
logdir: "{{ localstatedir }}/log" | ||
|
||
# These names are specific to AVA. Default values are based loosely on *nix | ||
# conventions. | ||
ava_daemon_home_dir: "{{ sharedstatedir }}/ava" | ||
ava_daemon_db_dir: "{{ ava_daemon_home_dir }}/db" | ||
ava_daemon_log_dir: "{{ logdir }}/ava" | ||
ava_daemon_plugin_dir: "{{ libdir }}/ava/plugins" | ||
ava_daemon_staking_dir: "{{ ava_daemon_home_dir }}/staking" | ||
ava_daemon_staking_tls_cert: "{{ ava_daemon_staking_dir }}/staker.crt" | ||
ava_daemon_staking_tls_key: "{{ ava_daemon_staking_dir }}/staker.key" |
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,64 @@ | ||
- name: Create shared directories | ||
become: true | ||
file: | ||
# Don't specify owner, mode etc for directories not specific to AVA. | ||
# OS defaults, or local defaults are better than any guess we could make. | ||
path: "{{ item.path }}" | ||
state: directory | ||
loop: | ||
- path: "{{ sharedstatedir }}" | ||
- path: "{{ logdir }}" | ||
|
||
- name: Create AVA directories | ||
become: true | ||
file: | ||
path: "{{ item.path }}" | ||
owner: "{{ item.owner | default(ava_daemon_user) }}" | ||
group: "{{ item.group | default(ava_daemon_group) }}" | ||
mode: "{{ item.mode }}" | ||
recurse: "{{ item.recurse | default(omit) }}" | ||
state: directory | ||
loop: | ||
- path: "{{ ava_daemon_home_dir }}" | ||
mode: u=rwX,go=rX | ||
- path: "{{ ava_daemon_db_dir }}" | ||
mode: u=rwX,go=rX | ||
- path: "{{ ava_daemon_staking_dir }}" | ||
mode: u=rX,go= | ||
- path: "{{ ava_daemon_log_dir }}" | ||
mode: u=rwX,go=rX | ||
- path: "{{ ava_daemon_plugin_dir }}" | ||
owner: root | ||
group: root | ||
mode: u=rwX,go=rX | ||
recurse: true | ||
loop_control: | ||
label: "{{ item.path }}" | ||
notify: | ||
- Restart AVA service | ||
|
||
- name: Install AVA binary | ||
become: true | ||
copy: | ||
src: "{{ ava_binary }}" | ||
dest: "{{ bindir }}/ava" | ||
remote_src: true | ||
owner: root | ||
group: root | ||
mode: u=rwx,go=rx | ||
notify: | ||
- Restart AVA service | ||
|
||
- name: Install AVA plugins | ||
become: true | ||
copy: | ||
src: "{{ item.path }}" | ||
dest: "{{ ava_daemon_plugin_dir }}" | ||
owner: root | ||
group: root | ||
mode: u=rwx,go=rx | ||
remote_src: true | ||
loop: | ||
- path: "{{ repo_folder }}/build/plugins/evm" | ||
notify: | ||
- Restart AVA service |
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,2 @@ | ||
ava_daemon_http_host: localhost | ||
log_level: info |
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,10 @@ | ||
- name: Reload systemd | ||
become: true | ||
systemd: | ||
daemon_reload: true | ||
|
||
- name: Restart AVA service | ||
become: true | ||
service: | ||
name: ava | ||
state: restarted |
Oops, something went wrong.