From 393726febd844aecd8c517a5cb524ac4f5f0c0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 28 Feb 2019 23:09:32 +0100 Subject: [PATCH] backport awx support in this repository --- support/awx/ansible.cfg | 1 + support/awx/deploy-api.yml | 23 +++++++++++++++++++ support/awx/roles/nmasse-itix.threescale-cicd | 1 + 3 files changed, 25 insertions(+) create mode 120000 support/awx/ansible.cfg create mode 100644 support/awx/deploy-api.yml create mode 120000 support/awx/roles/nmasse-itix.threescale-cicd 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