Replace hardcoded provider for salt.control state
In case of using custom names for KVM nodes provided in
cookiecutter.json, after applying state salt.control it is not creating
VM's because provider is kvm01, kvm02, kvm03.
Change-Id: I4a7c1692f3e95fae6fc336ce605964cf78c47ea9
diff --git a/salt/control/cluster/openstack_message_queue_cluster.yml b/salt/control/cluster/openstack_message_queue_cluster.yml
index 06252ac..eef6819 100644
--- a/salt/control/cluster/openstack_message_queue_cluster.yml
+++ b/salt/control/cluster/openstack_message_queue_cluster.yml
@@ -13,14 +13,14 @@
engine: virt
node:
msg01:
- provider: kvm01.${_param:cluster_domain}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
image: ${_param:salt_control_trusty_image}
size: openstack.message_queue
msg02:
- provider: kvm02.${_param:cluster_domain}
+ provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
image: ${_param:salt_control_trusty_image}
size: openstack.message_queue
msg03:
- provider: kvm03.${_param:cluster_domain}
+ provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
image: ${_param:salt_control_trusty_image}
size: openstack.message_queue