reclass and jinja template

martin f krafft madduck at madduck.net
Tue Aug 4 20:54:08 CEST 2015


also sprach Stephan de Bot <stephan at b-it.org> [2015-08-04 17:44 +0200]:
> classes:
>   - common
> parameters:
>   resolver:
>     searchpaths: ['b-it.internal']
>     nameservers: ['192.168.1.1']
>     options: ['single-request-reopen']
> classes:
>   - resolver

Uh, this is going to produce undefined behaviour as YAML cannot
handle this.

> local:
>     ----------
>     __reclass__:
>         ----------
>         applications:
>             - resolver
>         classes:
>             - resolver

… and indeed, your common class is being ignored and not even read,
hence:

>         nameservers:
>             - 192.168.1.1

you only get one entry.

I understand your task, but as I said before, I don't know how to
solve it with YAML in a way that doesn't stink or break other
appraoches. :/

-- 
@martinkrafft | http://madduck.net/ | http://two.sentenc.es/
 
"it is the mark of an educated mind
 to be able to entertain a thought
 without accepting it."
                                                        -- aristoteles
 
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 1107 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://lists.pantsfullofunix.net/pipermail/reclass/attachments/20150804/40cba9a7/attachment.sig>


More information about the reclass mailing list