From: Michal Zegan Date: Thu, 22 Aug 2019 12:58:40 +0000 (+0200) Subject: Add cicdansible playbook X-Git-Tag: 6.0.0-ONAP~98^2~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e465912f7a9d5088f06bd7d0a9bb60c010b05968;p=oom%2Foffline-installer.git Add cicdansible playbook 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 --- diff --git a/tools/cicdansible/install.yml b/tools/cicdansible/install.yml new file mode 100644 index 00000000..13071c31 --- /dev/null +++ b/tools/cicdansible/install.yml @@ -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