diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-08-22 14:58:40 +0200 |
---|---|---|
committer | Michal Zegan <m.zegan@samsung.com> | 2019-09-04 11:24:52 +0200 |
commit | e465912f7a9d5088f06bd7d0a9bb60c010b05968 (patch) | |
tree | 8bb9bc6e99469275b7d32509a2e23468b44d7b88 | |
parent | 10fef61184e957c6397f2354666698f68a0926dd (diff) |
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 <m.zegan@samsung.com>
-rw-r--r-- | tools/cicdansible/install.yml | 36 |
1 files changed, 36 insertions, 0 deletions
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 |