summaryrefslogtreecommitdiffstats
path: root/ansible/roles/ansible-vvp-bootstrap/templates/groups/group.json.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/ansible-vvp-bootstrap/templates/groups/group.json.j2')
-rwxr-xr-xansible/roles/ansible-vvp-bootstrap/templates/groups/group.json.j273
1 files changed, 73 insertions, 0 deletions
diff --git a/ansible/roles/ansible-vvp-bootstrap/templates/groups/group.json.j2 b/ansible/roles/ansible-vvp-bootstrap/templates/groups/group.json.j2
new file mode 100755
index 0000000..f7faa70
--- /dev/null
+++ b/ansible/roles/ansible-vvp-bootstrap/templates/groups/group.json.j2
@@ -0,0 +1,73 @@
+{#
+-*- encoding: utf-8 -*-
+============LICENSE_START=======================================================
+org.onap.vvp/engagementmgr
+===================================================================
+Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+===================================================================
+
+Unless otherwise specified, all software contained herein is licensed
+under the Apache License, Version 2.0 (the “License”);
+you may not use this software except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+
+Unless otherwise specified, all documentation contained herein is licensed
+under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
+you may not use this documentation except in compliance with the License.
+You may obtain a copy of the License at
+
+ https://creativecommons.org/licenses/by/4.0/
+
+Unless required by applicable law or agreed to in writing, documentation
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+============LICENSE_END============================================
+
+ ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#}
+{
+ "id": "{{item.name}}",
+ "name": "k8s node",
+ "profile": "{{item.role}}",
+ "selector": {
+ "mac": "{{item.mac}}",
+ "os": "installed"
+ },
+ "metadata": {
+ "ssh_ip": "{{item.ssh_ip}}",
+ "k8s_flanneld_iface": "{{flanneld_interface}}",
+ "container_runtime": "{{container_runtime | default('rkt')}}",
+ "domain_name": "{{item.name}}.{{domain}}",
+ "etcd_initial_peers": "http://{{item.name}}.{{domain}}:2380",
+ "etcd_initial_cluster": "{% for host in hosts %}{% if host.etcd_role == "member" %}{{host.name}}=http://{{host.name}}.{{domain}}:2380,{% endif %}{% endfor %}",
+ "etcd_name": "{{item.name}}",
+ "k8s_version": "{{k8s_version}}",
+ "k8s_cert_endpoint": "http://{{ops_management_ip}}:8080/assets",
+ "k8s_dns_service_ip": "10.3.0.10",
+ "k8s_etcd_endpoints": "{% for host in hosts %}{% if host.etcd_role == "member" %}http://{{host.name}}.{{domain}}:2379,{% endif %}{% endfor %}",
+ "sysdig_access_key": "{{ sysdig_access_key| default('') }}",
+{% if item.role == "controller" %}
+ "k8s_apiserver_advertise_address": "{{k8s_apiserver_advertise_address}}",
+ "k8s_controller_port": "{{k8s_controller_port}}",
+ "k8s_pod_network": "10.2.0.0/16",
+ "k8s_service_ip_range": "10.3.0.0/24",
+{% else %}
+ "k8s_controller_endpoint": "https://{{(hosts|selectattr('role', 'equalto', 'controller')|first).name}}.{{domain}}:{{k8s_controller_port}}",
+{% endif %}
+ "ssh_authorized_keys": [{% for key in ssh_keys %}"{{key}}"{% if not loop.last %},{% endif %}{% endfor %}],
+ "ignition_endpoint": "http://{{ops_management_ip}}:8080/ignition"
+ }
+}