[reclass] Ensure pxe_admin_address is set for all 71/62971/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 25 Sep 2018 18:16:23 +0000 (20:16 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 26 Sep 2018 11:59:34 +0000 (13:59 +0200)
Some nodes did not rely on the _param:pxe_admin_address internal
reclass param, although all of them do have an IP address in the
PXE/admin network segment.

Ensure all nodes define this param, so we can query all nodes with:
$ salt '*' pillar.item _param:pxe_admin_address

JIRA: FUEL-394

Change-Id: I7575934752c8b459c52af8a8c98c2b0327756428
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2
mcp/reclass/classes/cluster/mcp-common-noha/infra/config.yml.j2

index 9d51158..e16453e 100644 (file)
@@ -26,7 +26,8 @@ parameters:
     linux_system_codename: xenial
     maas_admin_username: opnfv
     dns_server01: '{{ nm.dns_public[0] }}'
-    single_address: ${_param:infra_maas_node01_deploy_address}
+    pxe_admin_address: ${_param:infra_maas_node01_deploy_address}
+    single_address: ${_param:pxe_admin_address}
     hwe_kernel: 'hwe-16.04'
     opnfv_maas_timeout_comissioning: {{ nm.maas_timeout_comissioning }}
     opnfv_maas_timeout_deploying: {{ nm.maas_timeout_deploying }}
index a6bf5cd..314cde7 100644 (file)
@@ -13,6 +13,7 @@ classes:
 parameters:
   _param:
     openstack_control_node01_hostname: ctl01
+    pxe_admin_address: ${_param:reclass_config_master}
     single_address: ${_param:opnfv_infra_config_address}
     salt_master_host: 127.0.0.1
     salt_minion_ca_host: ${linux:network:fqdn}