holisticode
658b6f080b
Merge branch 'master' into ansible-service
2020-07-13 14:05:55 -05:00
Determinant
7591e93e08
remove go-plugin logging; use coreth 0.2.5
2020-06-23 17:36:20 -04:00
Alex Willmer
f61d5f4628
ansible: Become a super user to install ava
2020-06-11 19:59:14 +01:00
Alex Willmer
a3aba825c0
ansible: Fetch git repo of https
2020-06-11 19:58:46 +01:00
Alex Willmer
6a5305f0a9
Merge branch 'master' into ansible-service
2020-06-08 12:24:11 +01:00
StephenButtolph
cfd5256220
merged
2020-06-07 18:15:49 -04:00
Determinant
01f6a779fb
finish the IP filter feature
2020-06-07 17:30:16 -04:00
Determinant
d7f931cfe4
bump coreth version
2020-06-07 17:03:07 -04:00
Alex Willmer
62206086ac
Merge branch 'master' of github.com:ava-labs/gecko into ansible-service
2020-06-05 23:27:56 +01:00
Determinant
70ab3160ce
make JSON-RPC local by default; add basic logging for C-Chain
2020-06-05 15:00:12 -04:00
StephenButtolph
0c42ca883c
bump coreth version
2020-05-30 14:36:16 -04:00
Dan Laine
e406d08aa4
add go mod support
2020-05-26 08:56:52 -04:00
StephenButtolph
47915da344
bumped timeout to 60s to support virtualized tests
2020-05-25 22:45:02 -04:00
StephenButtolph
858658a61f
Updated cascade IPs
2020-05-25 17:57:22 -04:00
StephenButtolph
ced58c7d2e
set gopath correctly in the build script
2020-05-25 14:00:23 -04:00
Alex Willmer
1b84ac3190
ansible: restrict RPC to localhost by default
2020-05-24 11:55:33 +01:00
Alex Willmer
756fdee142
ansible: Default to /usr/local and /var/local
...
Following discussion in https://github.com/ava-labs/gecko/pull/151 it
was decided that /usr (and by implication /var) should be reserved for
OS package managers (e.g. apt, yum).
2020-05-24 11:54:45 +01:00
Alex Willmer
4cd9569e21
ansible: Split installation of Go from other dependencies
...
This makes it easier to skip, if Go has been installed by other means.
2020-05-24 11:49:28 +01:00
Alex Willmer
e067a150f0
ansible: Add shebangs to playbooks
...
This allows them to be run as scripts. They take the same options and
arguments as ansible-playbook.
2020-05-24 11:48:12 +01:00
StephenButtolph
a016a290d3
removed salticidae env handling
2020-05-23 17:22:34 -04:00
StephenButtolph
34909f72f5
removed xputtests to get the build to pass
2020-05-18 14:57:31 -04:00
Stephen Buttolph
f737368d65
Merge branch 'master' into ansible-service
2020-05-12 22:42:33 -04:00
Stephen Buttolph
b818b3c11f
Merge branch 'master' into bash-strict
2020-05-12 21:37:19 -04:00
Alex Willmer
9a3f803bad
ansible: Speedup playbook execution by reusing ssh connections
...
This restores the default ssh_args for Ansible. When present Ansible
instructs ssh to keep a connection open for a short period after
exiting. Subsequent ssh processes can then skip TCP & SSH hand shake.
2020-05-12 23:16:46 +01:00
Alex Willmer
9b68599834
ansible: Speedup playbook execution with pipelining
2020-05-12 23:12:16 +01:00
Alex Willmer
f491dda625
ansible: Use builtin config to control host key checking
2020-05-12 23:11:09 +01:00
Alex Willmer
e7a06ff207
ansible: Don't continue playbook execution if a task fails
...
The Ansible equivalent of `set -o errexit` in bash
2020-05-12 23:10:07 +01:00
Alex Willmer
f3776cac9e
ansible: Remove duplicated default variables
2020-05-12 23:08:34 +01:00
Alex Willmer
a92630631a
ansible: Migrate staking key of AVA service to new location
...
Refs #145
2020-05-12 23:08:16 +01:00
Alex Willmer
74588da411
ansible: Conform to new staking key layout
...
Refs #145
2020-05-12 23:07:06 +01:00
Alex Willmer
777afed793
ansible: Remove repo_* variable overrides that match defaults
2020-05-12 23:04:11 +01:00
Alex Willmer
50b41b3468
ansible: Fix typos
2020-05-12 23:02:15 +01:00
Alex Willmer
f9e71f2e03
Merge branch 'master' into ansible-service
2020-05-12 21:21:43 +01:00
StephenButtolph
b96ff7099e
Fixed test-inventory key location
2020-05-11 23:21:08 -04:00
StephenButtolph
f820b48d96
Merge remote-tracking branch 'upstream/master' into go-signals
2020-05-11 21:58:25 -04:00
Alex Willmer
fdff7839b3
build: Fail loudly if bash variables are unset, or a pipeline errors
...
These bash options increase the robustness of bash scripts, increasing
the chances that errors are spotted, instead of passing silently.
errexit was already enabled (by bash -e) if the scripts were invoked as
path/to/script.sh
However bash -e would not take effect if the script was invoked as
bash path/to/script.sh
The long form of the options is used to serve as an memory aide for
readers unfamiliar with bash options.
2020-05-11 20:48:02 +01:00
Alex Willmer
9e318bb3d5
Merge branch 'master' of github.com:ava-labs/gecko into ansible-service
2020-05-11 20:21:24 +01:00
Alex Willmer
99ca4a50af
ansible: Add service_playbook.yml & supporting roles
...
This playbook
- Installs Gecko dependencies
- Clones & builds ava-build/gecko
- Creates an ava user
- Installs Gecko in /usr/bin
- Creates and installs a staking certificate
- Installs Gecko as a Systemd service called "ava"
- Configures /var/lib/ava/db as the database
- Configures /var/log/ava as the log destination
- Starts the service
2020-05-09 23:01:23 +01:00
Alex Willmer
bba45ed183
ansible: Add git defaults to ansible-build role
2020-05-09 22:52:04 +01:00
Stephen Buttolph
4bb2325c51
Merge branch 'master' into vms-avm-shutdown-locking
2020-05-08 13:37:25 -04:00
StephenButtolph
c43d9f5b2f
Cahgned kill_playbook to send proper signal
2020-05-07 12:04:04 -04:00
Stephen Buttolph
582236bd22
Merge branch 'master' into ansible-roles
2020-04-30 17:34:50 -04:00
Alex Willmer
383b363540
ansible: Factor out ava-start role
...
Also took the opportunity to
- break the ava command over multiple lines, for cleaner diffs
- quote the command line parameters, to handle potential whitespace
Due to how YAML collapses whitespace, the rendered command will not
contain any newline characters.
2020-04-30 22:14:39 +01:00
Alex Willmer
595fada412
ansible: Factor out ava-reset role
2020-04-30 22:14:00 +01:00
Alex Willmer
33f0201e23
ansible: Factor out ava-build role
2020-04-30 22:14:00 +01:00
Alex Willmer
4b7e0989d1
ansible: Factor out ava-stop role
2020-04-30 22:14:00 +01:00
Alex Willmer
6cfff89c1e
ansible: Use native ping module
2020-04-30 21:58:25 +01:00
Alex Willmer
f5d3142bea
build: Add ansible-lint exceptions for pre-existing lint
2020-04-30 21:54:09 +01:00
Stephen Buttolph
34af9fb7f7
Merge branch 'master' into platformvm-proposal-accept
2020-04-28 19:35:13 -04:00
Alex Willmer
db56cccd4c
Merge branch 'master' into vms-avm-shutdown-locking
2020-04-28 22:16:25 +01:00