Created
August 7, 2018 06:17
-
-
Save cschwede/7f3c90bda943f7be3282b553c53a5b6c to your computer and use it in GitHub Desktop.
Sample fake service for TripleO custom roles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource_registry: | |
OS::TripleO::Services::CustomService: custom_service.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: CustomServiceRole | |
CountDefault: 1 | |
networks: | |
- External | |
default_route_networks: ['External'] | |
HostnameFormatDefault: '%stackname%-custom-service-%index%' | |
ServicesDefault: | |
- OS::TripleO::Services::Sshd | |
- OS::TripleO::Services::CustomService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: queens | |
description: > | |
Simple fake service | |
parameters: | |
EndpointMap: | |
default: {} | |
description: Mapping of service endpoint -> protocol. Typically set | |
via parameter_defaults in the resource registry. | |
type: json | |
DefaultPasswords: | |
default: {} | |
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 | |
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 | |
outputs: | |
role_data: | |
description: Fake service action | |
value: | |
service_name: SampleService | |
host_prep_tasks: | |
- name: Touch sample file | |
file: | |
path: "/tmp/sample-service-file" | |
state: touch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment