Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   VppCpuMainCore:
34     default: ''
35     description: VPP main thread core pinning.
36     type: string
37   VppCpuCorelistWorkers:
38     default: ''
39     description: List of cores for VPP worker thread pinning
40     type: string
41   MonitoringSubscriptionVpp:
42     default: 'overcloud-vpp'
43     type: string
44
45 outputs:
46   role_data:
47     description: Role data for the Vpp role.
48     value:
49       service_name: vpp
50       monitoring_subscription: {get_param: MonitoringSubscriptionVpp}
51       config_settings:
52         fdio::vpp_cpu_main_core: {get_param: VppCpuMainCore}
53         fdio::vpp_cpu_corelist_workers: {get_param: VppCpuCorelistWorkers}
54       step_config: |
55         include ::tripleo::profile::base::vpp
56       upgrade_tasks:
57         - name: Check if vpp is deployed
58           command: systemctl is-enabled vpp
59           tags: common
60           ignore_errors: True
61           register: vpp_enabled
62         - name: "PreUpgrade step0,validation: Check service vpp is running"
63           shell: /usr/bin/systemctl show 'vpp' --property ActiveState | grep '\bactive\b'
64           when: vpp_enabled.rc == 0
65           tags: step0,validation
66         - name: Stop vpp service
67           tags: step1
68           when: vpp_enabled.rc == 0
69           service: name=vpp state=stopped