From 18b128db79861b98491a66664f144e56acebf31b Mon Sep 17 00:00:00 2001 From: SuperQ Date: Wed, 10 May 2023 10:16:50 +0200 Subject: [PATCH] fix: node_exporter - Add test for ProtectHome Add a tmpfs mount to the node_exporter testing to make sure ProtectHome is changed. Signed-off-by: SuperQ --- .yamllint.yml | 1 + .../node_exporter/molecule/alternative/prepare.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.yamllint.yml b/.yamllint.yml index 819ae4be0..fc1f385bc 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -24,3 +24,4 @@ rules: ignore: | changelogs/.plugin-cache.yaml + changelogs/changelog.yaml diff --git a/roles/node_exporter/molecule/alternative/prepare.yml b/roles/node_exporter/molecule/alternative/prepare.yml index b56b97c1d..900c61a18 100644 --- a/roles/node_exporter/molecule/alternative/prepare.yml +++ b/roles/node_exporter/molecule/alternative/prepare.yml @@ -54,3 +54,17 @@ csr_path: "/tmp/tls.csr" privatekey_path: "/tmp/tls.key" provider: selfsigned + + - name: Create test mount directory + ansible.builtin.file: + path: /home/test + state: directory + owner: root + group: root + mode: 0755 + + - name: Mount test filesystem + ansible.posix.mount: + path: /home/test + src: tmpfs + fstype: tmpfs