summaryrefslogtreecommitdiffstats
path: root/tools/cicdansible
AgeCommit message (Collapse)AuthorFilesLines
2019-10-08Merge "Fixing invalid hostname filled by ci-installer"Michal Ptacek1-3/+3
2019-10-08Fixing deprecation warning in ci-installerTomáš Levora1-1/+1
Issue-ID: OOM-2128 Change-Id: I5b25007b0521596083f539be296291adc21bb1d8 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-10-02Fixing invalid hostname filled by ci-installerTomáš Levora1-3/+3
ci-installer filled hostname containing underscore what is invalid Issue-ID: OOM-2119 Change-Id: I26dfa7115ba9e700715e0fae441c21a26fde3382 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-09-16Make cicdansible to set external ipMichal Zegan1-0/+4
Make cicdansible to set external_ip correctly using floating ips. Change-Id: I3791ee670806c7008073389e43dec5e887abfda9 Issue-ID: OOM-2112 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-06Add ability to put dockerdata-nfs on root diskMichal Zegan3-1/+18
Modify the heat template so that it becomes possible to skip volume creation for dockerdata-nfs. This feature can be toggled at will. It is useful for the cases where /dockerdata-nfs needs to be fast, but there are no ssd volumes available. Of course, large enough ephemeral disks are needed, around 60 gb. Change-Id: I37e29e7cf7273d1d4a6e896ec017d9ef8177b1d0 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-06Make kubernetes nodes to be placed on different computesMichal Zegan3-0/+18
Modify the heat template so that kubernetes node instances are not placed on the same compute nodes, but each on a different node. This is called anti-affinity. Change-Id: I16cad7cc2f503130bae80be3820c477890214594 Issue-ID: OOM-2042 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-06Change the way how volume map is constructedMichal Zegan2-11/+34
This commit modifies volume handling in heat template in cicdansible. Namely, it simplifies the generation of node to volume list mapping and makes it more readable and understandable, and also more flexible, because now parts of it could be conditionalized. This is required for a followup commit. Change-Id: I204aefd819f40050a2cb9e6a031dfb2c62da1f48 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add ansible configuration fileMichal Zegan1-0/+18
This commit adds the ansible configuration file, that configures pretty logging and, handling of connections and inventory, etc to make the playbook nicer to use. Change-Id: Ibf9eded62f87d338b4b215e8b0b37d80ec86b219 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add cicdansible playbookMichal Zegan1-0/+36
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>
2019-09-04Add onap installation roleMichal Zegan5-0/+94
This role generates offline installer parameters and inventory, downloads offline installer sw package, and initiates onap installation, waiting for it to finish. Change-Id: I5c79d9732b8d77f57278f5009f4e5089377fc2cf Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add onap instance configuration roleMichal Zegan4-0/+44
This change adds a role that configures deployed onap infrastructure instances. This role is generic and not openstack dependent. This role configures instances to reach each other by name, to mutually authenticate with the given ssh keys, etc. This mainly makes it easier for developers to do troubleshooting, and allows offline installer to work smoothly. Change-Id: I26750b0a8a69f56297f0a5f7ff491463ed2e9e32 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add ansible role to deploy onap infrastructure on openstackMichal Zegan7-0/+153
This role deploys the onap infrastructure on open stack using the heat template, passing it needed parameters from inventory. It also formats and mounts all cinder volumes attached to the instances, so that they can be utilized. Change-Id: I0cb13a5b55bd31445acaa2f7c1db80a925daa5cb Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add floating ip fact retrieval moduleMichal Zegan1-0/+61
This change adds the ansible module that retrieves facts about floating ips, that is missing from the ansible core modules. This module is used to translate floating ips into their resource identifiers before using heat template. Change-Id: I7a8756eff30b33f82dade2f35227ff241a8c5972 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add inventory for cicdansible playbookMichal Zegan5-0/+113
This change adds the basic inventory file and group_vars used when running cicdansible playbook to deploy onap on openstack. This inventory contains only instances that must be present, other inventory entries are dynamically registered during install. Also, it delegates to group_vars for things like floating ip addresses. group_vars contains default settings for the playbook, and especially the all.yml must be modified for the environment to be deployed. Change-Id: Ia93e6b98841d7edc45699b44b2479af6daff6c4f Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add heat template to deploy onap infrastructureMichal Zegan5-0/+411
This change adds a heat template that deploys empty onap infrastructure on open stack. Infrastructure consists of an installer instance + infra instance + specified number of kubernetes nodes. All instances are empty after creation, and live in the internal network with cidr 10.1.0.0/24. They are isolated by security groups in order not to have external network access except possibly the intranet, but it is possible to enable internet access if required. Change-Id: I70024e1e2344ed75f443f03b2239b460a71d0151 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-08-22Add the .gitignore for cicdansibleMichal Zegan1-0/+2
Adds the .gitignore file for the ansible playbook. Change-Id: If6e52f55e045ccccd164992108d1977c2a46a413 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>