Skip to content

Instantly share code, notes, and snippets.

@jjwatt
Created November 15, 2018 22:34
Show Gist options
  • Save jjwatt/506ae77b2cbffc1079869c0a44e2a55a to your computer and use it in GitHub Desktop.
Save jjwatt/506ae77b2cbffc1079869c0a44e2a55a to your computer and use it in GitHub Desktop.
molecule base configs and scenario configs
---
# project/roles/your-role/molecule/default/molecule.yml
dependency:
name: galaxy
driver:
name: docker
provisioner:
name: ansible
log: True
lint:
name: ansible-lint
verifier:
name: testinfra
lint:
name: flake8
--
# project/base-molecule.yml
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
options:
config-data:
extends: default
rules:
truthy: disable
platforms:
- name: instance
image: solita/ubuntu-systemd:xenial
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /run
- /run/lock
- /tmp
stop_signal: "SIGRTMIN+3"
security_opts:
- seccomp=unconfined
env:
container: docker
provisioner:
name: ansible
log: True
lint:
name: ansible-lint
verifier:
name: testinfra
lint:
name: flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment