summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-02-11Change helm plugin install to copy moduleMilan Verespej4-19/+25
Since helm plugin install command is not the most suitable for Ansible and it basically just creates link to plugin original location this change is using Ansible's copy module instead. Plugin is copied from install server because copy module doesn't support recursive directory copying with remote_src option. Issue-ID: OOM-1638 Change-Id: I9e9dcd8d33f8917296f576c2b34c0c576c9c126c Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-02-11Merge "Fix simulated_hosts template"Michal Ptacek1-1/+1
2019-02-08Configuration file option for packagingSamuli Silvius1-12/+23
At the moment configuration file for the package.sh script is fixed by name and location package.conf in the same dir as the script. Allow user to give configuration file as parameter for the script. Issue-ID: OOM-1627 Change-Id: I8b728996ead73a48b88bbbf364ec913217cbd8d6 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-02-08Merge "Use git format of patches"Tomáš Levora2-168/+219
2019-02-08Merge "Adding PyPI repository and packages to Nexus"Michal Ptacek2-3/+35
2019-02-07Adding PyPI repository and packages to NexusTomáš Levora2-3/+35
This update for building of Nexus repository for offline installer adds autoconfiguration of pipy repository and uploading pypi packages to it based on related list Issue-ID: OOM-1619 Change-Id: Id49aad2936e7e56848500c47a43a16f1f58db8e3 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-02-07Create APT repositoryTomáš Levora3-13/+50
Adding creation of APT repository for resources Issue-ID: OOM-1619 Change-Id: I2d4f14dfcbf2508d31bbc105828853c01733bb3e Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-02-07Create offline data lists to cover CasablancaTomáš Levora18-336/+476
Adding casablanca related data lists and changing the lists naming rule Modifying related download scripts accordingly Adding parameters for project version to download scripts to be able to use version specific lists Removing download-oom.sh as it should be done in helm charts preparation and patching steps Moving additional build related stuff to build directory Adding missing tags Issue-ID: OOM-1615 Change-Id: Ic5902f646a1f0f40ba615562f8d9b1a43cf8480b Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-02-07Fix simulated_hosts templateMichal Zegan1-1/+1
This fixes simulated_hosts template to use cluster_ip instead of ansible_host as source of infra ip. Change-Id: I02e205c031d94442b3a3debeee8baebaedc7180d Issue-ID: OOM-1637 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-02-06Use git format of patchesMilan Verespej2-168/+219
To avoid dependency on patch utility and to have standardized look of patch file this change uses git-format and git-apply to patch charts. Change-Id: I1c63334619bf6091b5ab50a4eebfadb3c28a2616 Issue-ID: OOM-1634 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-02-06Fix sdnc/appc-ansible-server not runningMilan Verespej3-2/+45
These pods are installing packages from apt and pypi repositroies during runtime. This change creates patch and makes necessary modifications for packages being installed from offline repositories. Change-Id: Id71f40f94c8641ad0c9d1ba4c87d3daea70c828e Issue-ID: OOM-1619 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-02-06Inserting our root certificate into policy podsMichal Ptacek2-0/+286
This commits introduced another bunch of patches for OOM charts we need in Casablanca to be able to get our certificate trusted by policy pods which are collecting maven artifacts from our nexus during runtime. Change-Id: I8289b155970e57059bccb5dfe09231e28bf27a32 Issue-ID: OOM-1609 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-02-06Extract certificate to cloudify-managerMichal Ptacek2-0/+39
DCAE bootstraping require that bootstrap/cloudify-manager pods has to trust our certificate. We are mounting path to this certificate to respective pod. Change-Id: Ie2ea796851e6def52d4ec556c9d5b19633e8a743 Issue-ID: OOM-1618 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
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>