oom/offline-installer.git
5 years agoFix the problem with the firewall 77/75877/3 beijing
Petr Ospalý [Wed, 16 Jan 2019 14:55:27 +0000 (15:55 +0100)]
Fix the problem with the firewall

As of now the installer does not configure iptables rules and for
successfull installation some rules are needed. This is simple fix
to enable installation even on machines with enabled firewall.

The user must setup rules by himself for a production use.

Firewall setup may be added in a future revision of the installer.

Change-Id: I7ea741b088dbb7f64bb7e8e273f7648f7fbf1bd6
Issue-ID: OOM-1581
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoFix bash-installer when .kube already exists 20/75820/1
Petr Ospalý [Tue, 15 Jan 2019 14:26:28 +0000 (15:26 +0100)]
Fix bash-installer when .kube already exists

Change-Id: I4944ffffce0890561291b2efa96b1df614f93332
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Issue-ID: OOM-1581

5 years agoRevert "Fix the problem with ansible_host for ..." 53/75453/1
Petr Ospalý [Tue, 8 Jan 2019 11:00:20 +0000 (12:00 +0100)]
Revert "Fix the problem with ansible_host for ..."

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>
5 years agoFix the problem with ansible_host for docker 85/75385/1
Petr Ospalý [Mon, 7 Jan 2019 16:18:29 +0000 (17:18 +0100)]
Fix the problem with ansible_host for docker

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>
5 years agoAdd support for plain files mounting into chroot 63/75363/1
Petr Ospalý [Mon, 7 Jan 2019 12:28:57 +0000 (13:28 +0100)]
Add support for plain files mounting into chroot

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>
5 years agoMerge "Fix docker config handling in offline installer"
Petr Ospalý [Mon, 7 Jan 2019 11:42:17 +0000 (11:42 +0000)]
Merge "Fix docker config handling in offline installer"

5 years agoFix docker config handling in offline installer 82/75282/1
Michal Zegan [Fri, 4 Jan 2019 13:20:03 +0000 (14:20 +0100)]
Fix docker config handling in offline installer

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>
5 years agoMerge "Add /etc/hosts to the chroot environment"
Tomáš Levora [Fri, 4 Jan 2019 08:51:54 +0000 (08:51 +0000)]
Merge "Add /etc/hosts to the chroot environment"

5 years agoAdd /etc/hosts to the chroot environment 39/75239/1
Petr Ospalý [Thu, 3 Jan 2019 18:03:45 +0000 (19:03 +0100)]
Add /etc/hosts to the chroot environment

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>
5 years agoFix permisions on bash scripts 36/75236/1
Petr Ospalý [Thu, 3 Jan 2019 17:37:43 +0000 (18:37 +0100)]
Fix permisions on bash scripts

Change-Id: I32813d3f74ddff9099c457c6d5af30fc0e97a835
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoFix whitespaces across the bash scripts 27/75227/1
Petr Ospalý [Thu, 3 Jan 2019 15:54:50 +0000 (16:54 +0100)]
Fix whitespaces across the bash scripts

Change-Id: I8f3912f1b7f35aa889ce63592b30014d6433a82f
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoRemove duplicated file 20/75220/1
Petr Ospalý [Thu, 3 Jan 2019 14:06:41 +0000 (15:06 +0100)]
Remove duplicated file

Change-Id: I08be749e009712c07240e3f20c9c27519968d332
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoRename filename to singular to be consistent 88/75188/1
Petr Ospalý [Wed, 2 Jan 2019 15:00:17 +0000 (16:00 +0100)]
Rename filename to singular to be consistent

Change-Id: Ie6873831e5d67dcc306d8a2e4b930fb8fe11c3d7
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd default onap cfg support 87/75187/1
Petr Ospalý [Wed, 2 Jan 2019 14:52:24 +0000 (15:52 +0100)]
Add default onap cfg support

Issue-ID: OOM-1551
Change-Id: If91e00ba49af9b52eea6cabb7cfecc296d1ff596
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoOom Onap helm charts patches needed to Beijing. 61/75061/1
Samuli Silvius [Fri, 21 Dec 2018 14:12:26 +0000 (16:12 +0200)]
Oom Onap helm charts patches needed to Beijing.

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>
5 years agoAdded config files for old bash offline installer. 60/75060/1
Samuli Silvius [Fri, 21 Dec 2018 14:08:09 +0000 (16:08 +0200)]
Added config files for old bash offline installer.

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>
5 years agoAdded nexus blob data building script. 59/75059/1
Samuli Silvius [Fri, 21 Dec 2018 12:23:51 +0000 (14:23 +0200)]
Added nexus blob data building script.

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>
5 years agoAdd the package.sh with a template 92/74992/1
Petr Ospalý [Thu, 20 Dec 2018 15:40:58 +0000 (16:40 +0100)]
Add the package.sh with a template

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>
5 years agoUpdate ansible nexus role 79/74979/1
Michal Zegan [Thu, 20 Dec 2018 11:16:56 +0000 (12:16 +0100)]
Update ansible nexus role

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>
5 years agoMerge "Add docker login script for bash installer"
Petr Ospalý [Thu, 20 Dec 2018 09:22:33 +0000 (09:22 +0000)]
Merge "Add docker login script for bash installer"

5 years agoMerge "Add certificate extraction and generation"
Petr Ospalý [Thu, 20 Dec 2018 09:22:21 +0000 (09:22 +0000)]
Merge "Add certificate extraction and generation"

5 years agoMerge "Add download handler script to bash installer"
Petr Ospalý [Thu, 20 Dec 2018 09:21:35 +0000 (09:21 +0000)]
Merge "Add download handler script to bash installer"

5 years agoMerge "Add upload script for npms to bash installer"
Petr Ospalý [Thu, 20 Dec 2018 09:20:54 +0000 (09:20 +0000)]
Merge "Add upload script for npms to bash installer"

5 years agoMerge "Add NFS setup for bash installer"
Petr Ospalý [Thu, 20 Dec 2018 09:20:12 +0000 (09:20 +0000)]
Merge "Add NFS setup for bash installer"

5 years agoMerge "Add handling with offline data"
Petr Ospalý [Thu, 20 Dec 2018 09:19:50 +0000 (09:19 +0000)]
Merge "Add handling with offline data"

5 years agoMerge "Add cleanup tools to bash installer"
Petr Ospalý [Thu, 20 Dec 2018 09:19:19 +0000 (09:19 +0000)]
Merge "Add cleanup tools to bash installer"

5 years agoMerge "Add self-installer creation to bash installer"
Petr Ospalý [Thu, 20 Dec 2018 09:18:55 +0000 (09:18 +0000)]
Merge "Add self-installer creation to bash installer"

5 years agoMerge "Add data list gathering script"
Petr Ospalý [Thu, 20 Dec 2018 09:18:39 +0000 (09:18 +0000)]
Merge "Add data list gathering script"

5 years agoAdd ONAP deployment 67/74967/1
Tomáš Levora [Thu, 20 Dec 2018 09:10:38 +0000 (10:10 +0100)]
Add ONAP deployment

Adding deploy onap script

Issue-ID: OOM-1551

Change-Id: Ib4c876880600431eb87851910f1151c112c9c67e
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd data list gathering script 66/74966/1
Tomáš Levora [Thu, 20 Dec 2018 09:08:00 +0000 (10:08 +0100)]
Add data list gathering script

Adding script for gathering data lists

Issue-ID: OOM-1551

Change-Id: If2eff9c3eed23e89038d0eab73810b10281de0a4
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd self-installer creation to bash installer 65/74965/1
Tomáš Levora [Thu, 20 Dec 2018 08:57:39 +0000 (09:57 +0100)]
Add self-installer creation to bash installer

Adding script creating self-installer package

Issue-ID: OOM-1551

Change-Id: If10e12da440864c3d72ca9a5b1fc27d89256225a
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd cleanup tools to bash installer 64/74964/1
Tomáš Levora [Thu, 20 Dec 2018 08:52:26 +0000 (09:52 +0100)]
Add cleanup tools to bash installer

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>
5 years agoAdd handling with offline data 63/74963/1
Tomáš Levora [Thu, 20 Dec 2018 08:48:44 +0000 (09:48 +0100)]
Add handling with offline data

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>
5 years agoAdd NFS setup for bash installer 62/74962/1
Tomáš Levora [Thu, 20 Dec 2018 08:45:02 +0000 (09:45 +0100)]
Add NFS setup for bash installer

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>
5 years agoAdd upload script for npms to bash installer 60/74960/1
Tomáš Levora [Thu, 20 Dec 2018 08:40:36 +0000 (09:40 +0100)]
Add upload script for npms to bash installer

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>
5 years agoAdd download handler script to bash installer 59/74959/1
Tomáš Levora [Thu, 20 Dec 2018 08:37:49 +0000 (09:37 +0100)]
Add download handler script to bash installer

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>
5 years agoAdd docker login script for bash installer 57/74957/1
Tomáš Levora [Thu, 20 Dec 2018 08:33:00 +0000 (09:33 +0100)]
Add docker login script for bash installer

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>
5 years agoAdd certificate extraction and generation 54/74954/1
Tomáš Levora [Thu, 20 Dec 2018 08:02:23 +0000 (09:02 +0100)]
Add certificate extraction and generation

Adding extraction and generation of certificates for nginx to handle SSL
connection to nexus repository in bash installer

Issue-ID: OOM-1551

Change-Id: Icf24bea5204c62f398a025178ff6d8a51d6bbb78
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Adding role for application handling"
Tomáš Levora [Thu, 20 Dec 2018 07:57:12 +0000 (07:57 +0000)]
Merge "Adding role for application handling"

5 years agoMerge "Adding main README file"
Tomáš Levora [Thu, 20 Dec 2018 07:57:01 +0000 (07:57 +0000)]
Merge "Adding main README file"

5 years agoMerge "Add ansible role for dns simulation"
Michal Ptacek [Thu, 20 Dec 2018 07:55:13 +0000 (07:55 +0000)]
Merge "Add ansible role for dns simulation"

5 years agoMerge "Uploading maven files script handler."
Michal Ptacek [Thu, 20 Dec 2018 07:54:01 +0000 (07:54 +0000)]
Merge "Uploading maven files script handler."

5 years agoMerge "Add ansible firewall role"
Michal Ptacek [Thu, 20 Dec 2018 07:53:10 +0000 (07:53 +0000)]
Merge "Add ansible firewall role"

5 years agoAdding role for application handling 40/74940/1
Michal Ptacek [Wed, 19 Dec 2018 19:42:03 +0000 (19:42 +0000)]
Adding role for application handling

this ansible role contains application specific tasks, it is
written in generic way and different helm charts can be used as
application. In addition operator can provide proprietary pre_install
and post_install hooks.

Change-Id: Ibe4b330e5a725dde41aca9f6a59d702cfaba6f52
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoAdding main README file 38/74938/1
Michal Ptacek [Wed, 19 Dec 2018 19:33:46 +0000 (19:33 +0000)]
Adding main README file

main documentation for ansible offline installer

Change-Id: I4e2cebf26a1720600dfed1a4b4c83a68a85426ed
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoAdd ansible role for dns simulation 25/74925/1
Tomáš Levora [Wed, 19 Dec 2018 14:47:04 +0000 (15:47 +0100)]
Add ansible role for dns simulation

Adding role to simulate domain names for offline installation from
private nexus repositories

Issue-ID: OOM-1551

Change-Id: Ia3fe274e95ef078332627af9229195bd6e9a667d
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd ansible role for docker installation 23/74923/1
Tomáš Levora [Wed, 19 Dec 2018 14:39:22 +0000 (15:39 +0100)]
Add ansible role for docker installation

Adding ansible role for installation of docker and its setup

Issue-ID: OOM-1551

Change-Id: I49bca8eab46a2750cd627cbf709bed6744c88df5
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd ansible firewall role 22/74922/1
Tomáš Levora [Wed, 19 Dec 2018 14:34:21 +0000 (15:34 +0100)]
Add ansible firewall role

Adding role to disable firewall to prevent any issue with communication
during the installation

Change-Id: I2390f0bc5062933e6a8bf4dcbc0b255b283f993d
Issue-ID: OOM-1551
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoUploading maven files script handler. 20/74920/1
Piotr Perzanowski [Wed, 19 Dec 2018 14:30:30 +0000 (15:30 +0100)]
Uploading maven files script handler.

Upload maven files to proper location.

Change-Id: Ic529b2ff3ce158f33a33e9f5dd306314040bd6d8
Issue-ID: OOM-1551
Signed-off-by: Piotr Perzanowski <p.perzanowsk@samsung.com>
5 years agoMerge "Adding ansible helm role"
Petr Ospalý [Wed, 19 Dec 2018 14:13:35 +0000 (14:13 +0000)]
Merge "Adding ansible helm role"

5 years agoMerge "Adding ansible vncserver role"
Petr Ospalý [Wed, 19 Dec 2018 14:13:18 +0000 (14:13 +0000)]
Merge "Adding ansible vncserver role"

5 years agoMerge "Add resource-data handling role"
Petr Ospalý [Wed, 19 Dec 2018 14:12:51 +0000 (14:12 +0000)]
Merge "Add resource-data handling role"

5 years agoMerge "Add an ansible config to enable custom roles"
Simon Hrabos [Wed, 19 Dec 2018 14:12:08 +0000 (14:12 +0000)]
Merge "Add an ansible config to enable custom roles"

5 years agoMerge "Add the playbook for unpacking the resources"
Simon Hrabos [Wed, 19 Dec 2018 14:12:00 +0000 (14:12 +0000)]
Merge "Add the playbook for unpacking the resources"

5 years agoMerge "Add the infrastructure playbook to setup cluster"
Simon Hrabos [Wed, 19 Dec 2018 14:11:51 +0000 (14:11 +0000)]
Merge "Add the infrastructure playbook to setup cluster"

5 years agoMerge "Add the playbook for deploying the kubernetes"
Simon Hrabos [Wed, 19 Dec 2018 14:11:43 +0000 (14:11 +0000)]
Merge "Add the playbook for deploying the kubernetes"

5 years agoMerge "Add application-install role"
Simon Hrabos [Wed, 19 Dec 2018 14:11:27 +0000 (14:11 +0000)]
Merge "Add application-install role"

5 years agoMerge "Add the playbook for deploying the helm app"
Simon Hrabos [Wed, 19 Dec 2018 14:10:49 +0000 (14:10 +0000)]
Merge "Add the playbook for deploying the helm app"

5 years agoMerge "Add the wrapper for running the ansible"
Simon Hrabos [Wed, 19 Dec 2018 14:10:30 +0000 (14:10 +0000)]
Merge "Add the wrapper for running the ansible"

5 years agoMerge "Add .gitignore to the ansible directory"
Simon Hrabos [Wed, 19 Dec 2018 14:09:33 +0000 (14:09 +0000)]
Merge "Add .gitignore to the ansible directory"

5 years agoMerge "Add empty application directory with README"
Simon Hrabos [Wed, 19 Dec 2018 14:08:17 +0000 (14:08 +0000)]
Merge "Add empty application directory with README"

5 years agoAdd the wrapper for running the ansible 17/74917/1
Petr Ospalý [Wed, 19 Dec 2018 14:07:22 +0000 (15:07 +0100)]
Add the wrapper for running the ansible

This script can run ansible playbook inside the docker
container or (default) in the chroot environment.

Change-Id: I713d6d76a4e20fc365a0ac7f47482004608354f6
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd the playbook for deploying the helm app 14/74914/1
Petr Ospalý [Wed, 19 Dec 2018 14:00:09 +0000 (15:00 +0100)]
Add the playbook for deploying the helm app

The application specific stuff should be in the
directory application - look at the README.md there

Change-Id: I59d103246d0f54ea329a04d43479c4f31952b902
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd application-install role 13/74913/1
Tomas Levora [Wed, 19 Dec 2018 13:36:36 +0000 (14:36 +0100)]
Add application-install role

This role adds helm install handling to ansible installer

Change-Id: I31f62a815822f5375cc7e5b138bec27e359127b0
Issue-ID: OOM-1551
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd the playbook for deploying the kubernetes 12/74912/1
Petr Ospalý [Wed, 19 Dec 2018 13:57:05 +0000 (14:57 +0100)]
Add the playbook for deploying the kubernetes

As the orchestration manager is used the rancher project

Change-Id: I178bfc8edc7f381dd735e3b19ac34f3cf6efdf53
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd the infrastructure playbook to setup cluster 10/74910/1
Petr Ospalý [Wed, 19 Dec 2018 13:52:07 +0000 (14:52 +0100)]
Add the infrastructure playbook to setup cluster

It will make arrangements to make offline
installation possible - especially:
dns handling
nexus repository
package installation

Issue-ID: OOM-1551
Change-Id: I3c60efd413f558454d63d4e79948bcc421f7bcd1
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd the playbook for unpacking the resources 09/74909/1
Petr Ospalý [Wed, 19 Dec 2018 13:49:29 +0000 (14:49 +0100)]
Add the playbook for unpacking the resources

Change-Id: I2b0190dc25f341fafa3b1cbf978c764c675280d4
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd the setup playbook for distributing ssh keys 08/74908/1
Petr Ospalý [Wed, 19 Dec 2018 13:46:38 +0000 (14:46 +0100)]
Add the setup playbook for distributing ssh keys

Change-Id: I76773122de3d0b85a5bd772353614834df382c54
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd an ansible config to enable custom roles 07/74907/1
Petr Ospalý [Wed, 19 Dec 2018 13:41:38 +0000 (14:41 +0100)]
Add an ansible config to enable custom roles

Inside the application directory can be defined a custom
application specific role

Issue-ID: OOM-1551
Change-Id: Ic975a477fa33452f061a88c133a0e3edae747d94
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd .gitignore to the ansible directory 06/74906/1
Petr Ospalý [Wed, 19 Dec 2018 13:36:37 +0000 (14:36 +0100)]
Add .gitignore to the ansible directory

To avoid including the untarred chroot directory into git

Issue-ID: OOM-1551
Change-Id: I4f760a2a5068a78fb5a05ebb1874544d55a2fc83
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd empty application directory with README 04/74904/1
Petr Ospalý [Wed, 19 Dec 2018 13:32:41 +0000 (14:32 +0100)]
Add empty application directory with README

Issue-ID: OOM-1551
Change-Id: I9bd50199d441bcc33d9a8019297950e556f378e4
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Add control variables for the ansible deploy"
Michal Ptacek [Wed, 19 Dec 2018 13:33:24 +0000 (13:33 +0000)]
Merge "Add control variables for the ansible deploy"

5 years agoAdd the template for the hosts inventory file 03/74903/1
Petr Ospalý [Wed, 19 Dec 2018 13:27:43 +0000 (14:27 +0100)]
Add the template for the hosts inventory file

Issue-ID: OOM-1551
Change-Id: I6ed8cae7fae5b482b5934d0e974434083714cf75
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd control variables for the ansible deploy 02/74902/1
Petr Ospalý [Wed, 19 Dec 2018 13:22:00 +0000 (14:22 +0100)]
Add control variables for the ansible deploy

all.yml should be set or redefined per application
infrastructure.yml should be modified only with a care

Issue-ID: OOM-1551
Change-Id: I05dd6b83d980101214881420e3825949e75afc73
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Adding nginx role"
Michal Ptacek [Wed, 19 Dec 2018 13:12:53 +0000 (13:12 +0000)]
Merge "Adding nginx role"

5 years agoMerge "Add nexus ansible role"
Michal Ptacek [Wed, 19 Dec 2018 13:12:03 +0000 (13:12 +0000)]
Merge "Add nexus ansible role"

5 years agoAdd ansible library for creating the k8n env. 99/74899/1
Petr Ospalý [Wed, 19 Dec 2018 12:54:09 +0000 (13:54 +0100)]
Add ansible library for creating the k8n env.

Issue-ID: OOM-1551
Change-Id: I485f58e560086345bd27a4a7f94d2651a0cd357e
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Adding rancher role"
Tomáš Levora [Wed, 19 Dec 2018 12:46:03 +0000 (12:46 +0000)]
Merge "Adding rancher role"

5 years agoAdd ansible library to modify json 98/74898/1
Petr Ospalý [Wed, 19 Dec 2018 12:28:29 +0000 (13:28 +0100)]
Add ansible library to modify json

Issue-ID: OOM-1551
Change-Id: I791bf7163a023ddc140cee22d474fcf532beae17
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Add a wrapper script to run ansible in chroot"
Tomáš Levora [Wed, 19 Dec 2018 12:20:40 +0000 (12:20 +0000)]
Merge "Add a wrapper script to run ansible in chroot"

5 years agoMerge "Add .gitignore to docker directory"
Petr Ospalý [Wed, 19 Dec 2018 12:18:24 +0000 (12:18 +0000)]
Merge "Add .gitignore to docker directory"

5 years agoAdd a wrapper script to run ansible in chroot 97/74897/1
Petr Ospalý [Wed, 19 Dec 2018 12:14:54 +0000 (13:14 +0100)]
Add a wrapper script to run ansible in chroot

Script uses namespaces and overlayfs to be more robust.
Also it supports bind mounting to extend the chroot with
external files and directories.

Issue-ID: OOM-1551
Change-Id: I8c554e1b86fca86f86e6c0d0e1b106c97a08ef15
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdding nginx role 96/74896/1
Michal Ptacek [Wed, 19 Dec 2018 12:13:50 +0000 (12:13 +0000)]
Adding nginx role

nginx is crucial part of our offline solution, within this role
we are covering deployment of this lightweight http server
together with its configuration.

Change-Id: I89695074349f4c6938340ab3bb735108c8c278f4
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoAdding rancher role 95/74895/1
Michal Ptacek [Wed, 19 Dec 2018 12:10:34 +0000 (12:10 +0000)]
Adding rancher role

In kubernetes cluster configuration we still use rancher tool,
this ansible role is providing handling for both rancher server
and agent.

Change-Id: I508a42a98902788b940b06cf95009a899c50a3b8
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoAdd a script to convert the docker into chroot 94/74894/1
Petr Ospalý [Wed, 19 Dec 2018 12:08:22 +0000 (13:08 +0100)]
Add a script to convert the docker into chroot

The docker image will be exported into a tar archive
containing the chroot directory

Issue-ID: OOM-1551
Change-Id: I8709ffd59156243e42bebbaf03838120149d47b0
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd .gitignore to docker directory 93/74893/1
Petr Ospalý [Wed, 19 Dec 2018 12:03:21 +0000 (13:03 +0100)]
Add .gitignore to docker directory

To avoid including the created image in the git by accident

Issue-ID: OOM-1551
Change-Id: I7144a063ed45ee8511912adb2aa1024965d452d0
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd resource-data handling role 92/74892/1
Michal Ptacek [Wed, 19 Dec 2018 11:54:34 +0000 (11:54 +0000)]
Add resource-data handling role

In this role we mostly cover uploading of data resource using
either default ssh way or if nfs server is configured it can
be used as well for distributing data to infra node.

Change-Id: I4784c6ca931b00c1033aedb33e388badfba83650
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoAdd ansible docker image 91/74891/1
Petr Ospalý [Wed, 19 Dec 2018 11:47:27 +0000 (12:47 +0100)]
Add ansible docker image

Dockerfile and script for building the image

Change-Id: If1e83095463ae209e284ba92898447a1205a2244
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdding ansible vncserver role 90/74890/1
Michal Ptacek [Wed, 19 Dec 2018 11:41:46 +0000 (11:41 +0000)]
Adding ansible vncserver role

Local VNCserver is expected to be good tool for accessing onap component
GUI APIs howerver its not crucial part of the installation.

Change-Id: If8105d5ab564f30d9da002a5bf2b1f0f3c017f78
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoAdding ansible helm role 89/74889/1
Michal Ptacek [Wed, 19 Dec 2018 11:36:09 +0000 (11:36 +0000)]
Adding ansible helm role

This role is providing handling of helm binary,
as of now its very lightweight.

Change-Id: I7b9368f31b40d3a818dfdaa9293b0013d963b39c
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMerge "Add ansible nfs role"
Michal Ptacek [Wed, 19 Dec 2018 11:32:51 +0000 (11:32 +0000)]
Merge "Add ansible nfs role"

5 years agoMerge "Add ansible certificates role"
Michal Ptacek [Wed, 19 Dec 2018 11:32:16 +0000 (11:32 +0000)]
Merge "Add ansible certificates role"

5 years agoAdd ansible kubectl role 88/74888/1
Michal Zegan [Wed, 19 Dec 2018 10:54:26 +0000 (11:54 +0100)]
Add ansible kubectl role

This role install kubectl tool.

Change-Id: Ie446a68c94138593770f323ec3ee3dc607fdd8e0
Issue-ID: OOM-1551
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd nexus ansible role 87/74887/1
Michal Zegan [Wed, 19 Dec 2018 10:51:26 +0000 (11:51 +0100)]
Add nexus ansible role

This role deploys the internal nexus used as
offline source of docker images/npm packages for onap.

Change-Id: Iaf398eb03614749d2b3c100c241726144ccae1a0
Issue-ID: OOM-1551
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd ansible nfs role 86/74886/1
Michal Zegan [Wed, 19 Dec 2018 10:47:30 +0000 (11:47 +0100)]
Add ansible nfs role

This commit adds role for creating /dockerdata-nfs
and exporting i over nfs for later use during onap deployment.

Change-Id: I0ea8e858d581534b983eaab6e1ee570068fc623c
Issue-ID: OOM-1551
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd ansible certificates role 85/74885/1
Michal Zegan [Wed, 19 Dec 2018 10:20:51 +0000 (11:20 +0100)]
Add ansible certificates role

This role is used to generate and install certificates on instances,
incl. root ca.
Those certificates are used mainly to allow secure access to
internal docker registry with proper certificate verification.

Issue-ID: OOM-1551
Change-Id: I74782dd2938cb51da293f88483d5362981269196
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoPlacing script for saving docker images. 40/74840/1
Piotr Perzanowski [Tue, 18 Dec 2018 16:00:08 +0000 (17:00 +0100)]
Placing script for saving docker images.

This code is required for saving docker images correctly.

Change-Id: I133c78b0596d2741aec001611ee2db822ff59219
Issue-ID: OOM-1551
Signed-off-by: Piotr Perzanowski <p.perzanowsk@samsung.com>
5 years agoPushing the remote list gathering script. 41/74841/1
Piotr Perzanowski [Tue, 18 Dec 2018 15:50:45 +0000 (16:50 +0100)]
Pushing the remote list gathering script.

This script gather docker images list from environment.

Change-Id: Ie02068d652f37b296890f0831e7a6b39cb8c0ba2
Issue-ID: OOM-1551
Signed-off-by: Piotr Perzanowski <p.perzanowsk@samsung.com>
5 years agoInserting to repo make-npm-list.sh 42/74842/1
Piotr Perzanowski [Tue, 18 Dec 2018 15:45:11 +0000 (16:45 +0100)]
Inserting to repo make-npm-list.sh

Script will gather needed npm package.

Change-Id: I18b6c129c8a1f0ad4b3c9f49a4fcec0591ed8efe
Issue-ID: OOM-1551
Signed-off-by: Piotr Perzanowski <p.perzanowsk@samsung.com>
5 years agoUploading the script for loading images. 43/74843/1
Piotr Perzanowski [Tue, 18 Dec 2018 15:33:00 +0000 (16:33 +0100)]
Uploading the script for loading images.

This script will push docker images to nexus.

Change-Id: I688a87b98acb919d13bf96fc32d7fd7c958eabb4
Issue-ID: OOM-1551
Signed-off-by: Piotr Perzanowski <p.perzanowsk@samsung.com>