signalfx / maestro-ng

Orchestration of Docker-based, multi-host environments
https://signalfx.com
Apache License 2.0
685 stars 83 forks source link

Add include_services #134

Closed lightcode closed 9 years ago

lightcode commented 9 years ago

I have implemented an option to include services from other files. We can use it to reduce the size of the maestro.yaml file and improve its readability. To do that, I have had a top level keyword "include_services" to specify a list of files to include (see README for more information).

mpetazzoni commented 9 years ago

Hey @lightcode,

There's actually a much easier way to do this: MaestroNG pre-processes the YAML file as a Jinja2 file, so you can use Jinja2 includes to do this. This is unfortunately not documented, so it's a pretty hidden feature. I have an open task to document it (#61).

Let me know if you have any questions about this, I'll be happy to help/give examples!

/Max