Add an option to run a playbook (in the fake bridge context) after running the base playbook. Use this to run a new playbook which exercises gitea project creation after bootstrapping the gitea service. Disable ansible-lint 304 because it erroneously thinks shell and command are the same thing. Change-Id: I0394b614771bc62b9fe23d811defd7767b3d10dbchanges/58/641158/7
parent
853b7c2d66
commit
9ff29b108d
@ -0,0 +1,30 @@
|
||||
- hosts: "localhost"
|
||||
name: "Setup test project data"
|
||||
vars:
|
||||
projects:
|
||||
- project: opendev/base-jobs
|
||||
description: Zuul configuration common to all OpenDev tenants
|
||||
tasks:
|
||||
- name: Create test project-config directory
|
||||
file:
|
||||
path: "/opt/project-config/gerrit/"
|
||||
state: directory
|
||||
- name: Write test project configuration
|
||||
copy:
|
||||
dest: "/opt/project-config/gerrit/projects.yaml"
|
||||
content: "{{ projects }}"
|
||||
|
||||
- hosts: "gitea"
|
||||
name: "Create repos on gitea servers"
|
||||
strategy: free
|
||||
max_fail_percentage: 1
|
||||
roles:
|
||||
- role: gitea-git-repos
|
||||
|
||||
- hosts: "gitea"
|
||||
tasks:
|
||||
- name: Test project was created in gitea
|
||||
uri:
|
||||
url: "https://localhost:3000/opendev/base-jobs"
|
||||
validate_certs: false
|
||||
status_code: 200
|
Loading…
Reference in new issue