diff --git a/support/awx/ansible.cfg b/support/awx/ansible.cfg new file mode 120000 index 0000000..5495ae5 --- /dev/null +++ b/support/awx/ansible.cfg @@ -0,0 +1 @@ +../../ansible.cfg \ No newline at end of file diff --git a/support/awx/deploy-api.yml b/support/awx/deploy-api.yml new file mode 100644 index 0000000..4531f2b --- /dev/null +++ b/support/awx/deploy-api.yml @@ -0,0 +1,23 @@ +--- + +- name: Deploy an API to a 3scale SaaS instance, with self-managed APIcasts + hosts: threescale + gather_facts: no + pre_tasks: + + - assert: + that: + - "git_repo is defined" + + - name: Clone the git repo containing the API Definition + git: + repo: '{{ git_repo }}' + dest: '{{ playbook_dir }}/api' + version: '{{ git_branch|default(''master'') }}' + delegate_to: localhost + + - set_fact: + threescale_cicd_openapi_file: '{{ playbook_dir }}/api/{{ openapi_file|default(''openapi-spec.yaml'') }}' + + roles: + - nmasse-itix.threescale-cicd diff --git a/support/awx/roles/nmasse-itix.threescale-cicd b/support/awx/roles/nmasse-itix.threescale-cicd new file mode 120000 index 0000000..1b20c9f --- /dev/null +++ b/support/awx/roles/nmasse-itix.threescale-cicd @@ -0,0 +1 @@ +../../../ \ No newline at end of file