Skip to content

Commit

Permalink
Merge pull request #4 from eole/feature/drop-custom-module
Browse files Browse the repository at this point in the history
feat(config): salt has a module to serialize to TOML
  • Loading branch information
myii authored Mar 10, 2020
2 parents a997b96 + db7098e commit 75e29e5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 23 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,29 @@ jobs:
# the `platforms` defined in `kitchen.yml`
- env: INSTANCE=default-debian-10-master-py3
# - env: INSTANCE=default-ubuntu-1804-master-py3
# - env: INSTANCE=default-centos-8-master-py3
# - env: INSTANCE=default-fedora-31-master-py3
- env: INSTANCE=default-centos-8-master-py3
- env: INSTANCE=default-fedora-31-master-py3
# - env: INSTANCE=default-opensuse-leap-151-master-py3
# - env: INSTANCE=default-amazonlinux-2-master-py3
# - env: INSTANCE=default-arch-base-latest-master-py2
# - env: INSTANCE=default-debian-10-2019-2-py3
# - env: INSTANCE=default-debian-9-2019-2-py3
- env: INSTANCE=default-ubuntu-1804-2019-2-py3
- env: INSTANCE=default-centos-8-2019-2-py3
- env: INSTANCE=default-fedora-31-2019-2-py3
# - env: INSTANCE=default-centos-8-2019-2-py3
# - env: INSTANCE=default-fedora-31-2019-2-py3
# - env: INSTANCE=default-opensuse-leap-151-2019-2-py3
# - env: INSTANCE=default-centos-7-2019-2-py2
- env: INSTANCE=default-centos-7-2019-2-py2
# - env: INSTANCE=default-amazonlinux-2-2019-2-py3
# - env: INSTANCE=default-arch-base-latest-2019-2-py2
# - env: INSTANCE=default-fedora-30-2018-3-py3
# - env: INSTANCE=default-debian-9-2018-3-py2
# - env: INSTANCE=default-ubuntu-1604-2018-3-py2
- env: INSTANCE=default-debian-9-2018-3-py2
- env: INSTANCE=default-ubuntu-1604-2018-3-py2
# - env: INSTANCE=default-centos-7-2018-3-py2
- env: INSTANCE=default-opensuse-leap-151-2018-3-py2
# - env: INSTANCE=default-opensuse-leap-151-2018-3-py2
# - env: INSTANCE=default-amazonlinux-1-2018-3-py2
# - env: INSTANCE=default-arch-base-latest-2018-3-py2
# - env: INSTANCE=default-debian-8-2017-7-py2
- env: INSTANCE=default-ubuntu-1604-2017-7-py2
# - env: INSTANCE=default-ubuntu-1604-2017-7-py2
# - env: INSTANCE=default-centos-6-2017-7-py2
# - env: INSTANCE=default-fedora-30-2017-7-py2
# - env: INSTANCE=default-opensuse-leap-151-2017-7-py2
Expand Down
2 changes: 1 addition & 1 deletion FORMULA
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ os: Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, openSUSE
os_family: Debian, RedHat, Suse
version: 0.3.1
release: 1
minimum_version: 2017.7
minimum_version: 2018.3
summary: Telegraf formula
description: Formula to use to install and configure telegraf
top_level_dir: telegraf
9 changes: 0 additions & 9 deletions _modules/toml_lang.py

This file was deleted.

2 changes: 1 addition & 1 deletion telegraf/files/default/telegraf.tmpl.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Your changes will be overwritten.
########################################################################

{{ salt['toml_lang.dumps'](telegraf) }}
{{ salt['slsutil.serialize']('toml', telegraf) }}
4 changes: 1 addition & 3 deletions telegraf/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
{%- do telegraf.update({'toml_pkg': 'python2-pytoml'}) %}
{%- endif %}
{%- elif grains.pythonversion[0] == 3 %}
{%- if osfinger in ['CentOS Linux-8'] %}
{%- do telegraf.update({'toml_pkg': 'python3-toml'}) %}
{%- elif osfinger in ['CentOS Linux-7'] %}
{%- if osfinger in ['CentOS Linux-7'] %}
{%- do telegraf.update({'toml_pkg': 'python36-pytoml'}) %}
{%- else %}
{%- do telegraf.update({'toml_pkg': 'python3-pytoml'}) %}
Expand Down

0 comments on commit 75e29e5

Please sign in to comment.