Added vr for nodes with transports
This commit is contained in:
parent
d602116b78
commit
2e37219f24
21
templates/nodes_with_transports.yaml
Normal file
21
templates/nodes_with_transports.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
id: simple_multinode_with_transports
|
||||||
|
resources:
|
||||||
|
{% for i in range(count|int) %}
|
||||||
|
- id: ssh_transport{{i}}
|
||||||
|
from: resources/transport_ssh
|
||||||
|
values:
|
||||||
|
ssh_user: 'vagrant'
|
||||||
|
ssh_key: '/vagrant/.vagrant/machines/solar-dev{{i + 1}}/virtualbox/private_key'
|
||||||
|
- id: transports{{i}}
|
||||||
|
from: resources/transports
|
||||||
|
values:
|
||||||
|
transports:key: ssh_transport{{i}}::ssh_key
|
||||||
|
transports:user: ssh_transport{{i}}::ssh_user
|
||||||
|
transports:port: ssh_transport{{i}}::ssh_port
|
||||||
|
transports:name: ssh_transport{{i}}::name
|
||||||
|
- id: node{{i}}
|
||||||
|
from: resources/ro_node
|
||||||
|
values:
|
||||||
|
ip: '10.0.0.{{i + 3}}'
|
||||||
|
transports_id: transports{{i}}::transports_id
|
||||||
|
{% endfor %}
|
Loading…
Reference in New Issue
Block a user