xlab-si / xopera-opera

xOpera orchestrator compliant with TOSCA YAML v1.3 in the making
https://xlab-si.github.io/xopera-docs/
Apache License 2.0
35 stars 14 forks source link

Access to secondary implementation artifacts with xOpera #247

Closed abitrolly closed 2 years ago

abitrolly commented 2 years ago

I tried to deploy real app source with opera binary and standard Ansible playbook, and it looks like xOpera just doesn't support this.

All examples are creating files from embedded content in YAML file. Ansible notebook can not see local files, because xOpera copies notebook into /tmp before executing, but doesn't copy referenced files.

anzoman commented 2 years ago

@abitrolly yes opera works in a temporary folder when running executors (e.g., Ansible playbooks) and prints out the results back to storage folder (.opera by default). This is okay because TOSCA allows defining and using all the necessary files that accompany the executors - you can do this within TOSCA interfaces and operations (see 3.6.16 Operation implementation definition) using dependencies keyname.

abitrolly commented 2 years ago

Can you give an example? Given a .zip file in a directory with service.yaml. How to make that file available for a playbook?

anzoman commented 2 years ago

Sure, I am listing some of the examples from xopera-examples repository:

anzoman commented 2 years ago

@abitrolly just checking - have you managed to look at the examples above and were they of any use to you?

anzoman commented 2 years ago

I believe this has been resolved and we can always reopen if there are still any questions.