From b580aab0be3480dddf5410afb89c261e3c20d450 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 --- .../node_exporter/molecule/alternative/prepare.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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