153 lines
3.8 KiB
YAML
153 lines
3.8 KiB
YAML
---
|
|
# This file defines site-specific deviations for MaaS.
|
|
schema: armada/Chart/v1
|
|
metadata:
|
|
schema: metadata/Document/v1
|
|
name: ucp-maas
|
|
labels:
|
|
name: ucp-maas-type
|
|
layeringDefinition:
|
|
abstract: false
|
|
layer: type
|
|
parentSelector:
|
|
name: ucp-maas-global
|
|
actions:
|
|
- method: merge
|
|
path: .values.manifests
|
|
- method: merge
|
|
path: .values.network
|
|
- method: merge
|
|
path: .values.conf
|
|
- method: replace
|
|
path: .values.dependencies.static
|
|
- method: replace
|
|
path: .values.endpoints.maas_ingress.hosts
|
|
storagePolicy: cleartext
|
|
substitutions:
|
|
|
|
# Drydock IPs
|
|
- src:
|
|
schema: pegleg/CommonAddresses/v1
|
|
name: common-addresses
|
|
path: .bootstrap.ip
|
|
dest:
|
|
path: .values.conf.drydock.bootaction_url
|
|
pattern: '(DRYDOCK_IP)'
|
|
- src:
|
|
schema: pegleg/CommonAddresses/v1
|
|
name: common-addresses
|
|
path: .node_ports.drydock_api
|
|
dest:
|
|
path: .values.conf.drydock.bootaction_url
|
|
pattern: '(DRYDOCK_PORT)'
|
|
|
|
# MaaS IPs
|
|
- src:
|
|
schema: pegleg/CommonAddresses/v1
|
|
name: common-addresses
|
|
path: .bootstrap.ip
|
|
dest:
|
|
path: .values.conf.maas.url.maas_url
|
|
pattern: '(MAAS_IP)'
|
|
- src:
|
|
schema: pegleg/CommonAddresses/v1
|
|
name: common-addresses
|
|
path: .node_ports.maas_api
|
|
dest:
|
|
path: .values.conf.maas.url.maas_url
|
|
pattern: '(MAAS_PORT)'
|
|
- src:
|
|
schema: pegleg/CommonAddresses/v1
|
|
name: common-addresses
|
|
path: .node_ports.maas_api
|
|
dest:
|
|
path: .values.endpoints.maas_region.port.region_api.nodeport
|
|
- src:
|
|
schema: pegleg/CommonAddresses/v1
|
|
name: common-addresses
|
|
path: .node_ports.maas_proxy
|
|
dest:
|
|
path: .values.endpoints.maas_region.port.region_proxy.default
|
|
data:
|
|
values:
|
|
manifests:
|
|
maas_ingress: false
|
|
|
|
network:
|
|
region_proxy:
|
|
node_port:
|
|
enabled: true
|
|
region_api:
|
|
ingress:
|
|
public: false
|
|
node_port:
|
|
enabled: true
|
|
|
|
conf:
|
|
drydock:
|
|
bootaction_url: http://DRYDOCK_IP:DRYDOCK_PORT/api/v1.0
|
|
maas:
|
|
images:
|
|
default_os: 'ubuntu'
|
|
default_image: 'xenial'
|
|
default_kernel: 'ga-16.04'
|
|
credentials:
|
|
secret:
|
|
namespace: ucp
|
|
url:
|
|
maas_url: http://MAAS_IP:MAAS_PORT/MAAS
|
|
|
|
dependencies:
|
|
static:
|
|
maas_ingress: {}
|
|
rack_controller:
|
|
services:
|
|
- service: maas_region
|
|
endpoint: internal
|
|
jobs:
|
|
- maas-export-api-key
|
|
region_controller:
|
|
jobs:
|
|
- maas-db-sync
|
|
services:
|
|
- service: maas_db
|
|
endpoint: internal
|
|
db_init:
|
|
services:
|
|
- service: maas_db
|
|
endpoint: internal
|
|
db_sync:
|
|
jobs:
|
|
- maas-db-init
|
|
bootstrap_admin_user:
|
|
jobs:
|
|
- maas-db-sync
|
|
services:
|
|
- service: maas_region
|
|
endpoint: internal
|
|
- service: maas_db
|
|
endpoint: internal
|
|
import_resources:
|
|
jobs:
|
|
- maas-bootstrap-admin-user
|
|
services:
|
|
- service: maas_region
|
|
endpoint: internal
|
|
- service: maas_db
|
|
endpoint: internal
|
|
export_api_key:
|
|
jobs:
|
|
- maas-bootstrap-admin-user
|
|
services:
|
|
- service: maas_region
|
|
endpoint: internal
|
|
- service: maas_db
|
|
endpoint: internal
|
|
|
|
endpoints:
|
|
maas_ingress:
|
|
hosts:
|
|
default: maas-ingress
|
|
error_pages: maas-ingress-error
|
|
...
|