|
165 | 165 | - "{{ node_config_directory }}/ironic/{{ inventory_hostname }}/ironic-prometheus-exporter-wsgi.conf" |
166 | 166 | - "{{ node_config_directory }}/ironic/ironic-prometheus-exporter-wsgi.conf" |
167 | 167 | - "ironic-prometheus-exporter-wsgi.conf.j2" |
168 | | - when: service | service_enabled_and_mapped_to_host |
| 168 | + when: |
| 169 | + - service | service_enabled_and_mapped_to_host |
| 170 | + - ironic_wsgi_provider == "apache" |
169 | 171 |
|
170 | 172 | - name: Copying over existing Ironic policy file |
171 | 173 | vars: |
|
199 | 201 | name: service-uwsgi-config |
200 | 202 | vars: |
201 | 203 | project_services: "{{ ironic_services }}" |
202 | | - service: "{{ ironic_services['ironic-api'] }}" |
203 | | - service_name: "ironic-api" |
204 | | - service_uwsgi_config_http_port: "{{ ironic_api_listen_port }}" |
| 204 | + service: "{{ ironic_services[item.name] }}" |
| 205 | + service_name: "{{ item.name }}" |
| 206 | + service_uwsgi_config_http_port: "{{ item.port }}" |
205 | 207 | service_uwsgi_config_log_file_chmod: "644" |
206 | 208 | service_uwsgi_config_module: "{{ service.wsgi }}" |
207 | 209 | service_uwsgi_config_tls_backend: "{{ ironic_enable_tls_backend | bool }}" |
208 | 210 | service_uwsgi_config_tls_cert: "/etc/ironic/certs/ironic-cert.pem" |
209 | 211 | service_uwsgi_config_tls_key: "/etc/ironic/certs/ironic-key.pem" |
210 | 212 | service_uwsgi_config_uid: "ironic" |
211 | | - service_uwsgi_config_workers: "{{ ironic_api_workers }}" |
| 213 | + service_uwsgi_config_workers: "{{ item.workers }}" |
212 | 214 | when: |
213 | 215 | - service | service_enabled_and_mapped_to_host |
214 | 216 | - ironic_wsgi_provider == "uwsgi" |
| 217 | + loop: |
| 218 | + - { name: "ironic-api", port: "{{ ironic_api_listen_port }}", workers: "{{ ironic_api_workers }}" } |
| 219 | + - { name: "ironic-prometheus-exporter", port: "{{ ironic_prometheus_exporter_port }}", workers: "{{ ironic_prometheus_exporter_workers }}" } |
0 commit comments