Created
October 27, 2014 12:51
-
-
Save datherra/155a6efa2c1753131ad4 to your computer and use it in GitHub Desktop.
Jinja2 and white space control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cluster] | |
wls.domain.cluster.name=wlsCluster | |
wls.domain.cluster.fqdn=my.cluster | |
wls.fe.server1=fe_server1 | |
wls.fe.server1.port=8081 | |
wls.fe.server1.address=my.server | |
wls.be.server1=fe_server1 | |
wls.be.server1.port=8081 | |
wls.be.server1.address=my.server | |
wls.fe.server2=fe_server2 | |
wls.fe.server2.port=8082 | |
wls.fe.server2.address=my.server | |
wls.be.server2=fe_server2 | |
wls.be.server2.port=8082 | |
wls.be.server2.address=my.server | |
wls.fe.server3=be_server1 | |
wls.fe.server3.port=8083 | |
wls.fe.server3.address=my.server | |
wls.be.server3=be_server1 | |
wls.be.server3.port=8083 | |
wls.be.server3.address=my.server | |
wls.fe.server4=be_server2 | |
wls.fe.server4.port=8084 | |
wls.fe.server4.address=my.server | |
wls.be.server4=be_server2 | |
wls.be.server4.port=8084 | |
wls.be.server4.address=my.server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cluster] | |
wls.domain.cluster.name={{ wls_cluster['name'] }} | |
wls.domain.cluster.fqdn={{ wls_cluster['fqdn'] }} | |
{% for server in wls_cluster['servers'] %} | |
wls.fe.server{{ loop.index }}={{ server['name'] }} | |
wls.fe.server{{ loop.index }}.port={{ server['port'] }} | |
wls.fe.server{{ loop.index }}.address={{ server['address'] }} | |
wls.be.server{{ loop.index }}={{ server['name'] }} | |
wls.be.server{{ loop.index }}.port={{ server['port'] }} | |
wls.be.server{{ loop.index }}.address={{ server['address'] }} | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
wls_cluster: | |
servers: | |
- name : fe_server1 | |
port : 8081 | |
address : my.server | |
- name : fe_server2 | |
port : 8082 | |
address : my.server | |
- name : be_server1 | |
port : 8083 | |
address : my.server | |
- name : be_server2 | |
port : 8084 | |
address : my.server | |
name : wlsCluster | |
fqdn : my.cluster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment