Add variable to enable integration with barbican
Add a new variable, 'nova_barbican_enabled', that will handle setting the configuration options and installing packages required to make use of barbican. Change-Id: I61eddc831825a9274ff26caf62da44798336e99d
This commit is contained in:
parent
3dcf3b5da7
commit
aae4f01aff
@ -13,6 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
# Enable/Disable barbican configurations
|
||||
nova_barbican_enabled: False
|
||||
# Enable/Disable designate configurations
|
||||
nova_designate_enabled: False
|
||||
# Notification topics for designate.
|
||||
|
@ -49,6 +49,7 @@
|
||||
state: "{{ nova_package_state }}"
|
||||
with_items:
|
||||
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
||||
when: item != ''
|
||||
register: install_nova_role_packages
|
||||
async: 600
|
||||
poll: 0
|
||||
|
@ -30,6 +30,7 @@
|
||||
state: "{{ nova_package_state }}"
|
||||
with_items:
|
||||
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
||||
when: item != ''
|
||||
register: install_nova_role_packages
|
||||
async: 600
|
||||
poll: 0
|
||||
|
@ -283,6 +283,14 @@ hw_disk_discard = {{ nova_libvirt_hw_disk_discard }}
|
||||
disk_cachemodes = {{ nova_libvirt_disk_cachemodes }}
|
||||
{% endif %}
|
||||
|
||||
{% if nova_barbican_enabled %}
|
||||
[barbican]
|
||||
auth_endpoint = {{ keystone_service_internaluri }}/v3
|
||||
|
||||
[key_manager]
|
||||
api_class = castellan.key_manager.barbican_key_manager.BarbicanKeyManager
|
||||
{% endif %}
|
||||
|
||||
[wsgi]
|
||||
api_paste_config = /etc/nova/api-paste.ini
|
||||
{% if nova_external_ssl | bool %}
|
||||
|
@ -38,6 +38,7 @@ nova_novnc_distro_packages:
|
||||
|
||||
nova_compute_kvm_distro_packages:
|
||||
- bridge-utils
|
||||
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||
- device-mapper-multipath
|
||||
- dosfstools
|
||||
- genisoimage
|
||||
|
@ -40,6 +40,7 @@ nova_novnc_distro_packages:
|
||||
|
||||
nova_compute_kvm_distro_packages:
|
||||
- bridge-utils
|
||||
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||
- genisoimage
|
||||
- kpartx
|
||||
- libvirt-bin
|
||||
@ -57,6 +58,7 @@ nova_compute_kvm_distro_packages:
|
||||
|
||||
nova_compute_lxd_distro_packages:
|
||||
- bridge-utils
|
||||
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||
- dosfstools
|
||||
- dosfstools-dbg
|
||||
- genisoimage
|
||||
@ -81,6 +83,7 @@ uca_repo: "deb {{ uca_apt_repo_url }} {{ uca_repo_dist }} main"
|
||||
# nova powervm virt driver
|
||||
nova_compute_powervm_distro_packages:
|
||||
- bridge-utils
|
||||
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||
- genisoimage
|
||||
- kpartx
|
||||
- open-iscsi
|
||||
|
Loading…
x
Reference in New Issue
Block a user