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