Seprate the creds from the script
This commit is contained in:
parent
9c7b47ac2e
commit
4c7d508635
11
creationRoutesVM.sh
Normal file → Executable file
11
creationRoutesVM.sh
Normal file → Executable file
|
@ -10,9 +10,14 @@
|
|||
# - LOG_PLACE
|
||||
# - CHEMIN_CACHE
|
||||
|
||||
# Informations d'indentification IPAM
|
||||
USER_IPAM=""
|
||||
PASSWORD_IPAM=""
|
||||
# IPAM creds
|
||||
if [ -f creds ]; then
|
||||
source creds
|
||||
else
|
||||
printf 'Can’t source "creds": file not found\n'
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
# ID subnets IPAM V4 et V6 contenants les VMs
|
||||
ID_RANGES_V4=( "74" "181" )
|
||||
|
|
3
creds.example
Normal file
3
creds.example
Normal file
|
@ -0,0 +1,3 @@
|
|||
# User and password to request a token on phpIPAM API
|
||||
USER_IPAM='user'
|
||||
PASSWORD_IPAM='passwd'
|
Loading…
Reference in a new issue