main.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. # Usage: install_slurm_exporter.yml
  16. installation_dir: "/var/lib/"
  17. slurm_exporter_inst_dir: "/var/lib/slurm-exporter"
  18. go_pack_url: "https://dl.google.com/go/go1.15.linux-amd64.tar.gz"
  19. extended_path: "{{ installation_dir }}/go/bin"
  20. go_exec_path: "{{ installation_dir }}/go/bin/go"
  21. slurm_exporter_git_repo: "https://github.com/vpenso/prometheus-slurm-exporter.git"
  22. go_modules_path: "{{ slurm_exporter_inst_dir }}/go/modules"
  23. slurm_exporter_exec: "{{ slurm_exporter_inst_dir }}/bin/prometheus-slurm-exporter"
  24. system_path: "/usr/bin"
  25. stable_commit_id: "00a7dee"
  26. #Usage: install_prometheus.yml
  27. prometheus_git_repo: "https://github.com/prometheus/prometheus/releases/download/v2.23.0/prometheus-2.23.0.linux-amd64.tar.gz"
  28. prometheus_inst_path: "/var/lib/prometheus-2.23.0.linux-amd64/"
  29. prometheus_exec_path: "{{ prometheus_inst_path }}/prometheus"
  30. system_local_path: "/usr/local/bin"
  31. prometheus_config_file: "{{ prometheus_inst_path }}/prometheus.yml"
  32. opensuse_os_name: "openSUSE Leap"
  33. #Usage: start_service.yml
  34. file_permission: "0755"
  35. systemd_path_dest: "/etc/systemd/system/"
  36. slurm_exporter_port: "8081"
  37. #Usage: configure_prometheus_pod.yml
  38. slurm_config_file: "slurm_exporter_config.yaml"
  39. #Usage: configure_grafana.yml
  40. prometheus_ip: http://localhost:9090
  41. nginx_conf_file_path: /etc/nginx/nginx.conf
  42. nginx_conf_file_mode: 2534
  43. grafana_svc_ip: "{{ lookup('ini', 'ip section=grafana_svc file=../../k8s_start_services/files/grafana_svc_details.ini') }}"
  44. grafana_svc_port: "{{ lookup('ini', 'port section=grafana_svc file=../../k8s_start_services/files/grafana_svc_details.ini') }}"
  45. slurm_dashboard_json_files:
  46. - slurm-dashboard.json
  47. - slurm-dashboard-node-exporter.json