Add rsync transport to nodes

This commit is contained in:
Dmitry Shulyak 2015-12-01 14:32:57 +02:00
parent 426ea64bad
commit 92a02ae0c1
2 changed files with 37 additions and 4 deletions

View File

@ -0,0 +1,23 @@
id: transport_rsync
input:
key:
schema: str!
value:
user:
schema: str!
value:
name:
schema: str!
value: rsync
location_id:
schema: str
value:
reverse: True
is_own: False
transports_id:
schema: str
value:
is_emit: False
port:
schema: int
value: 3579

View File

@ -7,13 +7,23 @@ resources:
values:
ssh_user: 'vagrant'
ssh_key: '/vagrant/.vagrant/machines/solar-dev{{j}}/virtualbox/private_key'
- id: rsync{{j}}
from: resources/transport_rsync
values:
user: vagrant
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
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
values: