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 Oct 27, 2023
1 parent 9503b96 commit 39f6702
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roles/node_exporter/molecule/alternative/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@
dest: "{{ node_exporter_tls_server_config.cert_file }}"
- src: "/tmp/tls.key"
dest: "{{ node_exporter_tls_server_config.key_file }}"

- name: Create test mount directory
ansible.builtin.file:
path: /home/test
state: directory
owner: root
group: root
mode: 0755

- name: Mount test filesystem

Check failure on line 88 in roles/node_exporter/molecule/alternative/prepare.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

syntax-check[specific]

couldn't resolve module/action 'ansible.posix.mount'. This often indicates a misspelling, missing collection, or incorrect module path.
ansible.posix.mount:
path: /home/test
src: tmpfs
fstype: tmpfs
state: mounted

0 comments on commit 39f6702

Please sign in to comment.