mirror of
https://github.com/Dannecron/netology-devops-ansible-vector.git
synced 2025-12-25 22:42:34 +03:00
add molecule testing against centos:7
This commit is contained in:
45
molecule/default/molecule.yml
Normal file
45
molecule/default/molecule.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
|
||||
lint: |
|
||||
yamllint .
|
||||
ansible-lint
|
||||
platforms:
|
||||
- name: centos_7
|
||||
image: centos:7
|
||||
privileged: true
|
||||
command: /usr/sbin/init
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup
|
||||
env:
|
||||
ANSIBLE_USER: ansible
|
||||
SUDO_GROUP: wheel
|
||||
DEPLOY_GROUP: deployer
|
||||
container: docker
|
||||
provisioner:
|
||||
name: ansible
|
||||
verifier:
|
||||
name: ansible
|
||||
|
||||
scenario:
|
||||
name: default
|
||||
test_sequence:
|
||||
- lint
|
||||
- destroy
|
||||
# - dependency
|
||||
- syntax
|
||||
- create
|
||||
# - prepare
|
||||
- converge
|
||||
- idempotence
|
||||
# - side_effect
|
||||
- verify
|
||||
- destroy
|
||||
Reference in New Issue
Block a user