summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Benedikt <j.benedikt@partner.samsung.com>2020-02-10 14:45:09 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-04-21 13:11:27 +0000
commitc407c460c47bf3b38def4cd91c3d46ff99b2f2ff (patch)
tree6e837a23d566e6f30a9214d143c01a0ae893a8aa
parentf359a7aef1807b87c27260c5a828a8b6cad7408a (diff)
Adding Ubuntu support in Ansible - application role
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>
-rw-r--r--ansible/roles/application/molecule/ubuntu/molecule.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/ansible/roles/application/molecule/ubuntu/molecule.yml b/ansible/roles/application/molecule/ubuntu/molecule.yml
new file mode 100644
index 00000000..2fde35a2
--- /dev/null
+++ b/ansible/roles/application/molecule/ubuntu/molecule.yml
@@ -0,0 +1,64 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint:
+ name: yamllint
+platforms:
+ - name: instance
+ image: ubuntu:18.04
+ dockerfile: ../default/Dockerfile.j2
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ inventory:
+ group_vars:
+ all:
+ app_name: moleculetestapp
+ app_data_path: "/opt/{{ app_name }}"
+ app_helm_release_name: "{{ app_name }}"
+ app_kubernetes_namespace: "{{ app_name }}"
+ app_helm_charts_install_directory: application/helm_charts
+ app_helm_plugins_directory: "{{ app_helm_charts_install_directory}}/helm/plugins/"
+ app_helm_charts_infra_directory: "{{ app_data_path }}/helm_charts"
+ helm_bin_dir: /usr/local/bin
+ app_helm_build_targets:
+ - all
+ - onap
+ app_helm_chart_name: "{{ app_name }}"
+ lint:
+ name: ansible-lint
+ playbooks:
+ prepare: ../default/prepare.yml
+ converge: ../default/playbook.yml
+ cleanup: ../default/cleanup.yml
+scenario:
+ name: ubuntu
+ test_sequence:
+ - lint
+ - cleanup
+ - destroy
+ - dependency
+ - syntax
+ - create
+ - prepare
+ - converge
+ # - idempotence
+ # --> Action: 'idempotence'
+ # ERROR: Idempotence test failed because of the following tasks:
+ # * [instance] => application : Get helm dir
+ # * [instance] => application : Helm init and upgrade
+ # * [instance] => application : Helm Serve
+ # * [instance] => application : Helm Add Repo
+ # * [instance] => application : Helm Install application moleculetestapp
+ - side_effect
+ - verify
+ - cleanup
+ - destroy
+verifier:
+ name: testinfra
+ lint:
+ name: flake8
+ directory: ../default/tests/