Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 1.22 KB
classes:
{%- for class in node.get('classes', []) %}
- {{ class }}
{%- endfor %}
parameters:
{%- if node.params is defined or extra_params|length > 0 %}
_param:
{%- for param_name, param_value in node.params.iteritems() %}
{%- if param_value is not string %}
{{ param_name }}: {{ param_value }}
{%- else %}
{{ param_name }}: {{ param_value|replace("u'", "'") }}
{%- endif %}
{%- endfor %}
{%- for param_name, param_value in extra_params.iteritems() %}
{%- if param_value.value is not string %}
{{ param_name }}: {{ param_value.value }}
{%- else %}
{%- if param_value.interpolate %}
{{ param_name }}: {% raw %}'${_param:{% endraw %}{{ param_value.value|replace("u'", "'")|replace("'", "") }}}'
{%- else %}
{{ param_name }}: {{ param_value.value|replace("u'", "'") }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endif %}
{{ node.get('kernel', 'linux') }}:
system:
name: {{ node_name }}
domain: {{ node.domain }}
cluster: {{ node.get('cluster', 'default') }}
environment: {{ node.get('environment', 'prd') }}
{%- for param_name, param_value in node.get("parameters", {}).iteritems() %}
{{ param_name }}: {{ param_value }}
{%- endfor %}