solar-resources/templates/riak_nodes.yaml
2015-09-25 10:22:15 +02:00

24 lines
721 B
YAML

id: simple_riak_with_transports
resources:
{% for i in range(count|int) %}
{% set j = i +1 %}
- id: ssh_transport{{j}}
from: resources/transport_ssh
values:
ssh_user: 'vagrant'
ssh_key: '/vagrant/.vagrant/machines/solar-dev{{j}}/virtualbox/private_key'
- id: transports{{j}}
from: resources/transports
values:
transports:key: ssh_transport{{j}}::ssh_key
transports:user: ssh_transport{{j}}::ssh_user
transports:port: ssh_transport{{j}}::ssh_port
transports:name: ssh_transport{{j}}::name
- id: node{{j}}
from: resources/ro_node
values:
name: node{{j}}
ip: '10.0.0.{{i + 3}}'
transports_id: transports{{j}}::transports_id
{% endfor %}