Set up network for in-cluster deployment stage
[integration.git] / deployment / noheat / cluster-rke / ansible / create.yml
diff --git a/deployment/noheat/cluster-rke/ansible/create.yml b/deployment/noheat/cluster-rke/ansible/create.yml
new file mode 100644 (file)
index 0000000..fa24fb1
--- /dev/null
@@ -0,0 +1,17 @@
+---
+- name: Set up bastion node for ONAP Docker registry
+  hosts: "control0"
+  become: yes
+  roles:
+    - role: create_bastion
+      destination: "{{ nexus }}"
+- name: Add bastion information to the cluster nodes
+  hosts: all
+  become: yes
+  tasks:
+    - name: Add cluster hostnames to /etc/hosts file
+      lineinfile:
+        path: /etc/hosts
+        line: "{{ hostvars['control0']['ansible_default_ipv4']['address'] }} {{ item }}"
+      loop:
+        - "nexus3.onap.org"