812643507e
* [NEW]: added Molecule support * [UPDATE]: fix linting errors * [UPDATE]: Fixed missing smbclient dependency in travis config file * Changed container name; added nmblookup version check * [UPDATE]: Added samba-testsuite package in travis.yml
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
---
|
|
dependency:
|
|
name: galaxy
|
|
driver:
|
|
#Specifies the driver that should be used. Podman should also work
|
|
name: docker
|
|
lint: |
|
|
yamllint .
|
|
ansible-lint --exclude=molecule/default/verify.yml
|
|
platforms:
|
|
#Set name and hostname
|
|
- name: smb1
|
|
hostname: smb1
|
|
#Specify which image should be used. Geerlingguys images are Ansible compatible and have Systemd installed
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
|
#Command to execute when the container starts
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
#Volumes to mount within the container. Important to enable systemd
|
|
volumes:
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
|
#Give extended privileges to the container. Necessary for Systemd to operate within the container.
|
|
# DO NOT use extended privileges in a production environment!
|
|
privileged: true
|
|
#Allocate pseudo-TTY
|
|
tty: True
|
|
environment:
|
|
container: docker
|
|
|
|
provisioner:
|
|
name: ansible
|
|
#Runs the verify.yml playbook. Testinfra is also a supported method. Check the Molecule documention for more information.
|
|
verifier:
|
|
name: ansible
|