blob: 578d2e754c1ad5b3c18f90246faabe74407931dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#Heat related configuration function(s)
heat-conf_chefsolo_template() {
file_name=$1
if [ -e $file_name ]; then
sed "s/$DB_USER:/<%=node[:DB_USER]%>:/g" -i $file_name
sed "s/$DB_PASSWORD@/<%=node[:DB_PASSWORD]%>@/g" -i $file_name
sed "s/^auth_host =.*$/auth_host = <%=node[:CONTROLLER_IP]%> /" -i $file_name
sed "s/^admin_tenant_name =.*$/admin_tenant_name = <%=node[:SERVICE_TENANT_NAME]%> /" -i $file_name
sed "s/^admin_password =.*$/admin_password = <%=node[:ADMIN_PASSWORD]%> /" -i $file_name
sed "s/$CONTROLLER_IP/<%=node[:CONTROLLER_IP]%>/g" -i $file_name
sed "s/$CONTROLLER_HOST/<%=node[:CONTROLLER_HOST]%>/g" -i $file_name
mv $file_name $file_name$SUFFIX
fi
}
|