e4ee042a2a
We don't need upgrade_tasks that stop systemd services since all services are now containerized. However, we decided to keep the tasks that remove the rpms in case some of deployments didn't cleanup them in previous releases, they can still do it now. Change-Id: I6abdc9e37966cd818306f7af473958fd4662ccb5 Related-Bug: #1806733
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
heat_template_version: rocky
|
|
|
|
description: >
|
|
Drop xinetd if operator requests it.
|
|
|
|
parameters:
|
|
DefaultPasswords:
|
|
default: {}
|
|
type: json
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
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
|
|
RoleName:
|
|
default: ''
|
|
description: Role name on which the service is applied
|
|
type: string
|
|
RoleParameters:
|
|
default: {}
|
|
description: Parameters specific to the role
|
|
type: json
|
|
UpgradeRemoveUnusedPackages:
|
|
default: false
|
|
type: boolean
|
|
description: Remove package if the service is being disabled during upgrade
|
|
|
|
outputs:
|
|
role_data:
|
|
description: Remove xinetd since it is not used anymore in containerized environment
|
|
value:
|
|
service_name: xinetd
|
|
docker_config: {}
|
|
puppet_config:
|
|
config_volume: ''
|
|
step_config: ''
|
|
config_image: ''
|
|
config_settings: {}
|
|
upgrade_tasks:
|
|
- when: step|int == 3
|
|
block:
|
|
- name: set remove_xinetd_pkg fact
|
|
set_fact:
|
|
remove_xinetd_pkg: {get_param: UpgradeRemoveUnusedPackages}
|
|
- name: remove xinetd package
|
|
package:
|
|
name: xinetd
|
|
state: removed
|
|
when: remove_xinetd_pkg|bool
|