Skip to content

Instantly share code, notes, and snippets.

@cschwede
Created August 7, 2018 06:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cschwede/7f3c90bda943f7be3282b553c53a5b6c to your computer and use it in GitHub Desktop.
Save cschwede/7f3c90bda943f7be3282b553c53a5b6c to your computer and use it in GitHub Desktop.
Sample fake service for TripleO custom roles
resource_registry:
OS::TripleO::Services::CustomService: custom_service.yaml
- name: CustomServiceRole
CountDefault: 1
networks:
- External
default_route_networks: ['External']
HostnameFormatDefault: '%stackname%-custom-service-%index%'
ServicesDefault:
- OS::TripleO::Services::Sshd
- OS::TripleO::Services::CustomService
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