From cc96f30a504aa32030eafefdba69d635869c7949 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Thu, 18 Apr 2019 16:27:20 -0400 Subject: Add support for Ansible packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rework how to provide packages - support proxy as parameters Change-Id: I1d10d921ead0837aa0f74b965cadf985424ceedc Issue-ID: CCCSDK-1215 Signed-off-by: Alexis de Talhouët --- .../artifact_type/artifact-script-ansible.json | 8 +++++++ .../starter-type/data_type/dt-system-packages.json | 26 ++++++++++++++++++++++ .../component-remote-python-executor.json | 8 +++++++ 3 files changed, 42 insertions(+) create mode 100644 components/model-catalog/definition-type/starter-type/artifact_type/artifact-script-ansible.json create mode 100644 components/model-catalog/definition-type/starter-type/data_type/dt-system-packages.json (limited to 'components/model-catalog/definition-type/starter-type') diff --git a/components/model-catalog/definition-type/starter-type/artifact_type/artifact-script-ansible.json b/components/model-catalog/definition-type/starter-type/artifact_type/artifact-script-ansible.json new file mode 100644 index 000000000..943186d13 --- /dev/null +++ b/components/model-catalog/definition-type/starter-type/artifact_type/artifact-script-ansible.json @@ -0,0 +1,8 @@ +{ + "description": "Ansible Script file", + "version": "1.0.0", + "file_ext": [ + "yaml" + ], + "derived_from": "tosca.artifacts.Implementation" +} \ No newline at end of file diff --git a/components/model-catalog/definition-type/starter-type/data_type/dt-system-packages.json b/components/model-catalog/definition-type/starter-type/data_type/dt-system-packages.json new file mode 100644 index 000000000..81bb030b4 --- /dev/null +++ b/components/model-catalog/definition-type/starter-type/data_type/dt-system-packages.json @@ -0,0 +1,26 @@ +{ + "description": "This represent System Package Data Type", + "version": "1.0.0", + "properties": { + "type": { + "required": true, + "type": "string", + "constraints": [ + { + "valid_values": [ + "ANSIBLE", + "PYTHON" + ] + } + ] + }, + "package": { + "required": true, + "type": "list", + "entry_schema": { + "type": "string" + } + } + }, + "derived_from": "tosca.datatypes.Root" +} \ No newline at end of file diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json b/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json index 99a4dd8dc..3eaee761f 100644 --- a/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json +++ b/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json @@ -32,6 +32,14 @@ "description": "Command to execute.", "required": true, "type": "string" + }, + "packages": { + "description": "Packages to install based on type.", + "required": true, + "type" : "list", + "entry_schema" : { + "type" : "dt-system-packages" + } } } } -- cgit 1.2.3-korg