include order

Hendrik Jaeger <[email protected]>
Newsgroups gmane.network.dns.nsd.general
Message-ID <[email protected]>
Hi

I was having a problem with my puppet-generated nsd-config: it worked
on one and did not work on the other host.
That was very confusing for me as everything was based on the same
templates and the configs were mostly identical (apart from
hostnames/IPs).

After some debugging with the help of a friend the cause was found:
the 'include' directive does not do what I expected it to do when
using globbing, which is including the files in lexical order.
It actually includes the files in "directory order".

This directory order was different for the two hosts since puppet
decided the order in which it created files and that happened to be
different for the two hosts.
The result was that the file with additional "server"-settings was
included after the files providing "pattern"s and "zone"s and thus I
got a "syntax error".

IMHO the files should be included in lexical order.
That’s what people usually expect, as that is what (most) other
software does, e.g. run-parts.

Is there any reason why "GLOB_NOSORT" and thus "directory order" is
used?
Could it be changed to include globbed files in lexical order?

Thank you

Hendrik Jäger


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

_______________________________________________
nsd-users mailing list
[email protected]
https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEv/2bXrNWp9EAWgjaFCJRCMHSVp8FAlvloKgACgkQFCJRCMHS
Vp82bQ//dt5h+PW8NRTO8Cv6wYADlzMgIhB8SVSAKm1CarSxyWcVFqB5/nT23eAS
i5hzirFBUOty7leyGs9G8Q+T3aEYBXi6BiOuGUvLtnVo2fIZuC1cdHu6Bw2mF5q+
s2yaol7ylxnwbQewTgCWZsrEyb5deoDQY0+HWyHgzVLT1egtgt8oDvr9LZH14ebx
Z9maEZr6MzHIsgag8cWVK/iSe7ENhhw8xVjVRrtK9AR9HYfH/g24B5bOKzwvuUB9
Gc4FX/p18NsgXra4WCDvTO9a2XgEQyxUdAUZJGupYmWYqjoy2iFtBvfovhnAyu5I
AMR3AcnQyLek4y9nunpoJ8X9q1BVuKrgar9/JWKtN1IhIeWdiEbll9POdI4GHDt2
Ua5mCt6LcdRLIkXb6I02NqBfm0/NdMI2GJ4s9G4qNAK+dD5hdEz/+Qbrmz+Etr0X
ar3QPoj7xQkQHLXRNduX2MHRRQaNyOzM+fvwx9jh71G088kmu6BYWbn96k5lXQaT
+JOA6jqCY1loO+nya18/tgcH0STQ63n6HbL0WJrGBWJWmr/bVYD5YgpmhsCqLtWt
CkXmuvPN7EI3PNYyIdLSah/e4TZuyZhU1EAou27UU0RAbh69JE7rcp6I+tuqVqZJ
KXs4Zl7ZAbMCfacNQVC7gO9ukRJgGZZtu62RtU4bT2dfRGLZ9TU=
=KoMU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.