My Ansible Playbook to install an OpenShift Lab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.1 KiB

---
threescale_template: https://raw.githubusercontent.com/3scale/3scale-amp-openshift-templates/2.0.0.GA/amp/amp.yml
threescale_template_format: YAML
threescale_project: 3scale
threescale_tenant_name: 3scale
threescale_wildcard_domain: "{{ openshift_master_default_subdomain }}"
threescale_delay: 5
threescale_retries: 30
threescale_apicast_cors_lua: https://raw.githubusercontent.com/3scale/apicast/master/examples/cors/apicast_cors.lua
threescale_apicast_cors_conf: https://raw.githubusercontent.com/3scale/apicast/master/examples/cors/cors.conf
threescale_webhooks_secret: supersecret
threescale_expected_deployment_configs:
- apicast-staging
- apicast-production
- backend-redis
- system-memcache
- system-mysql
- system-redis
- backend-listener
- backend-worker
- system-app
- system-resque
- system-sidekiq
- backend-cron
- system-sphinx
threescale_apis_to_create:
- service:
name: "Hello API"
system_name: hello-api
backend_version: 1 # 1 means "API Key"
proxy:
credentials_location: headers
api_test_path: /rest/Hello%20API%20Mock/0.8/v1/hello?David
backend: microcks
application_plans:
- name: Default
system_name: default
default: true
state: published
applications:
- name: Hello App
description: "This is my very first application"
- service:
name: "Hello API OAuth"
system_name: hello-api-oauth
backend_version: oauth
proxy:
credentials_location: headers
api_test_path: /rest/Hello%20API%20Mock/0.8/v1/hello?Gavin
backend: microcks
application_plans:
- name: Default
system_name: default
default: true
state: published
applications:
- name: Hello App with OAuth
description: "This is my very first application using OAuth"
redirect_url: https://www.getpostman.com/oauth2/callback
application_id: "my-app"
application_key: "{{ 'my-app'|sha1() }}"