6237903852
The xinetd service isn't used anymore on the host - it runs in containers where it is needed, meaning that service can be dropped for good, as well as its package. Change-Id: I004a43c1b6c9cee21c24749bd6589435530e48e0
67 lines
1.9 KiB
YAML
67 lines
1.9 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 == 2
|
|
block:
|
|
- name: stop and deactivate xinetd service
|
|
service:
|
|
name: xinetd
|
|
state: stopped
|
|
enabled: no
|
|
- 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
|