Merge "Derive Pci passthrough whitelist disable option" into stable/stein

This commit is contained in:
Zuul 2019-12-05 16:31:44 +00:00 committed by Gerrit Code Review
commit 9cb5d3a030
1 changed files with 33 additions and 14 deletions

View File

@ -83,6 +83,21 @@ parameters:
default: 5672 default: 5672
description: The network port for messaging backend description: The network port for messaging backend
type: number type: number
DerivePciWhitelistEnabled:
default: true
description: Whether to enable or not the pci passthrough whitelist automation.
type: boolean
tags:
- role_specific
conditions:
derive_pci_whitelist_enabled:
or:
- and:
- equals: [{get_param: DerivePciWhitelistEnabled}, true]
- equals: [{get_param: [RoleParameters, DerivePciWhitelistEnabled]}, '']
- equals: [{get_param: [RoleParameters, DerivePciWhitelistEnabled]}, true]
resources: resources:
@ -195,7 +210,10 @@ outputs:
name: virt_sandbox_use_netlink name: virt_sandbox_use_netlink
persistent: yes persistent: yes
state: yes state: yes
- name: "creating directory" -
if:
- derive_pci_whitelist_enabled
- - name: "creating directory"
file: file:
state: directory state: directory
path: /var/lib/pci_passthrough_whitelist_scripts path: /var/lib/pci_passthrough_whitelist_scripts
@ -209,6 +227,7 @@ outputs:
mode: 0700 mode: 0700
- name: run derive_pci_passthrough_whitelist.py - name: run derive_pci_passthrough_whitelist.py
command: /var/lib/pci_passthrough_whitelist_scripts/derive_pci_passthrough_whitelist.py command: /var/lib/pci_passthrough_whitelist_scripts/derive_pci_passthrough_whitelist.py
- []
metadata_settings: metadata_settings:
get_attr: [NeutronBase, role_data, metadata_settings] get_attr: [NeutronBase, role_data, metadata_settings]
upgrade_tasks: [] upgrade_tasks: []