diff options
Diffstat (limited to 'molecule/default')
-rw-r--r-- | molecule/default/INSTALL.rst | 15 | ||||
-rw-r--r-- | molecule/default/converge.yml | 7 | ||||
-rw-r--r-- | molecule/default/molecule.yml | 27 | ||||
-rw-r--r-- | molecule/default/prepare.yml | 8 | ||||
-rw-r--r-- | molecule/default/verify.yml | 10 |
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 | ******* | ||
2 | Delegated driver installation guide | ||
3 | ******* | ||
4 | |||
5 | Requirements | ||
6 | ============ | ||
7 | |||
8 | This driver is delegated to the developer. Up to the developer to implement | ||
9 | requirements. | ||
10 | |||
11 | Install | ||
12 | ======= | ||
13 | |||
14 | This driver is delegated to the developer. Up to the developer to implement | ||
15 | requirements. | ||
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 | --- | ||
2 | dependency: | ||
3 | name: galaxy | ||
4 | driver: | ||
5 | name: docker | ||
6 | lint: | | ||
7 | set -e | ||
8 | yamllint . | ||
9 | ansible-lint | ||
10 | flake8 | ||
11 | platforms: | ||
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 | ||
20 | provisioner: | ||
21 | name: ansible | ||
22 | inventory: | ||
23 | host_vars: | ||
24 | instance: | ||
25 | netdata_installer: ${MOLECULE_NETDATA_INSTALLER:-kickstart} | ||
26 | verifier: | ||
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 | ||