Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 0.9.x influxdb version #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 4 additions & 20 deletions influxdb/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,34 +38,18 @@ influxdb_confdir:

influxdb_config:
file.managed:
- name: /etc/influxdb/config.toml
- source: salt://influxdb/templates/config.toml.jinja
- name: /etc/influxdb/influxdb.conf
- source: salt://influxdb/templates/influxdb.conf.jinja
- user: root
- group: root
- mode: 644
- template: jinja

influxdb_init:
file.managed:
- name: /etc/init.d/influxdb
- source: salt://influxdb/templates/influxdb.service.jinja
- user: root
- group: root
- mode: 755
- template: jinja

influxdb_user:
user.present:
- name: influxdb
- fullname: InfluxDB Service User
- shell: /bin/false
- home: /opt/influxdb

influxdb_log:
file.directory:
- name: {{ influxdb["logging"]["directory"] }}
- user: influxdb
- group: influxdb
- user: root
- group: root
- mode: 755

influxdb_logrotate:
Expand Down
13 changes: 5 additions & 8 deletions influxdb/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@
{%
set influxdb = {
"bind-address" : "0.0.0.0",
"influxdb_data": "/var/lib/influxdb",
"logging" : {
"level" : "info",
"directory": "/var/log/influxdb"
},
"admin" : {
"port" : "8083"
},
"api" : {
"port" : "8086"
},
"raft" : {
"port" : "8090"
"meta" : {
"port" : "8088"
},
"protobuf" : {
"port" : "8083"
"http" : {
"port" : "8086"
}
}
%}
Expand Down
182 changes: 0 additions & 182 deletions influxdb/templates/config.toml.jinja

This file was deleted.

Loading