Add naive_sync driver which will copy resource from solar location

This commit is contained in:
Dmitry Shulyak 2015-11-10 11:59:21 +02:00
parent 5e473a0549
commit 3d6e4270ad
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
id: sources
handler: naive_sync
version: 1.0.0
input:
sources:
schema: [{'src': 'str!', 'dst': 'str!'}]
value: []

8
templates/sources.yaml Normal file
View File

@ -0,0 +1,8 @@
id: sources
resources:
- id: sources{{index}}
from: resources/sources
location: {{node}}
values:
sources:
- {src: /tmp/sources_test, dst: /tmp/sources_test}