Templates
In the previous configuration, we explicitly defined two compute instances in their entirety. This approach is not sustainable when working with large numbers of deployment and deployments with many resources. To aid in this, Cloud Deployment Manager supports defining templates using Jinja 2.8 and Python 2.7.
Both Jinja and Python provide a high level of expressiveness to deployment configurations. The templating system operates by configuration files (YAML, Jinja, or Python) invoking templates, which may then invoke other templates. When creating or updating deployments, Cloud Deployment Manager first loads all configuration files into an isolated environment. Templates are evaluated recursively, resulting in a static set of resource ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access