File tree Expand file tree Collapse file tree 7 files changed +42
-3
lines changed
environments/ci-multinode Expand file tree Collapse file tree 7 files changed +42
-3
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,21 @@ project domain name in ``stackhpc-monitoring.yml``:
160
160
stackhpc_os_capacity_openstack_region_name : <openstack_region_name>
161
161
162
162
Additionally, you should ensure these credentials have the correct permissions
163
- for the exporter. If you are deploying in a cloud with internal TLS, you may be required
164
- to disable certificate verification for the OpenStack Capacity exporter
165
- if your certificate is not signed by a trusted CA.
163
+ for the exporter.
164
+
165
+ .. _os-capacity-cacert :
166
+
167
+ If you are deploying in a cloud with internal TLS, you may be required
168
+ to provide a CA certificate for the OpenStack Capacity exporter if your
169
+ certificate is not signed by a trusted CA. For example, to use a CA certificate
170
+ named ``vault.crt `` that is also added to the Kolla containers:
171
+
172
+ .. code-block :: yaml
173
+
174
+ stackhpc_os_capacity_openstack_cacert : " {{ kayobe_env_config_path }}/kolla/certificates/ca/vault.crt"
175
+
176
+ Alternatively, to disable certificate verification for the OpenStack Capacity
177
+ exporter:
166
178
167
179
.. code-block :: yaml
168
180
Original file line number Diff line number Diff line change @@ -196,6 +196,8 @@ Enable the required TLS variables in kayobe and kolla
196
196
# Whether TLS is enabled for the internal API endpoints. Default is 'no'.
197
197
kolla_enable_tls_internal: yes
198
198
199
+ See :ref: `os-capacity-cacert ` for information on adding CA certificates to the trust store when deploying the OpenStack Capacity exporter.
200
+
199
201
2. Set the following in etc/kayobe/kolla/globals.yml or if environments are being used etc/kayobe/environments/$KAYOBE_ENVIRONMENT/kolla/globals.yml
200
202
201
203
.. code-block ::
Original file line number Diff line number Diff line change 27
27
delegate_to : localhost
28
28
register : credential
29
29
when : stackhpc_enable_os_capacity
30
+ changed_when : false
30
31
31
32
- name : Set facts for admin credentials
32
33
ansible.builtin.set_fact :
43
44
src : templates/os_capacity-clouds.yml.j2
44
45
dest : /opt/kayobe/os-capacity/clouds.yaml
45
46
when : stackhpc_enable_os_capacity
47
+ register : clouds_yaml_result
48
+
49
+ - name : Copy CA certificate to OpenStack Capacity nodes
50
+ ansible.builtin.copy :
51
+ src : " {{ stackhpc_os_capacity_openstack_cacert }}"
52
+ dest : /opt/kayobe/os-capacity/cacert.pem
53
+ when :
54
+ - stackhpc_enable_os_capacity
55
+ - stackhpc_os_capacity_openstack_cacert | length > 0
56
+ register : cacert_result
46
57
47
58
- name : Ensure os_capacity container is running
48
59
community.docker.docker_container :
56
67
source : /opt/kayobe/os-capacity/
57
68
target : /etc/openstack/
58
69
network_mode : host
70
+ restart : " {{ clouds_yaml_result is changed or cacert_result is changed }}"
59
71
restart_policy : unless-stopped
60
72
become : true
61
73
when : stackhpc_enable_os_capacity
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ clouds:
10
10
interface: "internal"
11
11
identity_api_version: 3
12
12
auth_type: "password"
13
+ {% if stackhpc_os_capacity_openstack_cacert | length > 0 %}
14
+ cacert: /etc/openstack/cacert.pem
15
+ {% endif %}
13
16
{% if not stackhpc_os_capacity_openstack_verify | bool %}
14
17
verify: False
15
18
{% endif %}
Original file line number Diff line number Diff line change
1
+ ---
2
+ # Path to a CA certificate file to trust in the OpenStack Capacity exporter.
3
+ stackhpc_os_capacity_openstack_cacert : " {{ kayobe_env_config_path }}/kolla/certificates/ca/vault.crt"
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ alertmanager_warn_network_bond_single_link: true
20
20
# targets being templated during deployment.
21
21
stackhpc_enable_os_capacity : true
22
22
23
+ # Path to a CA certificate file to trust in the OpenStack Capacity exporter.
24
+ stackhpc_os_capacity_openstack_cacert : " "
25
+
23
26
# Whether TLS certificate verification is enabled for the OpenStack Capacity
24
27
# exporter during Keystone authentication.
25
28
stackhpc_os_capacity_openstack_verify : true
Original file line number Diff line number Diff line change
1
+ ---
2
+ features :
3
+ - |
4
+ Adds support for providing a CA certificate for OpenStack Capacity exporter.
You can’t perform that action at this time.
0 commit comments