summaryrefslogtreecommitdiffstats
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
2021-02-04Refactor Helm role test setupBartek Grzybowski9-12/+25
Test setup variable inclusion reworked for better sanity. General Molecule docker image is used instead of pre-built one. Change-Id: I013b9d7b92ded86220e6f2092ce75ee47b094d89 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-04Fix Helm v3 data dir setupBartek Grzybowski2-4/+8
Verifier test is also added to ensure correct plugin deployment. Change-Id: I2e43d942f39fc7ecfe34c22d84ba0f59978ec225 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-04Add tasks to setup Helm v3 on infra nodeBartek Grzybowski2-0/+15
Change-Id: I959184624f93753ff7217728c3c6011e82f91ef6 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-04Add Helm v3 test scenario to rke playbook testsBartek Grzybowski5-0/+62
Change-Id: I2d6d650110fbdc84ce7e0922239c7b219e35d5ee Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-03Change 'rke' role testing strategyBartek Grzybowski12-79/+41
So far Molecule framework setup allowed full rke cluster deployment in testing env but since rke cluster often fails to deploy in resource constrained CI environment this change switches testing strategy to only simulate 'rke up' operation. Change-Id: Ia221da6666d558e086cd24155f5bd81237d82388 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-02Workaround RKE binary download issueBartek Grzybowski1-3/+7
RKE binary download was _randomly_ failing (in ONAP's CI minion only) with a message '_ssl.c:602: The handshake operation timed out' without any easily trackable reason. Hence switching from get_url ansible module to direct 'curl' command invocation which allows better timeout handling at connection phase. Change-Id: I70d734dfd8c04ba8b092350933c97c56f74d6208 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-28Play 'chartmuseum' role in rke playbook if running with Helm v3Bartek Grzybowski1-0/+2
Change-Id: Ica4bc217178ccbaa5574036d693fa40476fb0814 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-28Fix variable inclusion order in RKE playbook testsBartek Grzybowski1-2/+2
Change-Id: Ie95d8fcb49c61f75f644ea3d04414cd6f2285efd Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-26Add Molecule test scenario to verify 'chartmuseum' role on UbuntuBartek Grzybowski1-0/+38
Change-Id: Ic3f78a9fd46bef8e3e2138d9c04850db00651b63 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-26Add 'chartmuseum' roleBartek Grzybowski9-0/+119
Added 'chartmuseum' role which runs Helm repository server using chartmuseum. Change-Id: I8745cd7e602e147fb656297e0afb8e82a5d058ff Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-26Split Helm v2 setup to separate playbookBartek Grzybowski3-56/+59
Logically splitting the application playbook to put Helm v2 and v3 specific setup actions into separate tasks file. Change-Id: I20446a196bb2687e27fdeb6a45a83565b676fc42 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-26Improve 'application' role test coverageBartek Grzybowski2-1/+10
Helm plugin installation task is now also covered Change-Id: Ib0a724de5dc1b300ea6cd27fe363b99b071d787b Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-26Add Helm v3 plugin deployment playbookBartek Grzybowski9-5/+111
Change-Id: I3999dd64dd87f163a3306b74cec88019d821759e Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-26Move Helm v2 plugin installation logic into separate playbookBartek Grzybowski5-25/+30
Change-Id: Icc767450da832d8792b7bdf33f85e5ffc97ee435 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-12-17Fix Molecule framework runner setup scriptsBartek Grzybowski1-1/+1
Ansible-lint release has to be set explicitly as the one installed by default breaks the linter execution. Change-Id: Id824fb3f4ae94cf8608736bbebb1809568193050 Issue-ID: OOM-2650 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-11-12Support setting ansible docker image name from env variableBartek Grzybowski1-1/+4
Change-Id: Ie864f8e12bb9eac02a901d93c870c4679aedba94 Issue-ID: OOM-2625 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-17Add feature to install shell autocompletion for kubectlBartek Grzybowski3-0/+28
Change-Id: I732dcd92144f9a8489a351047ab88b53ca36759e Issue-ID: OOM-2564 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-29Fix linting issues in Python scriptsBartek Grzybowski1-1/+0
Change-Id: I198340670f808d42aa6fb16de573db4a65005985 Issue-ID: INT-1667 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-28Updating RKE version to Frankfurt6.0.0-ONAPTomáš Levora2-9/+11
Updating RKE to v1.0.4 for Kubernetes 1.15.9 Issue-ID: OOM-2403 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I87c3f9f4800aa40f62d7569b4ecf3fa373a16796
2020-05-27Merge "Fix: Fix docker cli version mismatch"Tomáš Levora3-3/+6
2020-05-21Updating helm for FrankfurtTomáš Levora1-1/+1
Updaing helm to v2.16.6 as required by OOM Frankfurt Issue-ID: OOM-2363 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: Ibcf47c26dadc359cb86e039d802ff6afbef7efbd
2020-05-21Merge "Updating kubectl for Frankurt"Tomáš Levora2-2/+2
2020-05-20Fix: Fix docker cli version mismatchMateusz Pilat3-3/+6
Docker cli version is different than docker engine version & Improve output of verification job Issue-ID: OOM-2415 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: Iebf8946c4a8b3eb3abd45402d6d573e403ac9ef2
2020-05-18Merge "Adding Ubuntu support in Ansible - vncserver role"Bartek Grzybowski2-0/+40
2020-05-18Adding Ubuntu support in Ansible - vncserver roleJan Benedikt2-0/+40
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in vncserver role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: Ie57885d30166f319629e160c38a9053c18837515
2020-05-18Adding Ubuntu support in Ansible - package-repository roleJan Benedikt9-23/+108
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in package-repository role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I85d4e6857536fa06c7eb4f4042c1ed64fcbf903e
2020-05-14Updating kubectl for FrankurtTomáš Levora2-2/+2
Updating kubectl to v1.15.11 as required for Frankfurt Issue-ID: OOM-2404 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I4165271fea9b8024e68f9d395f257e858bd605d7
2020-05-14Fix lint errors in package-repository-check roleJan Benedikt9-4/+165
In package-repository-check was changed command module to service module due to lint failing. Failing was caused by errors: [301] Commands should not change things if nothing needs doing [303] service used in place of service module Added molecule test. Issue-ID: OOM-2395 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I6cfdfe920eabfb9a0c43cc9ba4ffcd81df1d6852
2020-05-04Change name of clashing 'packages' variablesBartek Grzybowski2-2/+2
This fixes a regression from b6455ee: 'packages' variable is injected in 'firewall' role by package_facts module with a higher priority than variable of same name defined in 'docker' roles' defaults. Change-Id: I41e0f992ceaab871ae38fb1b8211fd71c042c9b2 Issue-ID: INT-1578 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-04Merge "Verify required packages were installed on target host"Bartek Grzybowski1-0/+11
2020-04-30Verify required packages were installed on target hostBartek Grzybowski1-0/+11
Change-Id: Ic074cbabfee614daf7862466a1bbafc9ff0fb6be Issue-ID: INT-1576 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-04-30Adding Ubuntu support in Ansible - application role install makeJan Benedikt1-0/+7
Helm using "make" package for building local helm repository. In Ubuntu distribution is this package missing so is necessary to install it. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I808dcb57396caf82a60d17f50515bae59b5d85ca
2020-04-30Merge "Adding Ubuntu support in Ansible - package-repository-check role"Bartek Grzybowski2-1/+34
2020-04-30Merge "Adding Ubuntu support in Ansible - helm role"Bartek Grzybowski3-0/+41
2020-04-30Adding Ubuntu support in Ansible - package-repository-check roleJan Benedikt2-1/+34
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in package-repository-check role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I9dcdbab00169ccfc13a10c1d9b6ec9cf10572688
2020-04-30Adding Ubuntu support in Ansible - helm roleJan Benedikt3-0/+41
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in helm role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: If28ee7674c4f9eebc4420f4dbbb1385a408d3802
2020-04-30Merge "Adding Ubuntu support in Ansible - certificates role"Bartek Grzybowski9-4/+92
2020-04-30Merge "Adding Ubuntu support in Ansible - docker role"Bartek Grzybowski5-18/+66
2020-04-30Merge "Adding Ubuntu support in Ansible - chrony role"Bartek Grzybowski2-2/+8
2020-04-30Adding Ubuntu support in Ansible - chrony roleJan Benedikt2-2/+8
Extending ansible playbooks of ubuntu support. Change the order in role calls. Chrony role was moved due to its absence in Ubuntu distribution. Firstly is necessary to initialize package repository and after that install Chrony. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: Icadf8e106fba4a369148db0959dcac07a79257c2
2020-04-29Adding Ubuntu support in Ansible - certificates roleJan Benedikt9-4/+92
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in certificates role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I82f0f8590812c277f2969d71f95fb6475c72f7c8
2020-04-23Adding Ubuntu support in Ansible - docker roleJan Benedikt5-18/+66
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in docker role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I4786dcd4b2de3f8d189db3b619c3d75315302506
2020-04-23Merge "Adding Ubuntu support in Ansible - resource-data role"Bartek Grzybowski2-0/+52
2020-04-23Adding Ubuntu support in Ansible - resource-data roleJan Benedikt2-0/+52
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in resource-data role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I7b6852cb235a2983f5cc6eb6a3bfa122d6a1fd2e
2020-04-23Adding Ubuntu support in Ansible - nginx roleJan Benedikt2-2/+40
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in nginx role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I5f6a5aedfd9a2e17d3b1bb711d3e85a242b5e2d5
2020-04-22Merge "Adding Ubuntu support in Ansible - kubectl role"Bartek Grzybowski2-0/+39
2020-04-21Adding Ubuntu support in Ansible - application roleJan Benedikt1-0/+64
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in application role. Issue-ID: OOM-1671 Change-Id: I7662506263a143cb7193583d2058766ac7829d93 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
2020-04-21Merge "Adding Ubuntu support in Ansible - setup role"Bartek Grzybowski1-0/+24
2020-04-21Merge "Adding Ubuntu support in Ansible - dns role"Bartek Grzybowski3-0/+49
2020-04-21Merge "Adding Ubuntu support in Ansible - nfs role"Tomáš Levora6-8/+84