-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnginx_controller_gateway.yaml
39 lines (36 loc) · 1.49 KB
/
nginx_controller_gateway.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ansible-playbook nginx_controller_gateway.yaml -e "[email protected] nginx_controller_user_password=notsecure nginx_controller_fqdn=controller.example.local"
# ansible-playbook nginx_controller_gateway.yaml -e "@nginx_controller_gateway_vars.yaml"
- hosts: localhost
gather_facts: no
collections:
- nginxinc.nginx_controller
tasks:
- include_role:
name: nginx_controller_generate_token
- name: configure the gateway
include_role:
name: nginx_controller_gateway
vars:
nginx_controller_fqdn: "controller.example.local"
nginx_controller_environmentName: "production-us-west"
nginx_controller_gateway:
metadata:
name: lending
displayName: "Shared Public Lending BU Gateway"
description: "Routes all non special Lending applications"
desiredState:
ingress:
uris:
"http://mortgage.acmefinancial.net": {}
"https://mortgage.acmefinancial.net": {}
"http://ratecalculator.acmefinancial.net": {}
"https://ratecalculator.acmefinancial.net": {}
tls:
certRef:
ref: "/services/environments/production-us-west/certs/star.acmefinancial.net"
protocols:
- "TLSv1.3"
- "TLSv1.2"
placement:
instanceRefs:
- ref: "/infrastructure/locations/unspecified/instances/2"