aboutsummaryrefslogtreecommitdiffhomepage
path: root/molecule/default
diff options
context:
space:
mode:
Diffstat (limited to 'molecule/default')
-rw-r--r--molecule/default/INSTALL.rst15
-rw-r--r--molecule/default/converge.yml7
-rw-r--r--molecule/default/molecule.yml27
-rw-r--r--molecule/default/prepare.yml8
-rw-r--r--molecule/default/verify.yml10
5 files changed, 67 insertions, 0 deletions
diff --git a/molecule/default/INSTALL.rst b/molecule/default/INSTALL.rst
new file mode 100644
index 0000000..c615318
--- /dev/null
+++ b/molecule/default/INSTALL.rst
@@ -0,0 +1,15 @@
1*******
2Delegated driver installation guide
3*******
4
5Requirements
6============
7
8This driver is delegated to the developer. Up to the developer to implement
9requirements.
10
11Install
12=======
13
14This driver is delegated to the developer. Up to the developer to implement
15requirements.
diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml
new file mode 100644
index 0000000..20810f0
--- /dev/null
+++ b/molecule/default/converge.yml
@@ -0,0 +1,7 @@
1---
2- name: Converge
3 hosts: all
4 tasks:
5 - name: "Include netdata-straight"
6 include_role:
7 name: "netdata_straight"
diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml
new file mode 100644
index 0000000..82a338d
--- /dev/null
+++ b/molecule/default/molecule.yml
@@ -0,0 +1,27 @@
1---
2dependency:
3 name: galaxy
4driver:
5 name: docker
6lint: |
7 set -e
8 yamllint .
9 ansible-lint
10 flake8
11platforms:
12 - name: instance
13 image: jrei/systemd-${MOLECULE_OS:-ubuntu:20.04}
14 privileged: true
15 command: /lib/systemd/systemd
16 tmpfs:
17 - /run
18 volumes:
19 - /sys/fs/cgroup:/sys/fs/cgroup:ro
20provisioner:
21 name: ansible
22 inventory:
23 host_vars:
24 instance:
25 netdata_installer: ${MOLECULE_NETDATA_INSTALLER:-kickstart}
26verifier:
27 name: ansible
diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml
new file mode 100644
index 0000000..99ab4e9
--- /dev/null
+++ b/molecule/default/prepare.yml
@@ -0,0 +1,8 @@
1- name: Prepare
2 hosts: all
3 tasks:
4 - name: Update apt cache
5 apt:
6 update_cache: yes
7 become: true
8 when: ansible_os_family == 'Debian'
diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml
new file mode 100644
index 0000000..79044cd
--- /dev/null
+++ b/molecule/default/verify.yml
@@ -0,0 +1,10 @@
1---
2# This is an example playbook to execute Ansible tests.
3
4- name: Verify
5 hosts: all
6 gather_facts: false
7 tasks:
8 - name: Example assertion
9 assert:
10 that: true