25dc2685f5
- rename VirtualResource to Composer - rename event parameter depend_action to child_action - rename values parameter to input Closes-bug: #1526780 Change-Id: Ib974e14ff4bda44c2d7d991f62aa4a06dea160ea
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
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
|
|
input:
|
|
ssh_user: 'vagrant'
|
|
ssh_key: '/vagrant/.vagrant/machines/solar-dev#{j}#/virtualbox/private_key'
|
|
- id: rsync#{j}#
|
|
from: resources/transport_rsync
|
|
input:
|
|
user: vagrant
|
|
key: /vagrant/.vagrant/machines/solar-dev#{j}#/virtualbox/private_key
|
|
- id: transports#{j}#
|
|
from: resources/transports
|
|
input:
|
|
transports:
|
|
- key: ssh_transport#{j}#::ssh_key
|
|
user: ssh_transport#{j}#::ssh_user
|
|
port: ssh_transport#{j}#::ssh_port
|
|
name: ssh_transport#{j}#::name
|
|
- key: rsync#{j}#::key
|
|
name: rsync#{j}#::name
|
|
user: rsync#{j}#::user
|
|
port: rsync#{j}#::port
|
|
- id: node#{j}#
|
|
from: resources/ro_node
|
|
input:
|
|
name: node#{j}#
|
|
ip: '10.0.0.#{i + 3}#'
|
|
transports_id: transports#{j}#::transports_id
|
|
- id: hosts_file#{j}#
|
|
from: resources/hosts_file
|
|
location: node#{j}#
|
|
tags: ['location=node#{j}#']
|
|
#% endfor %#
|