Commit Graph

92 Commits

Author SHA1 Message Date
Aleskey Zalesov 196f6109a4 Move variables to the moc role 2018-03-16 16:07:46 +03:00
Aleskey Zalesov 3bb51d12c9 Move default vars to the explorer role 2018-03-16 16:07:28 +03:00
Aleskey Zalesov 9a16a22cd6 Move bootnode_orchestrator and bootnode_archive variables to the bootnode role 2018-03-16 15:59:56 +03:00
Aleskey Zalesov 1a0b29baf1 Move access control variables to the role level 2018-03-16 15:58:38 +03:00
Aleskey Zalesov a35e120bca Move variables from playbook to bootnode role 2018-03-16 15:57:55 +03:00
Aleskey Zalesov 13f2407d18 Refactor API version to the role variable 2018-03-05 16:56:10 +03:00
Aleskey Zalesov fa40343af6 Refactor netstat version to the role variable 2018-03-05 16:54:48 +03:00
Aleskey Zalesov df7e9d0db1 Refactor explorer version to the role variable 2018-03-05 16:53:07 +03:00
Aleskey Zalesov 17016d6549 Fix include deprecation warning
Use import_tasks instead. Limited to the ec2 security access tasks.
2018-03-02 14:56:25 +03:00
Aleskey Zalesov 510b81fa9c Skip system upgrade
Cloud images already provide OS with latest security upgrades installed.

Closes poanetwork/deployment-terraform#19
2018-03-02 14:38:57 +03:00
Aleskey Zalesov 8c0f0f7218 Delete training whitespaces
[ANSIBLE0002] Trailing whitespace
2018-03-02 14:17:40 +03:00
Aleskey Zalesov 77711a029c Fix typo with CSR path 2018-03-02 14:02:53 +03:00
Aleskey Zalesov 20651723a2 Install SSL packages 2018-03-02 14:02:39 +03:00
Aleksey Zalesov bbdfb8c6da Fix linter errors on netstat role 2018-03-02 11:03:04 +03:00
Aleksey Zalesov e0d90df027 Name the unnamed tasks in Ansible playbooks
Ansible-linter requires all the tasks in the playbook to be named.

Reference to the linter rule:

[ANSIBLE0011] All tasks should be named
2018-03-02 11:03:04 +03:00
Aleksey Zalesov 7466f49daf Fix version of the git cloned code
Specify exact commit, tag or version branch when cloning the git repo to make
deployments repeatable. The commit sets explicit commit hash for the git
checkout.

Ansible-lint rule:

[ANSIBLE0004] Git checkouts must contain explicit version
2018-03-02 11:03:04 +03:00
Aleksey Zalesov 070846586c Make package installs repeatable
Package installs should use the state `present` so running the playbook for the
second time would not change the package version. To achive repeatability
between several deployments playbook should specify the particular version of
the package (not implemented).

Ansible-lint rule reference:

[ANSIBLE0010] Package installs should not use latest
2018-03-02 11:03:04 +03:00
Aleksey Zalesov c5a15c5745 Configure task to install npm modules
There is a specific module for installing npm modules that should be used
instead of the shell module.
2018-03-02 11:03:04 +03:00
Aleksey Zalesov fa9ac3c00b Use copy module instead of shell command 2018-03-02 11:03:04 +03:00
Aleksey Zalesov 68761db1a8 Mute warning on swap tasks
Ansible lint throughs warnings about swap tasks using the shell module. Based on
my experience the way these tasks are implemented is the optimal one. So I
decided to mute the warning and keep using shell module.
2018-03-02 11:03:04 +03:00
Aleksey Zalesov 28e3521fcb Add tasks to generate SSL certificates
Ansible provides specific modules for SSL certificates generation. Better use
them instead of the shell command for the idempotence and ease of maintanence.
2018-03-02 11:03:04 +03:00
Aleksey Zalesov c3222852ab Fix deprecation warning about include statement
Use `import_tasks` instead of `include`.
2018-03-02 11:02:58 +03:00
Vitaly Znachenok ab14bcbe7f Merge branch 'master' of https://github.com/poanetwork/deployment-playbooks 2018-02-21 23:18:11 +03:00
Vitaly Znachenok 38b52367ff update security group model. 2018-02-21 23:18:08 +03:00
phahulin a3654f786c Master: Update bootnode options to parity 1.9.2 2018-02-21 17:54:04 +03:00
phahulin a0eb5c0613 Switch to sha256 check for binaries instead of md5 2018-02-09 16:14:46 +03:00
phahulin a9df9b8f88 Validate md5 checksums of parity bin and orchestrator bin 2018-02-08 14:16:26 +03:00
phahulin 27bd1589c5 Add option to install orchestrator on bootnodes 2018-02-07 19:38:33 +03:00
phahulin e7e87322e7 Make order for parameters same for moc and validator 2018-02-05 21:34:57 +03:00
phahulin 0860a4c4ec Set min_gas_price = 1 gwei for moc and validator nodes 2018-02-05 21:33:04 +03:00
phahulin 1a086ee8a9 Add tracing for archiving nodes 2018-01-27 21:07:45 +03:00
phahulin 2480d7291b Change order of blocks in node.toml of a bootnode to make it the same as other node types 2018-01-12 17:23:00 +03:00
phahulin 0409d84a52 Archive-mode for validator, moc, bootnode 2018-01-12 17:17:52 +03:00
phahulin 68e8457a74 Move node.toml files to the playbook as templates 2018-01-11 16:05:41 +03:00
phahulin 948f7ffbd5 Add usd_per_tx option, set to 0 2018-01-05 22:05:26 +03:00
Vitaly Znachenok 675e546e27 fix nginx header issue 2017-12-27 23:05:18 +03:00
Vitaly Znachenok cf9f4bfbd1 Rewrite access model to universal, now it work for aws and standalone servers 2017-12-20 15:39:37 +03:00
Vitaly Znachenok 0e6a9cfad5 Add update system after install. 2017-12-20 15:35:05 +03:00
Vitaly Znachenok f5b647c8de POC - firewall config depends from env. 2017-12-20 01:47:37 +03:00
Vitaly Znachenok 046dd7ddfa Skip ssl cert generate if already exist 2017-12-19 23:32:21 +03:00
phahulin 3938de2f42 Replace bootnodes.txt location 2017-12-18 15:21:31 +03:00
phahulin 936d67f389
Comment out adding Access-Control-Allow- headers 2017-12-14 23:51:04 +03:00
phahulin 5a8b34dad2 Replace scripts-owner repo with scripts-moc repo 2017-12-14 14:54:05 +03:00
phahulin 2f0b375fa1 Massive renaming 2017-12-14 11:39:42 +03:00
phahulin fcd140c4d2 Minor refactoring 2017-12-12 23:25:14 +03:00
Vitaly Znachenok 93c211f49e change explorer port. 2017-12-11 23:43:42 +03:00
Vitaly Znachenok 014f45a8ce add access management for validator role, change libstdc++ to stable, add nload to presetup. 2017-12-11 23:06:12 +03:00
Vitaly Znachenok 17d79302c0 Change name from owner.yml to moc.yml, remove ntp role 2017-12-11 16:34:06 +03:00
Vitaly Znachenok 5e1c7f3de6 (Fix) Rename mining and owner roles 2017-12-11 12:52:15 +03:00
phahulin 5f70bbb091 Change node.toml path to match the role name 2017-12-08 17:51:29 +03:00