
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>
136 lines
3.3 KiB
YAML
136 lines
3.3 KiB
YAML
heat_template_version: 2013-05-23
|
|
|
|
description: >
|
|
A template to test host assignment for translated hot resources.
|
|
It makes sure if a resource depends on multiple hosts only the
|
|
one with the "HostedOn" relationship is picked as the host. In
|
|
this template, the translated resource 'app_collectd_create_deploy'
|
|
would depend on 'logstash_server' and 'app_server'. But it would
|
|
have "HostedOn" relationship with 'app_server', and that server
|
|
would be its host.
|
|
|
|
parameters: {}
|
|
resources:
|
|
app_server:
|
|
type: OS::Nova::Server
|
|
properties:
|
|
flavor: m1.medium
|
|
image: ubuntu-software-config-os-init
|
|
user_data_format: SOFTWARE_CONFIG
|
|
|
|
logstash_server:
|
|
type: OS::Nova::Server
|
|
properties:
|
|
flavor: m1.medium
|
|
image: ubuntu-software-config-os-init
|
|
user_data_format: SOFTWARE_CONFIG
|
|
|
|
app_collectd_create_config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config:
|
|
get_file: collectd/create.sh
|
|
group: script
|
|
|
|
app_collectd_create_deploy:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config:
|
|
get_resource: app_collectd_create_config
|
|
server:
|
|
get_resource: app_server
|
|
depends_on:
|
|
- logstash_start_deploy
|
|
|
|
app_collectd_configure_config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config:
|
|
get_file: collectd/config.py
|
|
group: script
|
|
|
|
app_collectd_configure_deploy:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config:
|
|
get_resource: app_collectd_configure_config
|
|
input_values:
|
|
logstash_ip:
|
|
get_attr:
|
|
- logstash_server
|
|
- networks
|
|
- private
|
|
- 0
|
|
server:
|
|
get_resource: app_server
|
|
depends_on:
|
|
- app_collectd_create_deploy
|
|
|
|
app_collectd_start_config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config:
|
|
get_file: collectd/start.sh
|
|
group: script
|
|
|
|
app_collectd_start_deploy:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config:
|
|
get_resource: app_collectd_start_config
|
|
server:
|
|
get_resource: app_server
|
|
depends_on:
|
|
- app_collectd_configure_deploy
|
|
|
|
logstash_create_config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config:
|
|
get_file: logstash/create.sh
|
|
group: script
|
|
|
|
logstash_create_deploy:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config:
|
|
get_resource: logstash_create_config
|
|
server:
|
|
get_resource: logstash_server
|
|
|
|
logstash_start_config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config:
|
|
get_file: logstash/start.sh
|
|
group: script
|
|
|
|
logstash_start_deploy:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config:
|
|
get_resource: logstash_start_config
|
|
server:
|
|
get_resource: logstash_server
|
|
depends_on:
|
|
- logstash_create_deploy
|
|
|
|
app_collectd_logstash_connect_config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config:
|
|
get_file: logstash/configure_collectd.py
|
|
group: script
|
|
|
|
app_collectd_logstash_connect_deploy:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config:
|
|
get_resource: app_collectd_logstash_connect_config
|
|
server:
|
|
get_resource: logstash_server
|
|
depends_on:
|
|
- logstash_create_deploy
|
|
|
|
outputs: {}
|