Merge "Fix bogus parameters in get_param"
[apex-tripleo-heat-templates.git] / puppet / services / vpp.yaml
1 heat_template_version: ocata
2
3 description: >
4   Vpp service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   VppCpuMainCore:
22     default: ''
23     description: VPP main thread core pinning.
24     type: string
25   VppCpuCorelistWorkers:
26     default: ''
27     description: List of cores for VPP worker thread pinning
28     type: string
29   MonitoringSubscriptionVpp:
30     default: 'overcloud-vpp'
31     type: string
32
33 outputs:
34   role_data:
35     description: Role data for the Vpp role.
36     value:
37       service_name: vpp
38       monitoring_subscription: {get_param: MonitoringSubscriptionVpp}
39       config_settings:
40         fdio::vpp_cpu_main_core: {get_param: VppCpuMainCore}
41         fdio::vpp_cpu_corelist_workers: {get_param: VppCpuCorelistWorkers}
42       step_config: |
43         include ::tripleo::profile::base::vpp
44       upgrade_tasks:
45         - name: Check if vpp is deployed
46           command: systemctl is-enabled vpp
47           tags: common
48           ignore_errors: True
49           register: vpp_enabled
50         - name: "PreUpgrade step0,validation: Check service vpp is running"
51           shell: /usr/bin/systemctl show 'vpp' --property ActiveState | grep '\bactive\b'
52           when: vpp_enabled.rc == 0
53           tags: step0,validation
54         - name: Stop vpp service
55           tags: step1
56           when: vpp_enabled.rc == 0
57           service: name=vpp state=stopped