Skip to content

Commit 051c22c

Browse files
committed
Allow to easily enable Barbican (with Simple Crypto)
1 parent 37ab891 commit 051c22c

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

playbooks/install_stack.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,17 @@
327327
octavia_env:
328328
- /usr/share/openstack-tripleo-heat-templates/environments/services/octavia.yaml
329329

330+
- name: Enable Barbican
331+
when: barbican_enabled
332+
block:
333+
- name: Add barbican to enabled services
334+
ansible.builtin.set_fact:
335+
service_envs: "{{ service_envs | union(barbican_env) }}"
336+
vars:
337+
barbican_env:
338+
- /usr/share/openstack-tripleo-heat-templates/environments/services/barbican.yaml
339+
- /usr/share/openstack-tripleo-heat-templates/environments/barbican-backend-simple-crypto.yaml
340+
330341
- name: Generate container_image_prepare.yaml if not using rhos-release # noqa no-changed-when
331342
when:
332343
- cip_config is not defined

playbooks/templates/standalone_parameters.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ parameter_defaults:
106106
OctaviaCaKeyPassphrase: "secrete"
107107
OctaviaAmphoraSshKeyFile: "{{ ansible_env.HOME }}/octavia.pub"
108108
OctaviaAmphoraImageFilename: "{{ ansible_env.HOME }}/amphora.qcow2"
109+
BarbicanSimpleCryptoGlobalDefault: true
109110
CinderApiPolicies:
110111
cinder-vol-state-set:
111112
key: "volume_extension:volume_admin_actions:reset_status"

playbooks/vars/defaults.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ ceph_loop_device_size: 100
139139

140140
octavia_enabled: true
141141

142+
barbican_enabled: false
143+
142144
manila_enabled: false
143145
# Workaround for BZ#1969962
144146
manila_services:

0 commit comments

Comments
 (0)