Browse Source

rename a param

pull/50/head
Nicolas Massé 7 years ago
parent
commit
68cee3ecf1
  1. 2
      support/awx/README.md
  2. 10
      support/docker/deploy-api.yaml
  3. 2
      support/docker/openshift-template.yaml

2
support/awx/README.md

@ -28,7 +28,7 @@ You can now provision an API from your favourite CI/CD tool. For example, from J
def towerExtraVars = [
git_repository: "https://github.com/nmasse-itix/rhte-api.git",
git_ref: "master",
threescale_cicd_openapi_file: "openapi-spec.yaml",
openapi_file: "openapi-spec.yaml",
threescale_cicd_api_base_system_name: "event_api",
threescale_cicd_private_base_url: "https://echo-api.3scale.net",
threescale_cicd_api_environment_name: "prod",

10
support/docker/deploy-api.yaml

@ -66,13 +66,16 @@
git_repository: '{{ build.spec.source.git.uri if ''spec'' in build and ''uri'' in build.spec.source.git else '''' }}'
git_context_dir: '{{ build.spec.source.git.contextDir if ''spec'' in build and ''contextDir'' in build.spec.source.git else '''' }}'
git_ref: '{{ build.spec.source.git.ref if ''spec'' in build and ''ref'' in build.spec.source.git else ''master'' }}'
openapi_file: openapi-spec.yaml
ansible_connection: local
threescale_cicd_openapi_file: '{{ playbook_dir ~ "/api/" ~ git_context_dir ~ "/" ~ openapi_file if git_repository|length > 0 else playbook_dir ~ "/api/" ~ openapi_file }}'
parameter_whitelist:
- git_repository
- git_ref
- git_context_dir
- threescale_cicd_openapi_file
- openapi_file # relative path to the OpenAPI file
- threescale_cicd_openapi_file # absolute path to the OpenAPI file
- threescale_cicd_openapi_file_format
- threescale_cicd_api_system_name
- threescale_cicd_api_base_system_name
@ -108,11 +111,6 @@
with_items: '{{ parameter_whitelist }}'
when: 'lookup(''env'', item|upper)|length > 0'
- name: Add the contextDir to the OpenAPI file path
set_fact:
threescale_cicd_openapi_file: '{{ playbook_dir }}/api/{{ git_context_dir }}/{{ threescale_cicd_openapi_file }}'
when: 'git_repository|length > 0'
- name: Check if /tmp/secrets/sso_issuer_endpoint exists
stat:
path: /tmp/secrets/sso_issuer_endpoint

2
support/docker/openshift-template.yaml

@ -126,7 +126,7 @@ objects:
env:
- name: THREESCALE_CICD_OPENAPI_FILE_FORMAT
value: ${API_OPENAPI_FILE_FORMAT}
- name: THREESCALE_CICD_OPENAPI_FILE
- name: OPENAPI_FILE
value: ${API_OPENAPI_FILE}
- name: THREESCALE_CICD_API_BASE_SYSTEM_NAME
value: ${API_NAME}

Loading…
Cancel
Save