Code Review
/
salt-formulas
/
influxdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix wrong indentation in the Readme file
[salt-formulas/influxdb.git]
/
influxdb
/
server.sls
diff --git
a/influxdb/server.sls
b/influxdb/server.sls
index 0c310f7f584b413050ff7a115b7b0a6e23569796..06643b5e2311c519cdbf6883cd48804de1160740 100644
(file)
--- a/
influxdb/server.sls
+++ b/
influxdb/server.sls
@@
-13,11
+13,20
@@
influxdb_config:
- require:
- pkg: influxdb_packages
- require:
- pkg: influxdb_packages
+influxdb_default:
+ file.managed:
+ - name: /etc/default/influxdb
+ - source: salt://influxdb/files/default
+ - template: jinja
+ - require:
+ - pkg: influxdb_packages
+
influxdb_service:
service.running:
- enable: true
- name: {{ server.service }}
- watch:
- file: influxdb_config
influxdb_service:
service.running:
- enable: true
- name: {{ server.service }}
- watch:
- file: influxdb_config
+ - file: influxdb_default
{%- endif %}
{%- endif %}