Add cicdansible playbook 18/94118/2
authorMichal Zegan <m.zegan@samsung.com>
Thu, 22 Aug 2019 12:58:40 +0000 (14:58 +0200)
committerMichal Zegan <m.zegan@samsung.com>
Wed, 4 Sep 2019 09:24:52 +0000 (11:24 +0200)
This playbook runs the cicdansible roles on hosts defined, statically
or dynamically, in the inventory.
It deploys onap infrastructure on openstack, then installs onap.

Change-Id: Idf618ff137c1adbad8f9b2f1bf878eaa9f20465d
Issue-ID: OOM-2042
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
tools/cicdansible/install.yml [new file with mode: 0644]

diff --git a/tools/cicdansible/install.yml b/tools/cicdansible/install.yml
new file mode 100644 (file)
index 0000000..13071c3
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#Installation of onap on open stack driven by ansible.
+#Default parameters are set in group_vars/*.yml.
+#Inventory is in hosts.yml, and parameters specific to instances are set there.
+#Deploy infrastructure.
+- name: "deploy infrastructure"
+  hosts: localhost
+  gather_facts: false
+  roles:
+    - role: setup_openstack_infrastructure
+      vars:
+        mode: deploy
+#Play that configures all instances.
+- name: "Instance configuration"
+  hosts: instances
+  any_errors_fatal: true
+  roles:
+    - role: setup_openstack_infrastructure
+      vars:
+        mode: configure
+    - role: configure_instances
+#Play that downloads sw resources.
+- name: "Download resources"
+  hosts: resources
+  gather_facts: false
+  roles:
+    - role: install
+      vars:
+        mode: download_resources
+#Perform installation.
+- name: "Perform installation"
+  hosts: installer
+  roles:
+    - role: install
+      vars:
+        mode: install