simplify dns and bios template entries
[yaml_builds.git] / templates / networks / common-addresses.j2
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 schema: pegleg/CommonAddresses/v1
19 metadata:
20   schema: metadata/Document/v1
21   name: common-addresses
22   layeringDefinition:
23     abstract: false
24     layer: site
25   storagePolicy: cleartext
26 data:
27   calico:
28     ip_autodetection_method: interface={{yaml.networks.ksn.interface}}
29     etcd:
30       service_ip: 10.96.232.136
31
32   dns:
33     cluster_domain: cluster.local
34     service_ip: 10.96.0.10
35     upstream_servers:
36 {% for server in yaml.dns.upstream_servers %}
37       - {{server}}
38 {% endfor %}
39     upstream_servers_joined: '{{yaml.dns.upstream_servers[0]}}{% if yaml.dns.upstream_servers|length > 1 %},{{yaml.dns.upstream_servers[1]}}{% endif %}'
40     ingress_domain: {{yaml.dns.ingress_domain}}
41   genesis:
42     hostname: {{yaml.genesis.name}}
43     ip: {{yaml.genesis.ksn}}
44
45   bootstrap:
46     ip: {{yaml.genesis.pxe}}
47
48   kubernetes:
49     api_service_ip: {{yaml.kubernetes.api_service_ip}}
50     etcd_service_ip: {{yaml.kubernetes.etcd_service_ip}}
51     pod_cidr: {{yaml.kubernetes.pod_cidr}}
52     service_cidr: {{yaml.kubernetes.service_cidr}}
53     apiserver_port: 6443
54     haproxy_port: 6553
55     service_node_port_range: 30000-32767
56
57   etcd:
58     container_port: 2379
59     haproxy_port: 2378
60
61   masters:
62 {% for master in yaml.masters %}
63     - hostname: {{master.name}}
64 {% endfor %}
65
66   proxy:
67     http: ""
68     https: ""
69     no_proxy: []
70
71   node_ports:
72     drydock_api: 30000
73     maas_api: 30001
74     maas_proxy: 31800  # hardcoded in MAAS
75     shipyard_api: 30003
76     airflow_web: 30004
77
78   ntp:
79     servers_joined: '0.ubuntu.pool.ntp.org,1.ubuntu.pool.ntp.org,2.ubuntu.pool.ntp.org'
80
81   # Used for FQDN setup/definition
82   domain:
83     url: {{yaml.site_name}}.lab.akraino.org
84
85   ldap:
86     base_url: 'its-a-ldap.example.com'
87     url: 'ldap://its-a-ldap.example.com'
88     auth_path: DC=test,DC=test,DC=com?sAMAccountName?sub?memberof=CN=test,OU=Application,OU=Groups,DC=test,DC=test,DC=com
89     common_name: AP-NC_Test_Users
90     subdomain: testitservices
91     domain: example
92
93   storage:
94     ceph:
95       public_cidr: '{{yaml.networks.storage.cidr}}'
96       cluster_cidr: '{{yaml.networks.storage.cidr}}'
97
98   neutron:
99     tunnel_device: '{{yaml.networks.neutron.interface}}'
100     external_iface: '{{yaml.networks.primary}}'
101
102   openvswitch:
103     external_iface: '{{yaml.networks.primary}}'
104 ...