This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
forked from idealista/grafana_role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
molecule.yml
93 lines (78 loc) · 2.03 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
---
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 goss tests
goss_dir: tests/goss
goss_playbook: verifier.yml
# directory containing group_vars to use with ansible
group_vars: ../tests/group_vars
test:
sequence:
- destroy
- syntax
- create
- converge
#- idempotence
- verify
dependency:
name: galaxy
requirements_file: tests/requirements.yml
# ansible related configuration
ansible:
playbook: tests/playbook.yml
# configuration options for the internal call to vagrant
vagrant:
raw_config_args:
- "hostmanager.enabled = true"
# Enable for debug purpose
#- "hostmanager.manage_host = true"
- "hostmanager.manage_guest = true"
- "hostmanager.ignore_private_ip = false"
- "hostmanager.include_offline = true"
# molecule's --platform option will look for these names
platforms:
- name: Debian9
box: debian/stretch64
- name: Debian8
box: debian/jessie64
providers:
- name: virtualbox
type: virtualbox
options:
memory: 512
cpus: 1
instances:
- name: grafana.vm
ansible_groups:
- grafana
interfaces:
- network_name: private_network
type: static
ip: 172.28.128.5
auto_config: true
docker:
containers:
- name: grafana.cont
ansible_groups:
- grafana
dockerfile: tests/Dockerfile
image: debian9-testinfra
image_version: latest
privileged: True
cap_add:
- SYS_ADMIN
volume_mounts:
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
command: '/lib/systemd/systemd'
verifier:
name: goss