-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmolecule.yml
74 lines (62 loc) · 1.58 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
---
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
goss_dir: tests/goss
goss_playbook: verifier.yml
# directories to ignore when doing trailing whitespace checks on files during verify command
ignore_paths:
- .git
- .vagrant
- .molecule
# directory containing group_vars to use with ansible
group_vars: tests/group_vars
verifier:
name: goss
# ansible related configuration
ansible:
playbook: tests/playbook.yml
dependency:
name: galaxy
driver:
name: docker
docker:
containers:
- name: fluentd.cont
ansible_groups:
- fluentd
image: geerlingguy/docker-debian9-ansible
image_version: latest
privileged: True
cap_add:
- SYS_ADMIN
volume_mounts:
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
command: '/lib/systemd/systemd'
# configuration options for the internal call to vagrant
vagrant:
# molecule's --platform option will look for these names
raw_config_args:
- "landrush.enabled = true"
- "landrush.tld = 'vm'"
- "landrush.guest_redirect_dns = false"
- "vm.network 'forwarded_port', guest: 8080, host: 9999"
platforms:
- name: Debian9
box: debian/stretch64
providers:
- name: virtualbox
type: virtualbox
options:
memory: 256
cpus: 1
instances:
- name: fluentd.vm
ansible_groups:
- fluentd
interfaces:
- network_name: private_network
type: dhcp
auto_config: true