Skip to content

Commit

Permalink
fix: node_exporter - Add test for ProtectHome
Browse files Browse the repository at this point in the history
Add a tmpfs mount to the node_exporter testing to make sure ProtectHome
is changed.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ committed May 10, 2023
1 parent 51997ca commit b580aab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions roles/node_exporter/molecule/alternative/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b580aab

Please sign in to comment.