Generate Heat templates

Registered by Tom Cammann

The current situation of requiring set of heat templates for each COE and for each OS creates a great amount of duplication in the heat templates. To alleviate this problem we can create heat templates in jinja2 to programmatically build a heat template based on COE type and OS. This will dramatically reduce the repetition Magnum has across heat templates.

A tool will be created that generates heat templates for the various combinations of OS distributions and COE. This will enable cloud operators to easily update raw heat templates for their own deployments, but also allow the Magnum to reduce its maintenance overhead. These templates will be generated by running 'tox -egentmpl', if a change is made to the jinja2 templates by the user this will need to be re run. The heat templates will be removed from the magnum repo and generated at integration time or when needed.

If the templates are found on the file path the templates will not be generated, if not found then Magnum will generate the files at runtime and store them to the correct file path.

Work will initially be needed to unify the style of the templates to make it easier to move to this set of generated templates, and then work on creating the tooling and the template files will occur.

Blueprint information

Status:
Complete
Approver:
Adrian Otto
Priority:
Medium
Drafter:
Tom Cammann
Direction:
Approved
Assignee:
Tom Cammann
Definition:
Approved
Series goal:
Accepted for liberty
Implementation:
Implemented
Milestone target:
milestone icon liberty-3
Started by
Adrian Otto
Completed by
Adrian Otto

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:cleanup,n,z

Addressed by: https://review.openstack.org/210048
    Unify templating style between templates

Gerrit topic: https://review.openstack.org/#q,topic:masters,n,z

Addressed by: https://review.openstack.org/210169
    Create master tmptls for k8s ironic/coreos bay

Gerrit topic: https://review.openstack.org/#q,topic:bp/generate-heat-templates,n,z

Addressed by: https://review.openstack.org/214762
    Refactors Heat templates to Support Container Networking Model

Gerrit topic: https://review.openstack.org/#q,topic:wip-refactor,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.