Mohammed Naser | f3f59a7 | 2023-01-15 21:02:04 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | {{/* |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */}} |
| 16 | |
| 17 | set -ex |
| 18 | |
| 19 | exec nova-compute \ |
| 20 | --config-file /etc/nova/nova.conf \ |
Rico Lin | 885c515 | 2023-11-02 01:28:20 +0800 | [diff] [blame] | 21 | {{- if .Values.console.address_search_enabled }} |
Mohammed Naser | f3f59a7 | 2023-01-15 21:02:04 -0500 | [diff] [blame] | 22 | --config-file /tmp/pod-shared/nova-console.conf \ |
Rico Lin | 885c515 | 2023-11-02 01:28:20 +0800 | [diff] [blame] | 23 | {{- end }} |
| 24 | {{- if .Values.conf.libvirt.address_search_enabled }} |
Mohammed Naser | f3f59a7 | 2023-01-15 21:02:04 -0500 | [diff] [blame] | 25 | --config-file /tmp/pod-shared/nova-libvirt.conf \ |
Rico Lin | 885c515 | 2023-11-02 01:28:20 +0800 | [diff] [blame] | 26 | {{- end }} |
Mohammed Naser | f3f59a7 | 2023-01-15 21:02:04 -0500 | [diff] [blame] | 27 | {{- if and ( empty .Values.conf.nova.DEFAULT.host ) ( .Values.pod.use_fqdn.compute ) }} |
| 28 | --config-file /tmp/pod-shared/nova-compute-fqdn.conf \ |
| 29 | {{- end }} |
Rico Lin | 885c515 | 2023-11-02 01:28:20 +0800 | [diff] [blame] | 30 | {{- if .Values.conf.hypervisor.address_search_enabled }} |
Mohammed Naser | f3f59a7 | 2023-01-15 21:02:04 -0500 | [diff] [blame] | 31 | --config-file /tmp/pod-shared/nova-hypervisor.conf |
Rico Lin | 885c515 | 2023-11-02 01:28:20 +0800 | [diff] [blame] | 32 | {{- end }} |