File tree Expand file tree Collapse file tree 5 files changed +32
-8
lines changed
kolla/config/haproxy/services.d Expand file tree Collapse file tree 5 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,9 @@ OpenStack Capacity
141
141
==================
142
142
143
143
OpenStack Capacity allows you to see how much space you have avaliable
144
- in your cloud. StackHPC Kayobe Config includes this exporter by default
145
- and it's necessary that some variables are set to allow deployment.
144
+ in your cloud. StackHPC Kayobe Config includes a playbook for manual
145
+ deployment, and it's necessary that some variables are set to before
146
+ running this playbook.
146
147
147
148
To successfully deploy OpenStack Capacity, you are required to specify
148
149
the OpenStack application credentials in ``kayobe/secrets.yml `` as:
@@ -153,6 +154,13 @@ the OpenStack application credentials in ``kayobe/secrets.yml`` as:
153
154
secrets_os_exporter_credential_id : <some_credential_id>
154
155
secrets_os_exporter_credential_secret : <some_credential_secret>
155
156
157
+ Additionally, you are required to enable a conditional flag to allow
158
+ HAProxy configuration to be templated to controllers during deployment.
159
+
160
+ .. code-block :: yaml
161
+
162
+ stackhpc_enable_os_capacity : true
163
+
156
164
After defining your credentials, You may deploy OpenStack Capacity
157
165
using the ``ansible/deploy-os-capacity-exporter.yml `` Ansible playbook
158
166
via Kayobe.
Original file line number Diff line number Diff line change 1
1
clouds:
2
2
openstack:
3
3
auth:
4
- auth_url: "{{ secrets_os_exporter_auth_url }}"
5
- application_credential_id: "{{ secrets_os_exporter_credential_id }}"
6
- application_credential_secret: "{{ secrets_os_exporter_credential_secret }}"
4
+ auth_url: "{{ secrets_os_capacity_auth_url }}"
5
+ application_credential_id: "{{ secrets_os_capacity_credential_id }}"
6
+ application_credential_secret: "{{ secrets_os_capacity_credential_secret }}"
7
7
region_name: "RegionOne"
8
8
interface: "internal"
9
9
identity_api_version: 3
Original file line number Diff line number Diff line change
1
+ {% if stackhpc_enable_os_capacity | bool %}
1
2
{% raw %}
2
3
frontend os_capacity_frontend
3
4
mode http
@@ -17,3 +18,4 @@ backend os_capacity_backend
17
18
server {{ host_name }} {{ host_ip }}:9000 check inter 2000 rise 2 fall 5
18
19
{% endfor %}
19
20
{% endraw %}
21
+ {% endif %}
Original file line number Diff line number Diff line change 9
9
alertmanager_low_memory_threshold_gib : 5
10
10
11
11
# ##############################################################################
12
+
13
+ # ##############################################################################
14
+ # Exporter configuration
15
+
16
+ # Whether the OpenStack Capacity exporter is enabled.
17
+ # Enabling this flag will result in HAProxy configuration being templated during
18
+ # deployment.
19
+ stackhpc_enable_os_capacity : false
20
+
21
+ # ##############################################################################
Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ upgrade:
9
9
- |
10
10
To deploy the OpenStack Capacity Grafana dashboard, you must
11
11
define OpenStack application credential variables:
12
- ``secrets_os_exporter_auth_url ``,
13
- ``secrets_os_exporter_credential_id `` and
14
- ``secrets_os_exporter_credential_secret `` as laid out in the
12
+ ``secrets_os_capacity_auth_url ``,
13
+ ``secrets_os_capacity_credential_id `` and
14
+ ``secrets_os_capacity_credential_secret `` as laid out in the
15
15
'Monitoring' documentation.
16
+
17
+ You must also enable the ``stackhpc_enable_os_capacity``
18
+ flag for OpenStack Capacity HAProxy configuration to be
19
+ templated.
You can’t perform that action at this time.
0 commit comments