Skip to content
Snippets Groups Projects
Commit a5ddf683 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Update to molecule v3

parent 102073a7
No related branches found
No related tags found
No related merge requests found
Pipeline #40310 passed
exclude_paths:
- molecule/default/create.yml
skip_list:
- '602'
- '204'
- '208'
- '106'
[flake8] [flake8]
ignore = E501 ignore = E501,W503,E203,E402
---
extends: default extends: default
rules: rules:
......
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
...@@ -3,12 +3,13 @@ dependency: ...@@ -3,12 +3,13 @@ dependency:
name: galaxy name: galaxy
options: options:
role-file: roles/requirements.yml role-file: roles/requirements.yml
lint: lint: |
name: yamllint set -e
yamllint .
ansible-lint
flake8
provisioner: provisioner:
name: ansible name: ansible
lint:
name: ansible-lint
playbooks: playbooks:
converge: ../../playbook.yml converge: ../../playbook.yml
inventory: inventory:
...@@ -19,8 +20,6 @@ scenario: ...@@ -19,8 +20,6 @@ scenario:
name: default name: default
verifier: verifier:
name: testinfra name: testinfra
lint:
name: flake8
driver: driver:
name: vagrant name: vagrant
provider: provider:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment