summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-01-27Merge "Fixed dependent jq package installation"Michal Ptacek1-6/+4
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-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
2018-12-20Merge "Add data list gathering script"Petr Ospalý1-0/+34
2018-12-20Add ONAP deploymentTomáš Levora1-0/+55
Adding deploy onap script Issue-ID: OOM-1551 Change-Id: Ib4c876880600431eb87851910f1151c112c9c67e Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add data list gathering scriptTomáš Levora1-0/+34
Adding script for gathering data lists Issue-ID: OOM-1551 Change-Id: If2eff9c3eed23e89038d0eab73810b10281de0a4 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add self-installer creation to bash installerTomáš Levora1-0/+88
Adding script creating self-installer package Issue-ID: OOM-1551 Change-Id: If10e12da440864c3d72ca9a5b1fc27d89256225a Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add cleanup tools to bash installerTomáš Levora2-0/+60
Adding script for deleting local images and cleanup script to bash installer Issue-ID: OOM-1551 Change-Id: I9459a9fc803a12abb5e2306d651b5307da5aca6d Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add handling with offline dataTomáš Levora2-0/+167
Adding handling scripts for download and load offline data for bash installer Issue-ID: OOM-1551 Change-Id: I59feea8396841cb660463524f58ec65c626e69a6 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add NFS setup for bash installerTomáš Levora3-0/+146
Adding NFS installation and setup for bash installer Issue-ID: OOM-1551 Change-Id: Iba4b7f7136018027053d1c7cca0641c9d0ee3d7f Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add upload script for npms to bash installerTomáš Levora1-0/+48
Adding script for uploading NPM packages to private Nexus repository Issue-ID: OOM-1551 Change-Id: Ic4d5e28f5bfc80df7db214aec650c99ad91c7730 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add download handler script to bash installerTomáš Levora1-0/+47
Adding handler to help with downloading files for bash installer Issue-ID: OOM-1551 Change-Id: I34008f681274515b833947f4880c8ac0fbfdf34d Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-20Add docker login script for bash installerTomáš Levora1-0/+38
Adding docker login script to log to private nexus registry Issue-ID: OOM-1551 Change-Id: I3420c1427af64ab2db9d0932f2179b4b306128d9 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>