Skip to content

Commit

Permalink
Add node exporter extra args value (#287)
Browse files Browse the repository at this point in the history
for easy addable args like in eth el and cl roles

---------

Signed-off-by: pippinAintEasy <[email protected]>
  • Loading branch information
PippinAintEasy-B authored Nov 17, 2024
1 parent 54f9765 commit 381433d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/node_exporter/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ node_exporter_container_volumes:
node_exporter_container_stop_timeout: "30"
node_exporter_container_networks:
- name: "host"
node_exporter_container_command_extra_args: []
node_exporter_container_command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
Expand Down
6 changes: 5 additions & 1 deletion roles/node_exporter/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@
volumes: "{{ node_exporter_container_volumes }}"
env: "{{ node_exporter_container_env }}"
networks: "{{ node_exporter_container_networks }}"
command: "{{ node_exporter_container_command }} "
command: >-
{{
node_exporter_container_command +
node_exporter_container_command_extra_args
}}

0 comments on commit 381433d

Please sign in to comment.