summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-02-06Setting-up NPM registry for dgbuilderMichal Ptacek5-616/+225
This commit is showing-up how OOM patches must be handled in casablanca release. In Dublin we would like to avoid this completely OOM-1610 so here we are just reproducing the same logic which was already implemented in Beijing for bash offline installer. In general it works in a way that OOM charts are patched during offline platform build and values are configured in install time using pre-install application role/hook. Change-Id: I1a2425ef63edd6bc08dcecf0fcae7fd6e553d0ed Issue-ID: OOM-1616 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-02-05Merge "Fixing missing clause for enabling helm deploy"Michal Ptacek2-3/+13
2019-02-05Fixing missing clause for enabling helm deployMichal Ptacek2-3/+13
As a part of change merged recently in 271cf3ffc2977f9e4 support for OOM plugins was introduced however it was never used. This commit is fixing this and introducing helm deploy option if plugin exists. Change-Id: Ifb77ce2098ea28f822e5e15ddf2736f0c83b946c Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com> Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com> Issue-ID: OOM-1589 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-02-04Adding build guide for offline installerTomáš Levora1-0/+330
Adding a guide for procedure of building offline installer packages Markdown replaced by reStructuredText Fixed some wording and characters interpretation Issue-ID: OOM-1613 Change-Id: If0c6c2e18a4e27b560a48e5527ad3b207e5201b8 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-01-31Merge "Fix broken docker build due to pip-19.0"Michal Ptacek1-3/+3
2019-01-29Merge "Remove bash version of installer"Michal Ptacek51-2183/+95
2019-01-28Merge "Adding support for helm plugins"Michal Ptacek3-2/+37
2019-01-28Remove bash version of installerMilan Verespej51-2183/+95
Since bash version of offline installer is not supported in Casablanca release this change removes it and provides small refactor of offline resource building scripts. Change-Id: I953733edc31e994da123b7f0b1c502e156676669 Issue-ID: OOM-1597 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-01-27Merge "Fixed dependent jq package installation"Michal Ptacek1-6/+4
2019-01-27Adding support for helm pluginsMichal Ptacek3-2/+37
Proprietary plugins can be used along with helm, in addition to that building of local helm repository can be achieved by using different target or list of targets. Change-Id: If421133b9cc8bcfa47c3e7c14e6712520231e39c Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com> Issue-ID: OOM-1589
2019-01-24Enable to build ansible image out of git directoryPetr Ospalý1-6/+4
Inside the build_ansible_image.sh is a variable (label for docker image) which is set to git commit hash. This is fine but you can just copy and move ansible directory elsewhere out of git and this script breaks because of this. This change preserve previous functionality but only if the script is run inside a git repository otherwise it will skip setting the label for the built docker image. Change-Id: I23f828542efddde21d1c96116de7b20272ef23ef Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-24Fix broken docker build due to pip-19.0Petr Ospalý1-3/+3
pip-19.0 fails to build with the option --no-cache-dir Change-Id: I6494c6c6b4dc49d4fbd2ce657ed9824c5b3847e3 Issue-ID: OOM-1607 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-22Merge "Add ansible runner image/chroot into package"Samuli Silvius1-0/+10
2019-01-21Merge "Add variable for version of rancher server"Michal Ptacek2-2/+3
2019-01-21Merge "Fix variable nfs_mount_path not found"Samuli Silvius2-1/+2
2019-01-21Add ansible runner image/chroot into packageSamuli Silvius1-0/+10
Ansible runner docker image and chroot environment exported from that is needed runtime to run ansible playbooks. Currently package.sh script is not building that when packaging is run. This change will add generating of ansible runner package during packaging and including that into final package. Issue-ID: OOM-1594 Change-Id: I160c0e5366577ddf35b359b956bb4cdbdeb59787 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-01-20Merge "Handle empty runtime_images"Michal Ptacek1-1/+1
2019-01-18Merge "Fix logging problem for ansible-playbook"Michal Ptacek2-0/+7
2019-01-18Fix variable nfs_mount_path not foundMilan Verespej2-1/+2
Variable for creating nfs mount for onap nodes was in wrong group_vars file which caused the error because variable was undefined for hosts that needed it. This change moves this variable to correct file. Change-Id: If177fb23d90b8a32d70dd774dde2dfbfc697980a Issue-ID: OOM-1588 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-01-17Handle empty runtime_imagesMichal Ptacek1-1/+1
If there is no demand for docker images to be inserted into nexus during runtime, runtime_images might be empty and this will cause unhandled error with trying to insert undefined images Change-Id: I77147b64a3d288922eec5db7e7ce422ba2ed8c12 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com> Issue-ID: OOM-1587
2019-01-17Fix docker config handling in offline installerMichal Zegan4-2/+7
This fixes adding of dns address to /etc/docker/daemon.json to always use infra's ip address instead of possibly using it's hostname. Also similar change is done in handling of /etc/resolv.conf in infrastructure.yml. Ip address is specified by the "cluster_ip" variable placed on a host. Inventory specifies ip for everything except resource server (just for consistency). Change-Id: I2baa3f4c7d69b8dff109b5f8ae984134caf2af7d Issue-ID: OOM-1573 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-01-17Add variable for version of rancher serverMilan Verespej2-2/+3
Rancher server version is hardcoded to 1.6.14 used in Beijing deployment. This limits flexibility to use it for future versions of ONAP deployments. This change adds possibility to choose version of rancher server via variable in group_vars/infrastructure.yml and setting its default value to version used by Casablanca release. Change-Id: I3a38a882386ce6adcba77780ee79a7cedfe98e4e Issue-ID: OOM-1584 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-01-17Fix logging problem for ansible-playbookPetr Ospalý2-0/+7
Ansible could not write to the log because the ansible is run inside a chroot env. and on read-only fs - this is solved by adding new rw mount. Change-Id: I874063ad99948a55f9227d5e7eae05d3eaabe535 Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-16Fixed dependent jq package installationTomáš Levora1-6/+4
Fixed installation of proper jq package Issue-ID: OOM-1585 Change-Id: I4c196b08500b5275569da2951a728b05b3bf8757 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-01-15Fix bash-installer when .kube already existsPetr Ospalý1-1/+1
Change-Id: I4944ffffce0890561291b2efa96b1df614f93332 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com> Issue-ID: OOM-1581
2019-01-08Revert "Fix the problem with ansible_host for ..."Petr Ospalý1-5/+1
This reverts commit a22f6b34a424d0ce25be7e560d8072a2e84e3ab8. This commit was merged by mistake. Change-Id: Ic73bfd8e9d97c3a23629cba69047cc0edefb9cd0 Issue-ID: OOM-1573 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-07Fix the problem with ansible_host for dockerPetr Ospalý1-1/+5
WIP This solves the problem with domain name without dropping the ansible_host. Ansible_host is just resolved to the ip. By using the ping command we can avoid another dependencies. Change-Id: Ic1963d3af6a8bdd68089ac8b599731e35475d81f Issue-ID: OOM-1573 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-07Add support for plain files mounting into chrootPetr Ospalý2-13/+28
In this commit I tried to follow a behaviour of docker. If mounted path does not exist then it will handle it as a directory - it creates it and the mountpoint is expected to be a directory also. If the mounted path is a plain file it will do file bind mounting. The mountpoint must be a plain file. Change-Id: Ie8b29442c8ebb8da389ba6c9a152a49d8cf6e9be Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-07Merge "Fix docker config handling in offline installer"Petr Ospalý1-1/+1
2019-01-04Fix docker config handling in offline installerMichal Zegan1-1/+1
This fixes adding of dns address to /etc/docker/daemon.json to always use infra's ip address instead of possibly using it's hostname. It is done by replacing usage of "ansible_host" by "ansible_default_ipv4.address" fact. Change-Id: If6a29f3bf11ece7f883b099a1ab503341859cb90 Issue-ID: OOM-1573 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-01-04Merge "Add /etc/hosts to the chroot environment"Tomáš Levora1-1/+2
2019-01-03Add /etc/hosts to the chroot environmentPetr Ospalý1-1/+2
This will change in a future commit to be little more flexible. As of now it fixes some usage when host system has defined some custom resolving which are needed. Change-Id: Ifea2ba087982006c0a399d1b225d7ab13f7e94da Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-03Fix permisions on bash scriptsPetr Ospalý19-0/+0
Change-Id: I32813d3f74ddff9099c457c6d5af30fc0e97a835 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-03Fix whitespaces across the bash scriptsPetr Ospalý24-13/+196
Change-Id: I8f3912f1b7f35aa889ce63592b30014d6433a82f Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-03Remove duplicated filePetr Ospalý1-41/+0
Change-Id: I08be749e009712c07240e3f20c9c27519968d332 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-02Rename filename to singular to be consistentPetr Ospalý1-0/+0
Change-Id: Ie6873831e5d67dcc306d8a2e4b930fb8fe11c3d7 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-02Add default onap cfg supportPetr Ospalý2-3/+265
Issue-ID: OOM-1551 Change-Id: If91e00ba49af9b52eea6cabb7cfecc296d1ff596 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-21Oom Onap helm charts patches needed to Beijing.Samuli Silvius1-0/+616
For old bash solution how it got working with Beijing release of ONAP, some of the Helm charts needs to be patched to work offline. This file is tracking what changes are done and these changes are applied by installer on top of cloned Helm charts. Change-Id: Ic2265773de3bcfdb9d6aca19c2bcb4b5852966ba Issue-ID: OOM-1551 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2018-12-21Added config files for old bash offline installer.Samuli Silvius4-0/+280
Old bash installer is still kept usable and these config files are used only by that bash solution. Change-Id: I72d010cc49412f106947e1644ad9c1923ca98772 Issue-ID: OOM-1551 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2018-12-21Added nexus blob data building script.Samuli Silvius1-0/+309
Script can be used to pre-build nexus data blob from given binary files at build time to avoid nexus populating each time from empty state at installation time. This is usefull when most of the binaries are changed rarely and nexus can be just started up with pre-build blob data at installation time. Currently just docker images and NPM packages are supported. Script is generic and should not have any dependency to ONAP as such but there is few lines now that are rererring to onap, see below grep: $ grep -i onap build_nexus_blob.sh SIMUL_HOSTS="docker.elastic.co gcr.io hub.docker.com nexus3.onap.org nexus.onap.org registry.hub.docker.com ${NEXUS_DOMAIN}" def r = repository.createDockerHosted("onap", 8082, 0) sed -i "s|https://nexus.onap-me.novalocal|http://${NEXUS_DOMAIN}:8081|g" package/package.json Change-Id: I008678fdd6dc067e7ecb26969225e2324b44e7ba Issue-ID: OOM-1551 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2018-12-20Add the package.sh with a templatePetr Ospalý3-3/+292
It can be used to distribution of a project via tars. What is part of the package is defined in package.conf Issue-ID: OOM-1551 Change-Id: I8f5509bfb37d5cad510c0c151d49f6944fc6511c Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-20Update ansible nexus roleMichal Zegan2-1/+2
Looks like this one was a bit out of date, updating it... Change-Id: I7734fc5ccdba001d3c409244cd1625453ab232ed Issue-ID: OOM-1551 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2018-12-20Merge "Add docker login script for bash installer"Petr Ospalý1-0/+38
2018-12-20Merge "Add certificate extraction and generation"Petr Ospalý2-0/+102
2018-12-20Merge "Add download handler script to bash installer"Petr Ospalý1-0/+47
2018-12-20Merge "Add upload script for npms to bash installer"Petr Ospalý1-0/+48
2018-12-20Merge "Add NFS setup for bash installer"Petr Ospalý3-0/+146
2018-12-20Merge "Add handling with offline data"Petr Ospalý2-0/+167
2018-12-20Merge "Add cleanup tools to bash installer"Petr Ospalý2-0/+60
2018-12-20Merge "Add self-installer creation to bash installer"Petr Ospalý1-0/+88