- controller_ip=$(ssh 2>/dev/null ${ssh_options} ubuntu@${installer_ip} \
- "sudo salt --out txt 'ctl01*' pillar.get _param:openstack_control_address | awk '{print \$2}'" | \
- sed 's/ //g') &> /dev/null
+ controller_ip=$(ssh 2>/dev/null ${ssh_options} "${ssh_user}@${installer_ip}" \
+ "sudo salt --out yaml 'ctl*' pillar.get _param:openstack_control_address | \
+ awk '{print \$2; exit}'") &> /dev/null
+
+ info "... from controller ${controller_ip} ..."
+ ssh ${ssh_options} "${ssh_user}@${controller_ip}" \
+ "sudo cat /root/keystonercv3" > "${dest_path}"