Merge "Containerize Horizon"
[apex-tripleo-heat-templates.git] / puppet / services / vpp.yaml
1 heat_template_version: pike
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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   VppCpuMainCore:
30     default: ''
31     description: VPP main thread core pinning.
32     type: string
33   VppCpuCorelistWorkers:
34     default: ''
35     description: List of cores for VPP worker thread pinning
36     type: string
37   MonitoringSubscriptionVpp:
38     default: 'overcloud-vpp'
39     type: string
40
41 outputs:
42   role_data:
43     description: Role data for the Vpp role.
44     value:
45       service_name: vpp
46       monitoring_subscription: {get_param: MonitoringSubscriptionVpp}
47       config_settings:
48         fdio::vpp_cpu_main_core: {get_param: VppCpuMainCore}
49         fdio::vpp_cpu_corelist_workers: {get_param: VppCpuCorelistWorkers}
50       step_config: |
51         include ::tripleo::profile::base::vpp
52       upgrade_tasks:
53         - name: Check if vpp is deployed
54           command: systemctl is-enabled vpp
55           tags: common
56           ignore_errors: True
57           register: vpp_enabled
58         - name: "PreUpgrade step0,validation: Check service vpp is running"
59           shell: /usr/bin/systemctl show 'vpp' --property ActiveState | grep '\bactive\b'
60           when: vpp_enabled.rc == 0
61           tags: step0,validation
62         - name: Stop vpp service
63           tags: step1
64           when: vpp_enabled.rc == 0
65           service: name=vpp state=stopped