-
-
Save garo/ba161d49b984c80a2d33 to your computer and use it in GitHub Desktop.
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
{% from 'services/postgresql/init.sls' import postgresql_service %} | |
{% from 'services/solr/init.sls' import solr_service %} | |
{% from 'services/apiserver/init.sls' import apiserver_service %} | |
{% for item in pillar.get('services', []) %} | |
{% for service_class, services in item.items() %} | |
{% for service_name in services %} | |
{% if service_class == "postgresql" %} | |
{{ postgresql_service(service_name, services[service_name]) }} | |
{% endif %} | |
{% if service_class == "solr" %} | |
{{ solr_service(service_name, services[service_name]) }} | |
{% endif %} | |
{% if service_class == "apiserver" %} | |
{{ apiserver_service(service_name, services[service_name]) }} | |
{% endif %} | |
{% endfor %} | |
{% endfor %} | |
{% 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
services: | |
- postgresql: | |
psql: | |
container: private/psql | |
version: "latest" | |
port: 12345 | |
- solr: | |
solr: | |
container: private/solr | |
version: "latest" | |
- apiserver: | |
apiserver: | |
container: private/apiserver | |
version: "master" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment