forked from idealista/airflow-role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
molecule.yml
95 lines (79 loc) · 2.23 KB
/
molecule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
molecule:
# directory in CWD to place all temp files, etc.
molecule_dir: .molecule
# where temporary state will be stored (lives under molecule_dir)
state_file: state
# name of temporary vagrantfile created during runs (lives under molecule_dir)
vagrantfile_file: vagrantfile
# directories to ignore when doing trailing whitespace checks on files during verify command
ignore_paths:
- .git
- .vagrant
- .molecule
# directory to look for testinfra tests
testinfra_dir: tests
# directory containing group_vars to use with ansible
group_vars: ../tests/group_vars
dependency:
name: galaxy
# ansible related configuration
ansible:
playbook: tests/playbook.yml
test:
sequence:
- destroy
- syntax
- create
- converge
- verify
- idempotence
# configuration options for the internal call to vagrant
vagrant:
raw_config_args:
- "landrush.enabled = true"
- "landrush.tld = 'vm'"
- "landrush.guest_redirect_dns = true"
# molecule's --platform option will look for these names
platforms:
- name: Debian9
box: debian/stretch64
providers:
- name: virtualbox
type: virtualbox
options:
memory: 1024
cpus: 4
instances:
- name: airflow.vm
ansible_groups:
- airflow
interfaces:
- network_name: private_network
type: dhcp
auto_config: true
docker:
containers:
- name: airflow.vm
ansible_groups:
- airflow
# We are using this image because the default Debian image has
# Python 2.7.9 and the playbook won't deploy
image: python
image_version: 2.7.13-jessie
# All these parameters are needed for Docker testing with systemd
privileged: True
cap_add:
- SYS_ADMIN
volume_mounts:
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
command: '/lib/systemd/systemd'
verifier:
name: testinfra
options:
# We have to override these options because, when Docker driver selected,
# Testinfra uses Docker as backend connection instead of Ansible and the
# fixture in tests/test_ansible.yml won't work and neither will testinfra
# find the containers
connection: ansible
ansible-inventory: .molecule/ansible_inventory