{%- from "influxdb/map.jinja" import server with context %}
+{% from "linux/map.jinja" import system with context %}
+
{%- if server.enabled %}
+linux_packages:
+ pkg.installed:
+ - pkgs: {{ system.pkgs }}
+
+include:
+ - linux.system.repo
+
influxdb_packages:
pkg.installed:
- names: {{ server.pkgs }}
# This delay is needed before being able to send data to server to create
# users and databases.
- init_delay: 5
+ {%- if grains.get('noservices') %}
+ - onlyif: /bin/false
+ {%- endif %}
- watch:
- file: influxdb_config
- file: influxdb_default