tosca_definitions_version: tosca_simple_yaml_1_3 # To execute the scriptlet and extract artifacts to a specific directory: # puccini-tosca compile examples/javascript/artifacts.yaml --exec=extract --output=work # See also: examples/tosca/artifacts.yaml metadata: template_name: JavaScript Artifacts Example template_author: Puccini puccini.scriptlet.import:extract: imports/extract.js topology_template: node_templates: host: type: tosca:Compute artifacts: deploy: type: tosca:Implementation.Bash # Path is relative to this file's location, even if it's within a CSAR # (Note that extraction will even work from within a CSAR! # This works by unzipping the archive if it's a local CSAR, or by downloading # to a temporary file and then unzipping if it's a remote CSAR) file: artifacts/deploy.sh deploy_path: /var/lib/orchestration/images/