diff options
Diffstat (limited to 'docker/services/collectd.yaml')
-rw-r--r-- | docker/services/collectd.yaml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docker/services/collectd.yaml b/docker/services/collectd.yaml index ef7ddc52..2ab020c7 100644 --- a/docker/services/collectd.yaml +++ b/docker/services/collectd.yaml @@ -36,7 +36,10 @@ parameters: default: {} description: Parameters specific to the role type: json - + UpgradeRemoveUnusedPackages: + default: false + description: Remove package if the service is being disabled during upgrade + type: boolean resources: @@ -113,3 +116,8 @@ outputs: - name: Stop and disable collectd service tags: step2 service: name=collectd.service state=stopped enabled=no + - name: Remove collectd package if operator requests it + yum: name=collectd state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} |