hw4: finalize selenoid and ansible workflow with citrus tests
This commit is contained in:
20
ansible/playbooks/provision.yml
Normal file
20
ansible/playbooks/provision.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Provision Selenoid Nodes
|
||||
hosts: selenoid_nodes
|
||||
become: true
|
||||
tags:
|
||||
- provision
|
||||
roles:
|
||||
- common
|
||||
- docker
|
||||
- selenoid
|
||||
|
||||
- name: Provision GGR Gateway
|
||||
hosts: ggr_gateway
|
||||
become: true
|
||||
tags:
|
||||
- provision
|
||||
roles:
|
||||
- common
|
||||
- docker
|
||||
- ggr_gateway
|
||||
4
ansible/playbooks/site.yml
Normal file
4
ansible/playbooks/site.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
- import_playbook: provision.yml
|
||||
- import_playbook: verify.yml
|
||||
- import_playbook: tests.yml
|
||||
11
ansible/playbooks/tests.yml
Normal file
11
ansible/playbooks/tests.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Run tests on provisioned host
|
||||
hosts: ggr_gateway
|
||||
become: true
|
||||
tags:
|
||||
- tests
|
||||
tasks:
|
||||
- name: Execute test runner role when enabled
|
||||
ansible.builtin.include_role:
|
||||
name: test_runner
|
||||
when: run_tests_via_ansible | bool
|
||||
8
ansible/playbooks/verify.yml
Normal file
8
ansible/playbooks/verify.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Verify deployed grid endpoints
|
||||
hosts: ggr_gateway
|
||||
become: true
|
||||
tags:
|
||||
- verify
|
||||
roles:
|
||||
- verify
|
||||
Reference in New Issue
Block a user