Skip to content

Commit 7657f11

Browse files
authored
Merge pull request #204 from shiftstack/barbican
Allow to easily enable Barbican (with Simple Crypto)
2 parents 37ab891 + 3fe3345 commit 7657f11

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
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/prepare_host.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@
6767
- 2022
6868
register: rhca
6969

70-
- name: Add the certificate to the local trust bundle # noqa no-changed-when
70+
- name: Add the certificate to the local trust bundle # noqa no-changed-when no-handler
7171
ansible.builtin.shell: |
7272
update-ca-trust enable
7373
update-ca-trust extract
7474
when: rhca.changed
7575

7676
- name: Configure rhos release and keep puddle name for "{{ rhos_release }}" # noqa no-changed-when
77-
ansible.builtin.shell: rhos-release "{{ rhos_release }}" | awk '/^# rhos-release/ { print $5 }'
77+
ansible.builtin.command: rhos-release "{{ rhos_release }}" | awk '/^# rhos-release/ { print $5 }'
7878
register: rhos_release_puddle
7979

8080
- name: Extract puddle name from rhos-release output

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)