Skip to content

Commit

Permalink
feat(tofs): add support of TOFS
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez authored and myii committed Aug 25, 2020
1 parent e6808a1 commit ea21c93
Show file tree
Hide file tree
Showing 28 changed files with 953 additions and 686 deletions.
7 changes: 5 additions & 2 deletions _modules/toml_lang.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-

import toml
try:
import pytoml as toml
except:
import toml

def dumps(data):
return toml.dumps(data)
return toml.dumps(data)
29 changes: 11 additions & 18 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,23 @@ Available states

``influxdb``
^^^^^^^^^^^^
Installs InfluxDB from [provided packages](http://influxdb.com/download/).
Installs and configures the influxdb package from upstream repository.

At the moment you **have** to specify the InfluxDB version in the
``influxdb:version`` pillar.
``influxdb.repo``
^^^^^^^^^^^^^^^^^
Installs the influxdb repository. See `InfluxDB doc <https://docs.influxdata.com/influxdb/v1.7/introduction/installation/#installing-influxdb-oss>`_ for more details.

``influxdb.cli``
^^^^^^^^^^^^^^^^
Installs the [influxdb-cli](https://github.com/phstc/influxdb-cli) gem system wide.
``influxdb.package``
^^^^^^^^^^^^^^^^^^^^
Installs the influxdb package.

``influxdb.config``
^^^^^^^^^^^^^^^^^^^
Renders the InfluxDB configuration from data provided in the ``influxdb:conf``
pillar.

It requires the installation of the
[toml Python module](https://github.com/hit9/toml.py) via pip.
This state manages the file ``influxdb.conf`` under ``/etc/influxdb`` (template found in "influxdb/files"). The configuration is populated by values in "influxdb/map.jinja" based on the package's default values (and RedHat, Debian, Suse and Arch family distribution specific values), which can then be overridden by values of the same name in pillar.

The formula ships with default configuration settings for various minor versions
of InfluxDB. That means that, if you define configuration settings in your
``influxdb.conf`` pillar, your settings will be merged with the default ones of
that minor version. You can set ``influxdb:no_conf_defaults`` in your pillar if
you want to completely specify the configuration yourself, without falling back
to defaults.
``influxdb.service``
^^^^^^^^^^^^^^^^^^^^
Manages the startup and running state of the influxdb service.

Testing
-------
Expand Down Expand Up @@ -115,4 +109,3 @@ Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``veri
^^^^^^^^^^^^^^^^^^^^^

Gives you SSH access to the instance for manual testing.

Loading

0 comments on commit ea21c93

Please sign in to comment.