summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application
AgeCommit message (Collapse)AuthorFilesLines
2019-12-06Archive helm_charts with command moduleOndřej Šmalec1-3/+6
Due to bug in ansible archive module empty files are not added into tar file. Hence kibana-onborading.json missing in helm_charts on infra node. Changing archive module into command module to tar helm_charts. Issue-ID: OOM-2231 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I5527bd0f52976a93ac2861d9de010fbb79eb97fd
2019-07-12Replace jinja for with filter expression in helm deploy callMichal Zegan1-2/+2
This replaces jinja for constructions used to add helm arguments with jinja filter usage. Change-Id: Ia47635466f4a9251d1f33a42080d3538fc52587d Issue-ID: OOM-1911 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-07-08Modify the way override worksMichal Zegan3-7/+22
Now the generated app_helm_override_file and the list of helm overrides is separate. The former is to contain things like user provided overrides, the latter is the list of absolute paths to preexisting helm value files. The playbook joins all that into a final list of override files that is then passed to helm. Change-Id: I8b8ded38b39aa9a75e55fc63fa0e11b986556cb8 Issue-ID: OOM-1951 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-14Merge changes from topic "OOM-1910"Petr Ospalý6-3/+63
* changes: Clean application role mocked artifacts directories Add custom patch role scenario to 'application' role
2019-06-07Merge "Replace 'with_items' loop statements with 'loop' keyword"Samuli Silvius1-1/+1
2019-06-05Clean application role mocked artifacts directoriesBartek Grzybowski3-1/+7
Directories created by Molecule tests were left in files tree and not cleaned up. This patch adds a task to shred them after test invocation. Change-Id: If745cfc45de2f73db5be1696a16a185ff2a625bf Issue-ID: OOM-1910 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-05Add custom patch role scenario to 'application' roleBartek Grzybowski4-2/+56
This adds test case for when application_pre_install_role and application_post_install_role are set to custom role; by default they are empty. Code condition coverage is increased. Change-Id: I14e59e15cf3ead0459374b5777f8ee03fe75d7bd Issue-ID: OOM-1910 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-04Replace 'with_items' loop statements with 'loop' keywordBartek Grzybowski1-1/+1
As of Ansible 2.5 'loop' keyword is a recommended way for looping statements instead of 'with_dict'. Change-Id: I19e00cc27e13955e2056840fd4ce99841bc824ad Issue-ID: OOM-1887 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-04Adapting to Dublin realaseroot2-1/+3
In Dublin: First project has taken ownership of own helm charts, oom repository must be obtained with subrepositories. By default no applications are enabled, introducing a way to submit more override files in to installer Issue-ID: OOM-1861 Signed-off-by: root <m.pilat@partner.samsung.com> Change-Id: I1724de6b87bd0e9d17df4d0f55615a3f1c439d40
2019-05-29Add support for extra helm install argumentsPetr Ospalý3-1/+5
Change-Id: Ie0b4e812acf6fba4e4b8f082533ab2f998456095 Issue-ID: OOM-1877 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-05-16Molecule tests for application role.Samuli Silvius8-8/+133
Issue-ID: OOM-1812 Change-Id: Ifb6f5a10afb4014b20be77a4141371e561d346ce Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-04-01Improve application role testabilitySamuli Silvius7-0/+174
Remove different phases for application role as those are supposed to run after each other anyway from playbook and pre/post steps can be disabled by other means. Enable Helm override file generation customization by delegating it to separate role. Separate Helm file transfer to own module. NOTE: install.yml with all Helm commands (shell/command) is not idempotent and should be fixed with separate commit. Issue-ID: OOM-1655 Change-Id: Ib29773c4d64a0529c71c3f93c2af7265ae94059f Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>