Changed block tokens in jinja for yaml compat
Changed block tokens from {% %} to #{ }#, makes file yaml compatible Change-Id: I1b52468bc0f36e093b35b5f83eae04550c59b2ba
This commit is contained in:
parent
1b28b8f3c4
commit
c7d8197f89
@ -7,21 +7,21 @@ resources:
|
||||
values:
|
||||
ip: '{{node}}::ip'
|
||||
config:protocol:
|
||||
{% for config in service_configs %}
|
||||
#% for config in service_configs %#
|
||||
- {{config}}::protocol
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
config:listen_port:
|
||||
{% for config in service_configs %}
|
||||
#% for config in service_configs %#
|
||||
- {{config}}::listen_port
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
config:name:
|
||||
{% for config in service_configs %}
|
||||
#% for config in service_configs %#
|
||||
- {{config}}::name
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
config:backends:
|
||||
{% for config in service_configs %}
|
||||
#% for config in service_configs %#
|
||||
- {{config}}::backends
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
|
||||
- id: haproxy_service{{index}}
|
||||
location: {{node}}
|
||||
|
@ -1,7 +1,7 @@
|
||||
id: simple_riak_with_transports
|
||||
resources:
|
||||
{% for i in range(count|int) %}
|
||||
{% set j = i +1 %}
|
||||
#% for i in range(count|int) %#
|
||||
#% set j = i +1 %#
|
||||
- id: ssh_transport{{j}}
|
||||
from: resources/transport_ssh
|
||||
values:
|
||||
@ -34,4 +34,4 @@ resources:
|
||||
from: resources/hosts_file
|
||||
location: node{{j}}
|
||||
tags: ['location=node{{j}}']
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
|
@ -3,7 +3,7 @@ id: simple_multinode_gre
|
||||
# eth1 - mgmt 10.0.0.0/24,
|
||||
# eth3 - ext 10.2.0.0/24
|
||||
resources:
|
||||
{% for i in range(count|int) %}
|
||||
#% for i in range(count|int) %#
|
||||
- id: node{{i}}_sdn
|
||||
from: resources/node_network_puppet
|
||||
values:
|
||||
@ -68,4 +68,4 @@ resources:
|
||||
ex: br-ex
|
||||
neutron/floating: br-floating
|
||||
fw-admin: br-fw-admin
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
|
@ -1,6 +1,6 @@
|
||||
id: simple_multinode_with_transports
|
||||
resources:
|
||||
{% for i in range(count|int) %}
|
||||
#% for i in range(count|int) %#
|
||||
- id: ssh_transport{{i}}
|
||||
from: resources/transport_ssh
|
||||
values:
|
||||
@ -29,4 +29,4 @@ resources:
|
||||
ip: '10.0.0.{{i + 3}}'
|
||||
transports_id: transports{{i}}::transports_id
|
||||
name: node{{i}}
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
|
@ -1,7 +1,7 @@
|
||||
id: not_provisioned_nodes
|
||||
resources:
|
||||
{% for node in nodes %}
|
||||
{% set id = node.id | replace(':', '_') %}
|
||||
#% for node in nodes %#
|
||||
#% set id = node.id | replace(':', '_') %#
|
||||
- id: ssh_transport{{ id }}
|
||||
from: resources/transport_ssh
|
||||
values:
|
||||
@ -21,7 +21,7 @@ resources:
|
||||
transports_id: transports{{id}}::transports_id
|
||||
name: node_{{id}}
|
||||
admin_mac: {{node.mac}}
|
||||
{% endfor %}
|
||||
#% endfor %#
|
||||
|
||||
- id: ssh_transport_master
|
||||
from: resources/transport_ssh
|
||||
|
@ -41,11 +41,11 @@ resources:
|
||||
- id: keystone_service_endpoint
|
||||
from: resources/keystone_service_endpoint
|
||||
values:
|
||||
{% raw %}
|
||||
#% raw %#
|
||||
adminurl: 'http://{{admin_ip}}:{{admin_port}}/v2.0'
|
||||
internalurl: 'http://{{internal_ip}}:{{internal_port}}/v2.0'
|
||||
publicurl: 'http://{{public_ip}}:{{public_port}}/v2.0'
|
||||
{% endraw %}
|
||||
#% endraw %#
|
||||
description: 'OpenStack Identity Service'
|
||||
type: 'identity'
|
||||
endpoint_name: 'keystone'
|
||||
|
Loading…
Reference in New Issue
Block a user