I'll check that out. If it fits there, then it should be there. I'm not
fond of spawning new projs/repos :-)
On Monday, November 2, 2015 at 8:13:34 PM UTC+1, Seth House wrote:

Very clever!

This idea is very similar to the serializers idea that has been kicked
around in the formulas community. We added a new module type called
serializers to Salt a little while back. The idea being: modules that
would take a data structure and serialize it to a specific format. A
high-level example is an "apache config serializer" could take a
dictionary (probably from Pillar but not necessarily) and write it to
disk as a valid Apache configuration file. Smaller, more focused,
"utils-style" serializers, such as the two you propose, would also be
a great addition.



Since they're a module type, they can ship with Salt-core or they can
ship along with formulas themselves. The standard way of distributing
custom modules works as normal:


Which means existing formulas can take advantage of them by putting a
`_serializers` directory in the root repository directory. This is
best done for serializer modules that aren't likely to be re-used in
multiple formulas.

If you're interested in contributing modules that perform the actions
you described below, I'd love to merge them into Salt-core.

On Mon, Nov 2, 2015 at 8:38 AM, Kees Bos <cornel...@gmail.com
<javascript:>> wrote:
Hi all,

Right now we have quite some salt formulas. The implementations are almost
as diverse as the number of developers.

I think that it might be convenient to create a well documented library of
macros to be used in the formulas. This will probably make the formula's a
bit more consistent and easier to develop and maintain.

To give an idea of what I'm thinking of, I've added two macros to an initial
(proposed) library. See

The banner macro is something that came up in a discussion on this list.

Let me know what you think of such a library.


You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 5 | next ›
Discussion Overview
groupsalt-users @
postedNov 2, '15 at 3:38p
activeNov 4, '15 at 6:33p

2 users in discussion

Kees Bos: 3 posts Seth House: 2 posts



site design / logo © 2022 Grokbase