Handle the hardcoded configuration values
This patch allows to customize the hardcoded configuration values,
as well as introduce new configuration options for ironic services
by configmap template with the specified sections:
ironic:
api:
configmap:
DEFAULT:
enabled_drivers: pxe_ipmitool
enabled_hardware_types: ipmi
enabled_boot_interfaces: pxe
api:
host_ip: 0.0.0.0
port: 6385
max_limit: 1000
conductor:
configmap:
DEFAULT:
enabled_drivers: pxe_ipmitool
enabled_hardware_types: ipmi
enabled_boot_interfaces: pxe
disk_partitioner:
check_device_interval: 1
check_device_max_retries: 20
disk_utils:
efi_system_partition_size: 200
bios_boot_partition_size: 1
Change-Id: I0876284d7dcf9b4dd40478c6ef5fd66878b1c0bd
Related-Prod: PROD-29627
(cherry picked from commit c2db7140545de5506ef726b0ffe7da671428e8b6)
diff --git a/tests/pillar/api_single.sls b/tests/pillar/api_single.sls
index 72800fe..365a526 100644
--- a/tests/pillar/api_single.sls
+++ b/tests/pillar/api_single.sls
@@ -32,3 +32,12 @@
enabled: true
strategy: ENCRYPT
secret_key: secret
+ configmap:
+ DEFAULT:
+ enabled_drivers: pxe_ipmitool
+ enabled_hardware_types: ipmi
+ enabled_boot_interfaces: pxe
+ api:
+ host_ip: 0.0.0.0
+ port: 6385
+ max_limit: 1000
diff --git a/tests/pillar/conductor_single.sls b/tests/pillar/conductor_single.sls
index 616e456..155695a 100644
--- a/tests/pillar/conductor_single.sls
+++ b/tests/pillar/conductor_single.sls
@@ -20,6 +20,17 @@
identity:
engine: 'noauth'
http_root: '/var/www/httproot'
+ configmap:
+ DEFAULT:
+ enabled_drivers: pxe_ipmitool
+ enabled_hardware_types: ipmi
+ enabled_boot_interfaces: pxe
+ disk_partitioner:
+ check_device_interval: 1
+ check_device_max_retries: 20
+ disk_utils:
+ efi_system_partition_size: 200
+ bios_boot_partition_size: 1
tftpd_hpa:
server:
bind: