summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/rke')
-rw-r--r--ansible/roles/rke/.yamllint1
-rw-r--r--ansible/roles/rke/molecule/default/molecule.yml11
-rw-r--r--ansible/roles/rke/molecule/etcd_storage/molecule.yml11
3 files changed, 11 insertions, 12 deletions
diff --git a/ansible/roles/rke/.yamllint b/ansible/roles/rke/.yamllint
index ad0be760..c5ae64be 100644
--- a/ansible/roles/rke/.yamllint
+++ b/ansible/roles/rke/.yamllint
@@ -1,3 +1,4 @@
+---
extends: default
rules:
diff --git a/ansible/roles/rke/molecule/default/molecule.yml b/ansible/roles/rke/molecule/default/molecule.yml
index 2e25531c..64da190f 100644
--- a/ansible/roles/rke/molecule/default/molecule.yml
+++ b/ansible/roles/rke/molecule/default/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infrastructure-server
image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
@@ -35,11 +38,7 @@ provisioner:
cluster_config_dir: /opt/onap/cluster
options:
e: "app_data_path=/opt/onap"
- lint:
- name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
- lint:
- name: flake8
diff --git a/ansible/roles/rke/molecule/etcd_storage/molecule.yml b/ansible/roles/rke/molecule/etcd_storage/molecule.yml
index bff115e5..9c9bb9b8 100644
--- a/ansible/roles/rke/molecule/etcd_storage/molecule.yml
+++ b/ansible/roles/rke/molecule/etcd_storage/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infrastructure-server
image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
@@ -45,11 +48,7 @@ provisioner:
prepare: ../default/prepare.yml
converge: ../default/playbook.yml
destroy: ../default/destroy.yml
- lint:
- name: ansible-lint
scenario:
name: etcd_storage
verifier:
name: testinfra
- lint:
- name: flake8