Merge "Ensure packages for octavia only when EnablePackageInstall is True"

This commit is contained in:
Zuul 2018-01-24 22:45:19 +00:00 committed by Gerrit Code Review
commit 6f402f430c
1 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,10 @@ parameters:
default: {}
description: Parameters specific to the role
type: json
EnablePackageInstall:
default: 'false'
description: Set to true to enable package installation at deploy time
type: boolean
resources:
@ -134,11 +138,11 @@ outputs:
ignore_errors: true
- name: Ensure packages required for configuring octavia are present
yum: name={{item}} state=present
tags: step4
with_items:
- python2-neutronclient
- python2-openstackclient
- openssl
when: {get_param: EnablePackageInstall}
upgrade_tasks:
- name: Stop and disable octavia_worker service
when: step|int == 2