chain-spec-pioneer.yml 931 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. # Configure chain spec, start joystream-node service on the servers and build Pioneer
  3. - name: Create and copy the chain-spec file
  4. hosts: all
  5. tasks:
  6. - name: Generate chain-spec file and data keys either on localhost or admin server
  7. include_role:
  8. name: common
  9. tasks_from: chain-spec-node-keys
  10. vars:
  11. local_or_admin: "{{ groups['build'][0] if run_on_admin_server|bool else 'localhost' }}"
  12. admin_code_dir: "{{ remote_code_path if run_on_admin_server|bool else local_dir }}"
  13. - name: Copy secret, auth and start joystream-node service for validators
  14. hosts: validators
  15. gather_facts: no
  16. roles:
  17. - validators
  18. - name: Configure RPC service and start it
  19. hosts: rpc
  20. gather_facts: no
  21. roles:
  22. - rpc
  23. - name: Build Pioneer and copy artifacts to S3
  24. hosts: build
  25. gather_facts: no
  26. tasks:
  27. - include_role:
  28. name: admin
  29. tasks_from: deploy-pioneer