0
0
mirror of https://github.com/saltstack-formulas/reverse-grains-formula.git synced 2024-11-27 18:47:46 +01:00
Go to file
Michal Hrušecký c40f6198a8
Fix Python 3 compatibility
In Python 3, dict.keys doesn't return a list, but a set-like object that represents a view of the dictionary's keys and doesn't support indexing. Formula therefor didn't worked with Python 3.
2020-08-26 23:50:03 +02:00
grains Fix Python 3 compatibility 2020-08-26 23:50:03 +02:00
.gitignore Fixing .gitignore to ignore slsc and not pyc 2014-09-10 15:37:17 -04:00
LICENSE Update LICENSING year 2015-03-20 20:21:37 -04:00
pillar.example Update pillar.example 2014-10-02 17:58:46 +02:00
README.rst Initial commit 2014-09-09 14:09:16 -04:00

======================
reverse-grains-formula
======================

Formula to configure grains via pillar in a grain/hosts rather than host/grains manner.


.. note::

    See the full `Salt Formulas installation and usage instructions
    <http://docs.saltstack.com/topics/development/conventions/formulas.html>`_.

Available states
================

.. contents::
    :local:

``grains``
---------

Configure grains in /etc/salt/grains. Written with the py renderer. Utilizes
compound matches in the pillar to apply the grains and their values.