summaryrefslogtreecommitdiffstats
path: root/ansible/roles/chrony/molecule
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-08 16:20:24 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-08 16:20:24 +0200
commit018a6abd19c5eb32d6073c53be3a995f5fb83ed4 (patch)
tree70038def67b51a8db7ba9c8ba95707be22e06265 /ansible/roles/chrony/molecule
parentcecf6cf2aa21080105876fdcf93b26f434fb9eb4 (diff)
[MOLECULE 3.3.0] Upgrade linters Molecule setup
In 3.x.x version family of Molecule the syntax for linters invocation has been changed. Ref.: https://molecule.readthedocs.io/en/latest/configuration.html#lint Change-Id: I82d1fd996eb5853953ea6bc74dcbb88a485a2084 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/chrony/molecule')
-rw-r--r--ansible/roles/chrony/molecule/default/molecule.yml11
-rw-r--r--ansible/roles/chrony/molecule/external_time_source/molecule.yml11
-rw-r--r--ansible/roles/chrony/molecule/external_time_source_ubuntu/molecule.yml11
-rw-r--r--ansible/roles/chrony/molecule/ubuntu/molecule.yml11
4 files changed, 20 insertions, 24 deletions
diff --git a/ansible/roles/chrony/molecule/default/molecule.yml b/ansible/roles/chrony/molecule/default/molecule.yml
index a5b48674..78d6f32a 100644
--- a/ansible/roles/chrony/molecule/default/molecule.yml
+++ b/ansible/roles/chrony/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: infra_host
image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
@@ -26,13 +29,9 @@ platforms:
- kubernetes
provisioner:
name: ansible
- lint:
- name: ansible-lint
env:
ANSIBLE_ROLES_PATH: ../../../../test/roles
verifier:
name: testinfra
- lint:
- name: flake8
options:
v: 1
diff --git a/ansible/roles/chrony/molecule/external_time_source/molecule.yml b/ansible/roles/chrony/molecule/external_time_source/molecule.yml
index e38f4295..ac32f330 100644
--- a/ansible/roles/chrony/molecule/external_time_source/molecule.yml
+++ b/ansible/roles/chrony/molecule/external_time_source/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infra_host
image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
@@ -26,8 +29,6 @@ platforms:
- kubernetes
provisioner:
name: ansible
- lint:
- name: ansible-lint
env:
ANSIBLE_ROLES_PATH: ../../../../test/roles
inventory:
@@ -42,8 +43,6 @@ provisioner:
prepare: ../default/prepare.yml
verifier:
name: testinfra
- lint:
- name: flake8
options:
v: 1
directory: ../default/tests/
diff --git a/ansible/roles/chrony/molecule/external_time_source_ubuntu/molecule.yml b/ansible/roles/chrony/molecule/external_time_source_ubuntu/molecule.yml
index 6cc2854a..0fbef39b 100644
--- a/ansible/roles/chrony/molecule/external_time_source_ubuntu/molecule.yml
+++ b/ansible/roles/chrony/molecule/external_time_source_ubuntu/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infra_host-ubuntu
image: molecule-${PREBUILD_PLATFORM_DISTRO:-ubuntu}:${PREBUILD_DISTRO_VERSION:-18.04}
@@ -26,8 +29,6 @@ platforms:
- kubernetes
provisioner:
name: ansible
- lint:
- name: ansible-lint
env:
ANSIBLE_ROLES_PATH: ../../../../test/roles
inventory:
@@ -43,8 +44,6 @@ provisioner:
converge: ../external_time_source/playbook.yml
verifier:
name: testinfra
- lint:
- name: flake8
options:
v: 1
directory: ../default/tests/
diff --git a/ansible/roles/chrony/molecule/ubuntu/molecule.yml b/ansible/roles/chrony/molecule/ubuntu/molecule.yml
index e7ede8c7..a92dfa3b 100644
--- a/ansible/roles/chrony/molecule/ubuntu/molecule.yml
+++ b/ansible/roles/chrony/molecule/ubuntu/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infra_host-ubuntu
image: molecule-${PREBUILD_PLATFORM_DISTRO:-ubuntu}:${PREBUILD_DISTRO_VERSION:-18.04}
@@ -26,8 +29,6 @@ platforms:
- kubernetes
provisioner:
name: ansible
- lint:
- name: ansible-lint
env:
ANSIBLE_ROLES_PATH: ../../../../test/roles
playbooks:
@@ -35,8 +36,6 @@ provisioner:
converge: ../default/playbook.yml
verifier:
name: testinfra
- lint:
- name: flake8
options:
v: 1
directory: ../default/tests/