forked from ungleich-public/cdist-contrib
__netbox: make shellcheck happy
This commit is contained in:
parent
47584d6da6
commit
240b8f1615
1 changed files with 22 additions and 11 deletions
|
@ -23,37 +23,48 @@ case "$os" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export DATABASE_NAME=$(cat "$__object/parameter/database")
|
DATABASE_NAME=$(cat "$__object/parameter/database")
|
||||||
export DATABASE_PASSWORD=$(cat "$__object/parameter/database-password")
|
export DATABASE_NAME
|
||||||
export ALLOWED_HOST=$(cat "$__object/parameter/host")
|
DATABASE_PASSWORD=$(cat "$__object/parameter/database-password")
|
||||||
export SECRET_KEY=$(cat "$__object/parameter/secret-key")
|
export DATABASE_PASSWORD
|
||||||
|
ALLOWED_HOST=$(cat "$__object/parameter/host")
|
||||||
|
export ALLOWED_HOST
|
||||||
|
SECRET_KEY=$(cat "$__object/parameter/secret-key")
|
||||||
|
export SECRET_KEY
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-server" ]; then
|
if [ -f "$__object/parameter/ldap-server" ]; then
|
||||||
export LDAP_SERVER=$(cat "$__object/parameter/ldap-server")
|
LDAP_SERVER=$(cat "$__object/parameter/ldap-server")
|
||||||
|
export LDAP_SERVER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-bind-dn" ]; then
|
if [ -f "$__object/parameter/ldap-bind-dn" ]; then
|
||||||
export LDAP_BIND_DN=$(cat "$__object/parameter/ldap-bind-dn")
|
LDAP_BIND_DN=$(cat "$__object/parameter/ldap-bind-dn")
|
||||||
|
export LDAP_BIND_DN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-bind-password" ]; then
|
if [ -f "$__object/parameter/ldap-bind-password" ]; then
|
||||||
export LDAP_BIND_PASSWORD=$(cat "$__object/parameter/ldap-bind-password")
|
LDAP_BIND_PASSWORD=$(cat "$__object/parameter/ldap-bind-password")
|
||||||
|
export LDAP_BIND_PASSWORD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-user-base" ]; then
|
if [ -f "$__object/parameter/ldap-user-base" ]; then
|
||||||
export LDAP_USER_BASE=$(cat "$__object/parameter/ldap-user-base")
|
LDAP_USER_BASE=$(cat "$__object/parameter/ldap-user-base")
|
||||||
|
export LDAP_USER_BASE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-group-base" ]; then
|
if [ -f "$__object/parameter/ldap-group-base" ]; then
|
||||||
export LDAP_GROUP_BASE=$(cat "$__object/parameter/ldap-group-base")
|
LDAP_GROUP_BASE=$(cat "$__object/parameter/ldap-group-base")
|
||||||
|
export LDAP_GROUP_BASE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-require-group" ]; then
|
if [ -f "$__object/parameter/ldap-require-group" ]; then
|
||||||
export LDAP_REQUIRE_GROUP=$(cat "$__object/parameter/ldap-require-group")
|
LDAP_REQUIRE_GROUP=$(cat "$__object/parameter/ldap-require-group")
|
||||||
|
export LDAP_REQUIRE_GROUP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$__object/parameter/ldap-superuser-group" ]; then
|
if [ -f "$__object/parameter/ldap-superuser-group" ]; then
|
||||||
export LDAP_SUPERUSER_GROUP=$(cat "$__object/parameter/ldap-superuser-group")
|
LDAP_SUPERUSER_GROUP=$(cat "$__object/parameter/ldap-superuser-group")
|
||||||
|
export LDAP_SUPERUSER_GROUP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create system user used to run netbox.
|
# Create system user used to run netbox.
|
||||||
|
|
Loading…
Reference in a new issue