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
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
|
# Enable/Disable barbican configurations
|
||||||
|
nova_barbican_enabled: False
|
||||||
# Enable/Disable designate configurations
|
# Enable/Disable designate configurations
|
||||||
nova_designate_enabled: False
|
nova_designate_enabled: False
|
||||||
# Notification topics for designate.
|
# Notification topics for designate.
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
state: "{{ nova_package_state }}"
|
state: "{{ nova_package_state }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
||||||
|
when: item != ''
|
||||||
register: install_nova_role_packages
|
register: install_nova_role_packages
|
||||||
async: 600
|
async: 600
|
||||||
poll: 0
|
poll: 0
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
state: "{{ nova_package_state }}"
|
state: "{{ nova_package_state }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
||||||
|
when: item != ''
|
||||||
register: install_nova_role_packages
|
register: install_nova_role_packages
|
||||||
async: 600
|
async: 600
|
||||||
poll: 0
|
poll: 0
|
||||||
|
@ -283,6 +283,14 @@ hw_disk_discard = {{ nova_libvirt_hw_disk_discard }}
|
|||||||
disk_cachemodes = {{ nova_libvirt_disk_cachemodes }}
|
disk_cachemodes = {{ nova_libvirt_disk_cachemodes }}
|
||||||
{% endif %}
|
{% 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]
|
[wsgi]
|
||||||
api_paste_config = /etc/nova/api-paste.ini
|
api_paste_config = /etc/nova/api-paste.ini
|
||||||
{% if nova_external_ssl | bool %}
|
{% if nova_external_ssl | bool %}
|
||||||
|
@ -38,6 +38,7 @@ nova_novnc_distro_packages:
|
|||||||
|
|
||||||
nova_compute_kvm_distro_packages:
|
nova_compute_kvm_distro_packages:
|
||||||
- bridge-utils
|
- bridge-utils
|
||||||
|
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||||
- device-mapper-multipath
|
- device-mapper-multipath
|
||||||
- dosfstools
|
- dosfstools
|
||||||
- genisoimage
|
- genisoimage
|
||||||
|
@ -40,6 +40,7 @@ nova_novnc_distro_packages:
|
|||||||
|
|
||||||
nova_compute_kvm_distro_packages:
|
nova_compute_kvm_distro_packages:
|
||||||
- bridge-utils
|
- bridge-utils
|
||||||
|
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||||
- genisoimage
|
- genisoimage
|
||||||
- kpartx
|
- kpartx
|
||||||
- libvirt-bin
|
- libvirt-bin
|
||||||
@ -57,6 +58,7 @@ nova_compute_kvm_distro_packages:
|
|||||||
|
|
||||||
nova_compute_lxd_distro_packages:
|
nova_compute_lxd_distro_packages:
|
||||||
- bridge-utils
|
- bridge-utils
|
||||||
|
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||||
- dosfstools
|
- dosfstools
|
||||||
- dosfstools-dbg
|
- dosfstools-dbg
|
||||||
- genisoimage
|
- genisoimage
|
||||||
@ -81,6 +83,7 @@ uca_repo: "deb {{ uca_apt_repo_url }} {{ uca_repo_dist }} main"
|
|||||||
# nova powervm virt driver
|
# nova powervm virt driver
|
||||||
nova_compute_powervm_distro_packages:
|
nova_compute_powervm_distro_packages:
|
||||||
- bridge-utils
|
- bridge-utils
|
||||||
|
- "{% if nova_barbican_enabled | bool %}cryptsetup{% endif %}"
|
||||||
- genisoimage
|
- genisoimage
|
||||||
- kpartx
|
- kpartx
|
||||||
- open-iscsi
|
- open-iscsi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user