heat-translator/samples/tests/data/hot_output/hot_software_component.yaml
Yasufumi Ogawa 7febd72cce Move test samples to reduce setuptools warnings
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>
2024-11-21 09:45:09 +00:00

59 lines
1.2 KiB
YAML

heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a software component.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
resources:
server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: ubuntu-software-config-os-init
user_data_format: SOFTWARE_CONFIG
my_software_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: my_software_create_config
server:
get_resource: server
my_software_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: software_install.sh
group: script
my_software_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: my_software_start_config
server:
get_resource: server
depends_on:
- my_software_create_deploy
my_software_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: software_start.sh
group: script
outputs: {}