From 2e37219f2428e9cf332d9d600dc7eda36658a5cc Mon Sep 17 00:00:00 2001 From: Jedrzej Nowak Date: Thu, 24 Sep 2015 10:32:26 +0200 Subject: [PATCH] Added vr for nodes with transports --- templates/nodes_with_transports.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 templates/nodes_with_transports.yaml diff --git a/templates/nodes_with_transports.yaml b/templates/nodes_with_transports.yaml new file mode 100644 index 00000000..5a108929 --- /dev/null +++ b/templates/nodes_with_transports.yaml @@ -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 %}