[CORD-2127]
Change to use headnode_dns for the DNS name of the headnode
[CORD-2120]
Add onos-fabric DNS entry
Change-Id: I2c9b3c9e64fea9366b437621eb56d0ef79aa2c98
diff --git a/roles/dns-nsd/defaults/main.yml b/roles/dns-nsd/defaults/main.yml
index 28f5c10..c69160a 100644
--- a/roles/dns-nsd/defaults/main.yml
+++ b/roles/dns-nsd/defaults/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
# dns-nsd/defaults/main.yml
nsd_ip: 127.0.0.1
@@ -28,7 +26,7 @@
# NOTE - many of the below settings are shared with the dns-nsd role, and you
# may need to update them in the defaults of both.
-headnode: head1
+headnode_dns: head1
site_name: placeholder-sitename
site_suffix: "{{ site_name }}.test"
@@ -56,18 +54,20 @@
- head_lxd_list
- physical_node_list
aliases:
- - { name: "apt-cache", dest: "{{ headnode }}" }
- - { name: "cordloghost", dest: "{{ headnode }}" }
- - { name: "consul", dest: "{{ headnode }}" }
- - { name: "docker", dest: "{{ headnode }}" }
- - { name: "mavenrepo", dest: "{{ headnode }}" }
- - { name: "ns", dest: "{{ headnode }}" }
- - { name: "ns1", dest: "{{ headnode }}" }
- - { name: "onos-cord", dest: "{{ headnode }}" }
- - { name: "xos", dest: "{{ headnode }}" }
- - { name: "xos-chameleon", dest: "{{ headnode }}" }
- - { name: "xos-consul", dest: "{{ headnode }}" }
- - { name: "xos-core", dest: "{{ headnode }}" }
- - { name: "xos-gui", dest: "{{ headnode }}" }
- - { name: "xos-tosca", dest: "{{ headnode }}" }
- - { name: "xos-ws", dest: "{{ headnode }}" }
+ - { name: "apt-cache", dest: "{{ headnode_dns }}" }
+ - { name: "cordloghost", dest: "{{ headnode_dns }}" }
+ - { name: "consul", dest: "{{ headnode_dns }}" }
+ - { name: "docker", dest: "{{ headnode_dns }}" }
+ - { name: "mavenrepo", dest: "{{ headnode_dns }}" }
+ - { name: "ns", dest: "{{ headnode_dns }}" }
+ - { name: "ns1", dest: "{{ headnode_dns }}" }
+ - { name: "onos-cord", dest: "{{ headnode_dns }}" }
+ - { name: "onos-fabric", dest: "{{ headnode_dns }}" }
+ - { name: "xos", dest: "{{ headnode_dns }}" }
+ - { name: "xos-chameleon", dest: "{{ headnode_dns }}" }
+ - { name: "xos-consul", dest: "{{ headnode_dns }}" }
+ - { name: "xos-core", dest: "{{ headnode_dns }}" }
+ - { name: "xos-gui", dest: "{{ headnode_dns }}" }
+ - { name: "xos-tosca", dest: "{{ headnode_dns }}" }
+ - { name: "xos-ws", dest: "{{ headnode_dns }}" }
+
diff --git a/roles/dns-unbound/defaults/main.yml b/roles/dns-unbound/defaults/main.yml
index 57d76db..4ccf5de 100644
--- a/roles/dns-unbound/defaults/main.yml
+++ b/roles/dns-unbound/defaults/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
# dns-unbound/defaults/main.yml
unbound_conf: "/var/unbound/etc/unbound.conf"
@@ -30,7 +28,7 @@
site_name: placeholder-sitename
site_suffix: "{{ site_name }}.test"
-headnode: head1
+headnode_dns: head1
# Management IP range from DHCP settings
mgmt_ipv4_first_octets: "192.168.200"
@@ -55,19 +53,20 @@
- head_lxd_list
- physical_node_list
aliases:
- - { name: "apt-cache", dest: "{{ headnode }}" }
- - { name: "cordloghost", dest: "{{ headnode }}" }
- - { name: "consul", dest: "{{ headnode }}" }
- - { name: "docker", dest: "{{ headnode }}" }
- - { name: "mavenrepo", dest: "{{ headnode }}" }
- - { name: "ns", dest: "{{ headnode }}" }
- - { name: "ns1", dest: "{{ headnode }}" }
- - { name: "onos-cord", dest: "{{ headnode }}" }
- - { name: "xos", dest: "{{ headnode }}" }
- - { name: "xos-chameleon", dest: "{{ headnode }}" }
- - { name: "xos-consul", dest: "{{ headnode }}" }
- - { name: "xos-core", dest: "{{ headnode }}" }
- - { name: "xos-gui", dest: "{{ headnode }}" }
- - { name: "xos-tosca", dest: "{{ headnode }}" }
- - { name: "xos-ws", dest: "{{ headnode }}" }
+ - { name: "apt-cache", dest: "{{ headnode_dns }}" }
+ - { name: "cordloghost", dest: "{{ headnode_dns }}" }
+ - { name: "consul", dest: "{{ headnode_dns }}" }
+ - { name: "docker", dest: "{{ headnode_dns }}" }
+ - { name: "mavenrepo", dest: "{{ headnode_dns }}" }
+ - { name: "ns", dest: "{{ headnode_dns }}" }
+ - { name: "ns1", dest: "{{ headnode_dns }}" }
+ - { name: "onos-cord", dest: "{{ headnode_dns }}" }
+ - { name: "onos-fabric", dest: "{{ headnode_dns }}" }
+ - { name: "xos", dest: "{{ headnode_dns }}" }
+ - { name: "xos-chameleon", dest: "{{ headnode_dns }}" }
+ - { name: "xos-consul", dest: "{{ headnode_dns }}" }
+ - { name: "xos-core", dest: "{{ headnode_dns }}" }
+ - { name: "xos-gui", dest: "{{ headnode_dns }}" }
+ - { name: "xos-tosca", dest: "{{ headnode_dns }}" }
+ - { name: "xos-ws", dest: "{{ headnode_dns }}" }
diff --git a/roles/xos-config-new-tosca/defaults/main.yml b/roles/xos-config-new-tosca/defaults/main.yml
index 1ead356..c0f3674 100644
--- a/roles/xos-config-new-tosca/defaults/main.yml
+++ b/roles/xos-config-new-tosca/defaults/main.yml
@@ -1,5 +1,4 @@
---
-
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,9 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
# xos-config/defaults/main.yml
+xos_tosca_host: "xos-tosca"
+
head_credentials_dir: "/opt/credentials"
xos_admin_user: "xosadmin@opencord.org"
diff --git a/roles/xos-config-new-tosca/tasks/main.yml b/roles/xos-config-new-tosca/tasks/main.yml
index b2534dc..f254445 100644
--- a/roles/xos-config-new-tosca/tasks/main.yml
+++ b/roles/xos-config-new-tosca/tasks/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,13 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
# xos-config-new-tosca/tasks/main.yml
- name: Configure XOS with profile specific TOSCA (new Engine)
uri:
- url: "http://{{headnode}}/xos-tosca/run"
+ url: "http://{{ xos_tosca_host }}/xos-tosca/run"
method: POST
headers:
xos-username: "{{ xos_admin_user }}"