7febd72cce
Previously there are a lot of warning messages of setuptools in the log files of tox jobs. This is mainly caused by test samples because these are in python codes directories. This patch moves test samples from under {heat-translator_root}/translator/tests to under {heat-translator_root}/samples/tests. This patch also contains the following changes: - Remove "skipsdist = True" from tox.ini - Fixed usage.rst command example Change-Id: Ibde711a4778e238076de328641da7b0edd1d4f4b Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com> Co-Authored-By: Yoshiro Watanabe <fj3838ct@fujitsu.com>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
tosca_definitions_version: tosca_simple_yaml_1_0
|
|
|
|
description: TOSCA template to test get_operation_output by exchanging ssh public key
|
|
|
|
topology_template:
|
|
|
|
node_templates:
|
|
server1:
|
|
type: tosca.nodes.Compute
|
|
capabilities:
|
|
host:
|
|
properties:
|
|
num_cpus: 1
|
|
mem_size: 1 GB
|
|
os:
|
|
properties:
|
|
type: Linux
|
|
distribution: Ubuntu
|
|
version: 12.04
|
|
architecture: x86_64
|
|
|
|
server2:
|
|
type: tosca.nodes.Compute
|
|
capabilities:
|
|
host:
|
|
properties:
|
|
num_cpus: 1
|
|
mem_size: 1 GB
|
|
os:
|
|
properties:
|
|
type: Linux
|
|
distribution: Ubuntu
|
|
version: 12.04
|
|
architecture: x86_64
|
|
|
|
generate_ssh_key:
|
|
type: tosca.nodes.SoftwareComponent
|
|
interfaces:
|
|
Standard:
|
|
create: artifacts/ssh/ssh_generate_keys.sh
|
|
requirements:
|
|
- host: server1
|
|
|
|
import_public_key:
|
|
type: tosca.nodes.SoftwareComponent
|
|
interfaces:
|
|
Standard:
|
|
create:
|
|
implementation: artifacts/ssh/ssh_import_public_key.sh
|
|
inputs:
|
|
public_key: { get_operation_output: [generate_ssh_key, Standard, create, public_key] }
|
|
requirements:
|
|
- host: server2
|
|
- dependency: generate_ssh_key
|