diff options
| author | Colin Wilk <colin.wilk@tum.de> | 2023-05-26 19:59:24 +0200 |
|---|---|---|
| committer | Colin Wilk <colin.wilk@tum.de> | 2023-05-26 19:59:24 +0200 |
| commit | 9db96602063e6ceb3cb8e819a8e942f28061bb42 (patch) | |
| tree | 2dd4703f368a28e1d41dd9fd279c9bb475d12697 /defaults/main.yml | |
| download | ansible-role-prometheus-target-9db96602063e6ceb3cb8e819a8e942f28061bb42.tar.gz ansible-role-prometheus-target-9db96602063e6ceb3cb8e819a8e942f28061bb42.zip | |
init
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
Diffstat (limited to 'defaults/main.yml')
| -rw-r--r-- | defaults/main.yml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..034ca13 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,54 @@ +--- +prometheus_target_host: prometheus # FIXME: Non default argument_spec + +prometheus_target_strategy: lineinfile + + +################################################################################ +# handler configuration +################################################################################ + +prometheus_target_handler_command_enabled: false +prometheus_target_handler_command_become: true +# prometheus_target_handler_command_argv: +# prometheus_target_handler_command_chdir: +# prometheus_target_handler_command_cmd: +# prometheus_target_handler_command_creates: +# prometheus_target_handler_command_free_form: +# prometheus_target_handler_command_removes: +# prometheus_target_handler_command_stdin: +# prometheus_target_handler_command_stdin_add_newline: + +prometheus_target_handler_shell_enabled: false +prometheus_target_handler_shell_become: true +# prometheus_target_handler_shell_chdir: +# prometheus_target_handler_shell_cmd: +# prometheus_target_handler_shell_creates: +# prometheus_target_handler_shell_executable: +# prometheus_target_handler_shell_free_form: +# prometheus_target_handler_shell_removes: +# prometheus_target_handler_shell_stdin: +# prometheus_target_handler_shell_stdin_add_newline: + +################################################################################ +# lineinfile strategy configuration +################################################################################ + +prometheus_target_strategy_lineinfile_prefix: ' - ' +prometheus_target_strategy_lineinfile_suffix: '' + +################################################################################ +# Exporter configuration +################################################################################ + +prometheus_target_exporter_defaults: + node_exporter: + path: /opt/prometheus/targets.yml + host: '{{ inventory_hostname }}' + +prometheus_target_exporter: [] + # - id: node_exporter + # path: asd + # hosts: ['{{ inventory_hostname }}'] + +default_hostname: '{{ inventory_hostname }}' # TODO: Implement |