2018-03-05 19:28:35 +01:00
|
|
|
heat_template_version: rocky
|
2018-02-27 15:53:38 +00:00
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack containerized Tempest
|
|
|
|
|
|
|
|
parameters:
|
2019-05-13 10:13:04 -04:00
|
|
|
ContainerTempestImage:
|
2018-02-27 15:53:38 +00:00
|
|
|
description: image
|
|
|
|
type: string
|
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
|
|
|
ServiceData:
|
|
|
|
default: {}
|
|
|
|
description: Dictionary packing service data
|
|
|
|
type: json
|
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
|
|
|
RoleName:
|
|
|
|
default: ''
|
|
|
|
description: Role name on which the service is applied
|
|
|
|
type: string
|
|
|
|
RoleParameters:
|
|
|
|
default: {}
|
|
|
|
description: Parameters specific to the role
|
|
|
|
type: json
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the tempest service
|
|
|
|
value:
|
|
|
|
# It just adds a fake tempest service so that it will be
|
|
|
|
# available on undercloud.
|
|
|
|
service_name: tempest
|
|
|
|
docker_config:
|
2018-05-04 21:53:14 +05:30
|
|
|
step_2:
|
|
|
|
tempest_init_logs:
|
2019-05-13 10:13:04 -04:00
|
|
|
image: &tempest_image {get_param: ContainerTempestImage}
|
2019-01-14 15:06:34 +05:30
|
|
|
net: none
|
2018-05-04 21:53:14 +05:30
|
|
|
privileged: false
|
|
|
|
user: root
|
|
|
|
volumes:
|
2018-10-03 16:04:41 +05:30
|
|
|
- /var/log/containers/tempest:/var/log/tempest:z
|
|
|
|
- /var/lib/tempestdata:/var/lib/tempest:z
|
|
|
|
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest /var/lib/tempest']
|
2018-05-04 21:53:14 +05:30
|
|
|
host_prep_tasks:
|
2019-01-14 16:06:21 +01:00
|
|
|
- name: create persistent directories
|
2018-05-04 21:53:14 +05:30
|
|
|
file:
|
2018-10-03 16:04:41 +05:30
|
|
|
path: "{{ item.path }}"
|
2018-05-04 21:53:14 +05:30
|
|
|
state: directory
|
2018-10-03 16:04:41 +05:30
|
|
|
setype: "{{ item.setype }}"
|
2020-04-06 23:15:44 +02:00
|
|
|
mode: "{{ item.mode|default(omit) }}"
|
2018-05-04 21:53:14 +05:30
|
|
|
with_items:
|
2020-02-07 13:33:20 +01:00
|
|
|
- { 'path': /var/log/containers/tempest, 'setype': container_file_t, 'mode': '0750' }
|
|
|
|
- { 'path': /var/lib/tempestdata, 'setype': container_file_t }
|
|
|
|
- { 'path': /var/lib/tempest, 'setype': container_file_t }
|
2018-02-27 15:53:38 +00:00
|
|
|
puppet_config:
|
|
|
|
config_volume: ''
|
|
|
|
step_config: ''
|
2019-05-13 10:13:04 -04:00
|
|
|
config_image: {get_param: ContainerTempestImage}
|
2018-02-27 15:53:38 +00:00
|
|
|
config_settings: {}
|