From 6b30ff11d4e2eafda7a3ab693055c687d4a8da5d Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 19 Jul 2016 16:08:22 -0400 Subject: Add 'service_name' to composable services This patch adds a new service_name section to each composable service. We now have an explicit unit test check to ensure that service_name exists in tools/yaml-validate.py. This patch also wires service_names into hieradata on each of the roles so that tools can access the deployed services locally during deployment and upgrades. Change-Id: I60861c5aa760534db3e314bba16a13b90ea72f0c --- puppet/controller.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'puppet/controller.yaml') diff --git a/puppet/controller.yaml b/puppet/controller.yaml index ee4311d6..6519a1d9 100644 --- a/puppet/controller.yaml +++ b/puppet/controller.yaml @@ -334,6 +334,9 @@ parameters: ServiceConfigSettings: type: json default: {} + ServiceNames: + type: comma_delimited_list + default: [] ConfigCommand: type: string description: Command which will be run whenever configuration data changes @@ -660,6 +663,7 @@ resources: - controller_extraconfig - extraconfig - service_configs + - service_names - controller - database - object @@ -681,6 +685,9 @@ resources: - midonet_data #Optionally provided by AllNodesExtraConfig merge_behavior: deeper datafiles: + service_names: + mapped_data: + service_names: {get_param: ServiceNames} service_configs: mapped_data: {get_param: ServiceConfigSettings} controller_extraconfig: -- cgit 1.2.3-korg