summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-03-28Improving docker restart handlerMichal Ptacek2-4/+19
There is a bug in docker which leads to not properly shutdown service preventing subsequent startup. https://github.com/moby/moby/issues/30348 This commit is preventing this problem to appear. Change-Id: I29505610bd9954af01d73264e5414fdb2b9ac99d Issue-ID: OOM-1735 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-03-26Add python-jsonpointer as a new dependencyPetr Ospalý2-1/+6
Our custom ansible module requires python-jsonpointer module to deal with jsons. Change-Id: Idd7bfcf8fcf75e4397fba51d8219b73c57df5f0e Issue-ID: OOM-1758 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-03-26Merge "Sanitize input arguments validation"Michal Ptacek1-4/+18
2019-03-26Merge "Fixing some yaml-lint warnings"Michal Ptacek9-16/+40
2019-03-26Fixing some yaml-lint warningsMichal Ptacek9-16/+40
Scope of this commit is to fix warnings reported by offline-installer-master-yaml-lint jenkins job Change-Id: Id858a37ce35d53ad1ffd5e5797607faae484ed15 Issue-ID: OOM-1753 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-03-26Merge ".gitignore for Molecule testing"Michal Ptacek1-0/+3
2019-03-26Merge "Fix issue with proxy for deb download behind proxy"Michal Ptacek1-5/+5
2019-03-26Merge "Fix git repos not using tag 3.0.1-ONAP"Michal Ptacek1-3/+3
2019-03-23.gitignore for Molecule testingSamuli Silvius1-0/+3
Issue-ID: OOM-1748 Change-Id: Ie1558112d6d2af2c77f9f9d0a142d417b3269589 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-03-20update for missing nginx tarfileeronkeo2-3/+7
This update adds an entry to the docker_images lists file to ensure it is saved as a tar file and available for processing in the "Prepare infra related images to infra folder" section. Change-Id: I293144daa96b3c579443a2e76a407ea04821dce7 Issue-ID: OOM-1738 Signed-off-by: eronkeo <ronan.keogh@est.tech>
2019-03-20Fix issue with proxy for deb download behind proxyTomáš Levora1-5/+5
As curl tries to use ftp transfer for some of the packages in the list, what causes an issue behind some corporate proxies, this commit unifies the sources to prevent ftp Issue-ID: OOM-1746 Change-Id: Ia7cac5a1c3d508749c3bea830c3df1137128e709 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-03-20Fix git repos not using tag 3.0.1-ONAPTomáš Levora1-3/+3
Tag 3.0.1-ONAP is not created for projects not included in the Casablanca Maintenance release, so casablanca branch is used instead Issue-ID: OOM-1745 Change-Id: I652ab0a87ddcdda0d72088609fdd1ce678159ff0 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-03-20Merge "Update Maven artifact dependency list"Michal Ptacek2-496/+638
2019-03-20Merge "Add default logging settings for docker"Michal Ptacek5-92/+345
2019-03-20Merge "Changing keystore to trustore in policy"Tomáš Levora1-20/+20
2019-03-20Update Maven artifact dependency listkaihlavi2-496/+638
Update required Maven artifact dependencies for offline Nexus to Casablanca level Change-Id: I2c0eb230e05bb691911497eff4439b121b2a01d5 Issue-ID: OOM-1706 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
2019-03-19Merge "Change cert signing from command to module"Michal Ptacek2-29/+14
2019-03-18Add default logging settings for dockerPetr Ospalý5-92/+345
- Default configuration of logging for docker daemon. - New ansible module for generic handling of JSON files. - New setting in ansible.cfg: jinja2_native = True To preserve double-quotes in json values (OOM-1698). Issue-ID: OOM-1681 Change-Id: I8f8e19ebc290fd48a63146e96f418b98344e4433 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-03-18Sanitize input arguments validationBartek Grzybowski1-4/+18
This patch ensures non-positional parameters are given past positional args. So far mixing them led to malicious script behaviour. Change-Id: Idf2b6a57d0cd8561e74e467f68ddc5d086e7a0c0 Issue-ID: OOM-1621 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-03-18Merge "Don't remove target dir by default"Michal Ptacek1-6/+23
2019-03-15Changing keystore to trustore in policyMichal Ptacek1-20/+20
Casablanca policy is using different file as its keystore. We need to adjust our patch accordingly Issue-ID: OOM-1727 Change-Id: I67cb3f098a8e56467594832050dbc2c66dbe124c Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-03-14Don't remove target dir by defaultBartek Grzybowski1-6/+23
If target dir given as an argument is not empty script exits and gives verbose reasoning. Introduced '--force' flag to allow overwriting non empty target dir. Improved usage synopsis. Change-Id: Ic03c926011a41e9620c941f28dbc580b5b9933ac Issue-ID: OOM-1621 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-03-14Change cert signing from command to moduleMilan Verespej2-29/+14
With newer Ansible we are now able to sign nexus certificate with own CA using openssl_certificate module. Issue-ID: OOM-1700 Change-Id: Idc54955160caef4a57bd50fc86678923511b5bce Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-03-14Fix repo checkout cmd in build guideBartek Grzybowski1-1/+1
As there is no 'casablanca' branch 'master' should be checked out. Change-Id: I9fba8ef0b10d3de3891d0e7612571789dfdc9449 Issue-ID: OOM-1621 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-03-12Improve certificates role testabilitySamuli Silvius7-96/+106
Move certs source path to defaults and make other small re-factoring. Issue-ID: OOM-1694 Change-Id: Ie0a4b543b40314dc5a7772dd4667b1ad218d3543 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-03-08Merge "Refine application_pre_install_role variable usage"Michal Ptacek5-16/+20
2019-03-08Modify ansible version in docker/chrootPetr Ospalý1-1/+1
Updating to ansible version: 2.7.8 Current ansible version: 2.6.3 The current version breaks json values in playbooks. Change-Id: I9858339a08711ad921122b2e7b6ccf04d62454a3 Issue-ID: OOM-1698 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-03-08Merge "Adding postinstall section in InstallGuide"Michal Ptacek1-0/+30
2019-03-07Ignore checksum from existence check of resourcesSamuli Silvius2-1/+1
To speed up resource packages existency check, ignore checsum. This change was accidentally left out from previous commit as merging was not communicated. Issue-ID: OOM-1654 Change-Id: I567eaba49e6a5244d51187d42af719bf360b41f0 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-03-07Refine application_pre_install_role variable usageBartek Grzybowski5-16/+20
As 'application_pre_install_role' variable set in config/application_configuration.yml must stay in sync with patch role directory name defined in package.conf under APP_CONFIGURATION variable, it's name shall stay under complete user control without any variable as part of it's name. App_helm_build_targets list and app_helm_chart_name should default to 'onap' in application_configuration.yml as customizing them isn't supported at the moment. Also fixed some wording in comments/docs in relevant files. Change-Id: I82b6dd519fbc3426739a11fac1e02eb495a668c0 Issue-ID: OOM-1697 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-03-07Adding postinstall section in InstallGuideMichal Ptacek1-0/+30
Describing common issues with onap deployments into InstallGuide. Change-Id: I7b039fbc357901c8bfa1d57db69f9344eea07077 Issue-ID: OOM-1701 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-03-07Fix wrong detection of uploaded resourcesMilan Verespej3-21/+31
Issue-ID: OOM-1596 Change-Id: I091cd558f7574f49dddf4380df24e11141a4b78d Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-03-07Re-factored resources upload into roleSamuli Silvius11-164/+175
Whole functionality of resource files upload is implemented in resource-data role instead of playbook level tasks. This will make roles easier to test and make it easier to implement other OS support later. Issue-ID: OOM-1654 Change-Id: I3d3da9381b0e804f511ee854c41554b924d18883 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-03-07Merge "Replaced casablanca by tag 3.0.1-ONAP"Michal Ptacek1-6/+6
2019-03-06Disable all default repositoriesBartek Grzybowski2-8/+42
This patch allows configuring multiple repositories via 'package_repositories' dict. It also disables all default repositories not to break 'yum' operation in environment without route to Internet. Issue-ID: OOM-1632 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Change-Id: Id5e81e9d60d15393d5d2e12aef3da476a3b0d4c3
2019-03-06Remove useless deploy_package_repository flagBartek Grzybowski1-3/+0
Support for deploy_package_repository is only partial, setting it to 'false' would crash ansible on package installation from offline repository which wouldn't be configured then. Issue-ID: OOM-1632 Change-Id: I26d748505906703d1ee41ef3d310c1a14ff5066a Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-03-06Merge "Improve nginx role testability"Michal Ptacek2-12/+28
2019-03-05Merge "Add more files to .gitignore"Michal Ptacek2-0/+3
2019-03-05Merge "Re-factor nexus role to streamline playbook"Michal Ptacek10-49/+46
2019-03-05Add more files to .gitignoreBartek Grzybowski2-0/+3
Added additional files generated at packaging time to .gitignore not to mess up working tree Issue-ID: OOM-1697 Change-Id: I6c6194a7109aa1862cff0448566eff1db01c13f9 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-03-04Re-factor nexus role to streamline playbookSamuli Silvius10-49/+46
Move nexus functionality into nexus role from infrastructure playbook. This will make role easier to test and make it easier to implement other OS support later. Issue-ID: OOM-1653 Change-Id: I1af2bfef5aa4d6c7b819f5fc40f95c6e8303598c Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-03-04Merge "Use 'package_facts' module in firewall role"Michal Ptacek4-11/+13
2019-03-04Merge "Download of infra related docker images"Michal Ptacek4-5/+9
2019-03-04Merge "package-repository role to streamline playbook"Michal Ptacek4-24/+24
2019-03-04Merge "Dont crash patching on missing chart file"Michal Ptacek1-11/+25
2019-03-04Merge "Rename casablanca patch file"Petr Ospalý3-2/+2
2019-03-04Replaced casablanca by tag 3.0.1-ONAPTomáš Levora1-6/+6
As the tag 3.0.1-ONAP already exists, need to replace the branch in the related git repo list Issue-ID: OOM-1696 Change-Id: I8ebc40ee78c49caee4a42efe3b62fd791b75a149 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-03-04Merge changes from topic 'infra'Petr Ospalý3-9/+8
* changes: Save docker images based on list Fixed path to list for git repos download
2019-03-04Download of infra related docker imagesTomáš Levora4-5/+9
Fixing download and save of docker images needed for infra and loaded in runtime. Removed infra related image from regular list to not push it unnecessarily to nexus repository. Solves OOM-1669 and OOM-1682 Issue-ID: OOM-1682 Change-Id: I6f4fc0a46cdfb820eb70707f533b5ca5e977cccc Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-03-04Merge "Create setup role"Michal Ptacek3-24/+37