Commit Graph

43 Commits

Author SHA1 Message Date
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
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 858658a61f Updated cascade IPs 2020-05-25 17:57:22 -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
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
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
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
StephenButtolph e25e0356ba Added multiple inventories + bumped patch version 2020-04-28 16:09:47 -04:00
StephenButtolph 436972b928 Added kill script 2020-04-22 19:52:37 -04:00
StephenButtolph a3e3e5f21e changed ansible back to the testnet 2020-04-21 13:55:01 -04:00
StephenButtolph 14f178612e added plugin dir flag 2020-04-21 01:57:10 -04:00
StephenButtolph 6bcedf1d64 wip 2020-04-20 20:00:36 -04:00
StephenButtolph 4050be294b Updated ansible bootstraps + default params 2020-04-03 13:40:08 -04:00
StephenButtolph c814d42611 Finished adding snowball tests 2020-04-01 02:19:43 -04:00
StephenButtolph 69acc2bfff updated ansible args 2020-03-31 22:42:14 -04:00
StephenButtolph 4072408b73 Changed branch to cascade 2020-03-31 19:25:25 -04:00
StephenButtolph 2ab3886eb7 updated ansible 2020-03-31 19:22:00 -04:00
StephenButtolph b9e34e3b15 init repo 2020-03-10 15:20:34 -04:00