Re: include order
Wouter Wijngaards <[email protected]>
| Newsgroups | gmane.network.dns.nsd.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Hendrik, On 11/9/18 3:58 PM, Hendrik Jaeger wrote: > 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? I guess it was for performance, but you are right, predictable outcome for include wildcard processing is important for stable system services. Fixed it. Thanks for the report! Best regards, Wouter > > Thank you > > Hendrik Jäger > > > > _______________________________________________ > nsd-users mailing list > [email protected] > https://open.nlnetlabs.nl/mailman/listinfo/nsd-users > _______________________________________________ nsd-users mailing list [email protected] https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE7fqj8spObrBWga+On28cLX4EX40FAlv7wzsACgkQn28cLX4E X42JvA//TdqOD3boI9lNNwk4QqAmV43pOcJS4meFeXZvXaRz0n0RKqygZzJJkTea 12ZiJTue2i8y1nvzUlwxuL/LXeqW0m5eizem0ok0JNfeZQzgZWrseqAfJLkJSi4t 509Z7gfxKmT2H87v/IxUQSASmEMIMQZgUaRxsQyEKE+DToEaGygCO6bdLdfAN+b5 vh8DSUHWJHA+s1rtvDFyjafremKsJh/zzZMWxGuDIZpymhjDQsOJoF3LWqKHlRiI y+fgxhGm/Py+qYt0m+nvBK/UJ/GgqeqP3kiAv5Vdktt6bsEDTPMcr/JDzZzOpmp5 47MXEPIEGcSoH4vxrt7og57tAp6/IUMXtwmaJF6v1PEIhO95ApotEUyr8h85hhOM FNi3ntaYrK4hKDqbMpDgJfeBZpxIPxD7Isit7Ou4AAj3ix1u1ExFgiaNltGdlGDX BELnuf3DJtcwU9rOMkTBVq0iH4xkPNX1yyXvV7BIvluTB3OrXgYz0FGeQipEZtTD gH8CjPHmnuEb3bc5cIxu6DRzTVTzkZ5hR3yY7tJUrOBxbM/auJpdkgzqJobedG9H cq5r8SwDj5TP7PZ6hGkPqEPWUpK76DU+g7DJVJjVmMkHTIV7eLhETrsYySMCEeq9 IjGKb+k0NlPTObInjpgk+bYJcuwU8ErTTrj7MfPbuvWrS3x/Ka0= =sV7d -----END PGP SIGNATURE-----