Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

influx.yml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. # Installs InfluxDB and Telegraf as described in:
  3. # https://docs.influxdata.com/influxdb/v1.7/introduction/installation
  4. # https://docs.influxdata.com/influxdb/v1.7/administration/config/
  5. # https://docs.influxdata.com/telegraf/v1.10/introduction/installation/
  6. # https://docs.influxdata.com/telegraf/v1.10/administration/configuration/
  7. - name: Ensure repository key for InfluxDB is in place
  8. apt_key: url=https://repos.influxdata.com/influxdb.key state=present
  9. tags:
  10. - dependencies
  11. - name: Add InfluxDB repository
  12. apt_repository: repo="deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable"
  13. tags:
  14. - dependencies
  15. - name: Install InfluxDB and Telegraf from official repository
  16. apt:
  17. name: "{{ packages }}"
  18. state: present
  19. update_cache: yes
  20. vars:
  21. packages:
  22. - influxdb
  23. - telegraf
  24. tags:
  25. - dependencies
  26. - name: Configure InfluxDB
  27. template:
  28. src=etc_influxdb_influxdb.j2
  29. dest=/etc/influxdb/influxdb.conf
  30. owner=root
  31. group=root
  32. notify: restart influxdb
  33. - name: Create InfluxDB data directories
  34. file: state=directory path={{ item }} owner=influxdb group=influxdb
  35. with_items:
  36. - /data/influxdb
  37. - /data/influxdb/meta
  38. - /data/influxdb/data
  39. - /data/influxdb/wal
  40. - name: Configure Telegraf
  41. template:
  42. src=etc_telegraf_telegraf.j2
  43. dest=/etc/telegraf/telegraf.conf
  44. owner=root
  45. group=root
  46. notify: restart telegraf
  47. - name: Register new InfluxDB and Telegraf service
  48. systemd: name={{ item }} daemon_reload=yes enabled=yes
  49. with_items:
  50. - influxdb
  51. - telegraf
  52. - name: Start new InfluxDB and Telegraf instance
  53. service: name={{ item }} state=started
  54. with_items:
  55. - influxdb
  56. - telegraf