185dd9305a
Adds ability for deploy-time auth checks to allow/disallow functionality, in line with other openstack projects. Includes update of code in openstack/common, which is why the patchset is so large. oslo-incubator changeset is May 27th caed79d8239679cb74476bb0d9e5011b4fcc39da. Implements blueprint policy-checks-in-api Change-Id: I67a431dcc74f0a77ed48b7a489136d5008773cea
26 lines
686 B
Bash
Executable File
26 lines
686 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
PROJECT_NAME=${PROJECT_NAME:-murano}
|
|
CFGFILE_NAME=${PROJECT_NAME}.conf.sample
|
|
|
|
if [ -e etc/${PROJECT_NAME}/${CFGFILE_NAME} ]; then
|
|
CFGFILE=etc/${PROJECT_NAME}/${CFGFILE_NAME}
|
|
elif [ -e etc/${CFGFILE_NAME} ]; then
|
|
CFGFILE=etc/${CFGFILE_NAME}
|
|
else
|
|
echo "${0##*/}: can not find config file"
|
|
exit 1
|
|
fi
|
|
|
|
TEMPDIR=`mktemp -d /tmp/${PROJECT_NAME}.XXXXXX`
|
|
trap "rm -rf $TEMPDIR" EXIT
|
|
|
|
tools/config/generate_sample.sh -b ./ -p ${PROJECT_NAME} -o ${TEMPDIR}
|
|
|
|
if ! diff -u ${TEMPDIR}/${CFGFILE_NAME} ${CFGFILE}
|
|
then
|
|
echo "${0##*/}: ${PROJECT_NAME}.conf.sample is not up to date."
|
|
echo "${0##*/}: Please run ${0%%${0##*/}}generate_sample.sh."
|
|
exit 1
|
|
fi
|