5 changed files with 65 additions and 4 deletions
@ -0,0 +1,14 @@ |
|||||
|
--- |
||||
|
|
||||
|
- name: Deploy the Echo API to a 3scale SaaS instance, with hosted APIcasts and OpenID Connect |
||||
|
hosts: threescale |
||||
|
gather_facts: no |
||||
|
vars: |
||||
|
threescale_cicd_openapi_file: '{{ playbook_dir }}/api/echo-api-oidc.yaml' |
||||
|
roles: |
||||
|
# Test first deployment |
||||
|
- { role: 'nmasse-itix.threescale-cicd', vars: { 'round': 1 } } |
||||
|
# Verify idempotence |
||||
|
- { role: 'nmasse-itix.threescale-cicd', vars: { 'round': 2 } } |
||||
|
post_tasks: |
||||
|
- import_tasks: 'cleanup.yaml' |
||||
@ -0,0 +1,37 @@ |
|||||
|
swagger: '2.0' |
||||
|
info: |
||||
|
x-threescale-system-name: 'echo-api-oidc' |
||||
|
title: 'Echo API' |
||||
|
description: 'A very simple API.' |
||||
|
contact: |
||||
|
name: 'Nicolas MASSE' |
||||
|
url: 'http://github.com/nmasse-itix' |
||||
|
email: nmasse@redhat.com |
||||
|
license: |
||||
|
name: 'MIT License' |
||||
|
url: 'https://opensource.org/licenses/MIT' |
||||
|
version: '1.0' |
||||
|
host: 'echo-api.3scale.net' |
||||
|
schemes: |
||||
|
- http |
||||
|
paths: |
||||
|
/: |
||||
|
get: |
||||
|
operationId: Echo |
||||
|
tags: |
||||
|
- echo |
||||
|
summary: 'Get an echo' |
||||
|
description: 'Get an echo from the server' |
||||
|
x-threescale-smoketests-operation: true |
||||
|
responses: |
||||
|
200: |
||||
|
description: 'An Echo from the server' |
||||
|
security: |
||||
|
- oidc: |
||||
|
- openid |
||||
|
securityDefinitions: |
||||
|
oidc: |
||||
|
type: oauth2 |
||||
|
flow: accessCode |
||||
|
scopes: |
||||
|
openid: Get an OpenID Connect token |
||||
Loading…
Reference in new issue