Skip to content

Commit

Permalink
fix: replace deploy playbook with role (#627)
Browse files Browse the repository at this point in the history
fix: replace deploy playbook with role

TODO:

 ansible-lint warnings for role

will be handled in a follow up


 check if it's possible to move the roles/ out to the top-level to reduce the nesting
 run tests on TF to make sure the changes are compatible

Supersedes #626

Reviewed-by: Maja Massarini
Reviewed-by: Laura Barcziová
  • Loading branch information
2 parents 95a7c1b + d911c47 commit 1896da5
Show file tree
Hide file tree
Showing 29 changed files with 77 additions and 464 deletions.
1 change: 1 addition & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
roles/deploy/defaults/main.yml var-naming[no-role-prefix]
2 changes: 2 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
roles_path = roles/
16 changes: 8 additions & 8 deletions plans/deployment.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ discover:
prepare:
- how: ansible
playbook: playbooks/oc-cluster-user.yml
extra-args: "-vvv --extra-vars user=tmt"
extra-args: "-vv --extra-vars user=tmt"
- how: ansible
playbook: playbooks/oc-cluster-setup.yml
extra-args: "-vvv --extra-vars user=tmt"
extra-args: "-vv --extra-vars user=tmt"
- how: ansible
playbook: playbooks/oc-cluster-run.yml
extra-args: "-vvv --extra-vars user=tmt"
extra-args: "-vv --extra-vars user=tmt"
- how: ansible
playbook: playbooks/oc-cluster-tests-setup.yml
extra-args: "-vvv"
extra-args: "-vv"

/local:
summary: Run packit-service deployment test on a local machine managed by tmt
Expand All @@ -54,16 +54,16 @@ discover:
prepare:
- how: ansible
playbook: playbooks/oc-cluster-user.yml
extra-args: "-vvv --extra-vars user=tmt"
extra-args: "-vv --extra-vars user=tmt"
- how: ansible
playbook: playbooks/oc-cluster-setup.yml
extra-args: "-vvv --extra-vars user=tmt"
extra-args: "-vv --extra-vars user=tmt"
- how: ansible
playbook: playbooks/oc-cluster-run.yml
extra-args: "-vvv --extra-vars @./secrets/openshift-local-pull-secret.yml --extra-vars user=tmt"
extra-args: "-vv --extra-vars @./secrets/openshift-local-pull-secret.yml --extra-vars user=tmt"
- how: ansible
playbook: playbooks/oc-cluster-tests-setup.yml
extra-args: "-vvv"
extra-args: "-vv"

/vagrant:
summary: Run packit-service deployment test on a vagrant machine already up and running
Expand Down
Loading

0 comments on commit 1896da5

Please sign in to comment.