mirror of https://github.com/sipwise/ngcpcfg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.8 KiB
57 lines
2.8 KiB
# directory name where ngcpcfg is managed through git
|
|
[ -n "${NGCPCTL_BASE:-}" ] || NGCPCTL_BASE="$(pwd)/"
|
|
[ -n "${NGCPCTL_MAIN:-}" ] || NGCPCTL_MAIN="${NGCPCTL_BASE}/fixtures/repos/"
|
|
[ -n "${NGCPCTL_CONFIG:-}" ] || NGCPCTL_CONFIG="${NGCPCTL_MAIN}/config.yml"
|
|
[ -n "${NODE_CONFIG:-}" ] || NODE_CONFIG="${NGCPCTL_MAIN}/config.node.yml"
|
|
[ -n "${PAIR_CONFIG:-}" ] || PAIR_CONFIG="${NGCPCTL_MAIN}/config.pair.yml"
|
|
[ -n "${HOST_CONFIG:-}" ] || HOST_CONFIG="${NGCPCTL_MAIN}/config.sp1.yml"
|
|
[ -n "${LOCAL_CONFIG:-}" ] || LOCAL_CONFIG="${NGCPCTL_MAIN}/constants_local_pro.yml"
|
|
[ -n "${CONSTANTS_CONFIG:-}" ] || CONSTANTS_CONFIG="${NGCPCTL_MAIN}/constants.yml"
|
|
[ -n "${MAINTENANCE_CONFIG:-}" ] || MAINTENANCE_CONFIG="${NGCPCTL_MAIN}/maintenance.yml"
|
|
[ -n "${NETWORK_CONFIG:-}" ] || NETWORK_CONFIG="${NGCPCTL_MAIN}/network_pro_instances.yml"
|
|
[ -n "${RTP_INTERFACES_CONFIG:-}" ] || RTP_INTERFACES_CONFIG="/etc/ngcp-rtpengine-daemon/interfaces.yml"
|
|
[ -n "${EXTRA_CONFIG_DIR:-}" ] || EXTRA_CONFIG_DIR="${NGCPCTL_MAIN}/config.d/"
|
|
|
|
# configuration dirs that should be managed
|
|
[ -n "${CONFIG_POOL:-}" ] || CONFIG_POOL='/etc /var'
|
|
|
|
# location of templates
|
|
[ -n "${TEMPLATE_POOL_BASE:-}" ] || TEMPLATE_POOL_BASE="${NGCPCTL_MAIN}/templates"
|
|
|
|
# location of service definitions
|
|
[ -n "${SERVICES_POOL_BASE:-}" ] || SERVICES_POOL_BASE="${NGCPCTL_MAIN}/templates"
|
|
|
|
# location of sites info for templates
|
|
[ -n "${SITES_DIR:-}" ] || SITES_DIR="${NGCPCTL_MAIN}/sites"
|
|
[ -n "${SITES_CONFIG:-}" ] || SITES_CONFIG="${NGCPCTL_MAIN}/sites.yml"
|
|
|
|
# timestamp format for console output
|
|
[ -n "${TIME_FORMAT:-}" ] || TIME_FORMAT="+%F %T"
|
|
|
|
# Run-time state directory
|
|
[ -n "${RUN_DIR:-}" ] || RUN_DIR='/run'
|
|
|
|
# directory holding files for internal state of ngcpcfg
|
|
[ -n "${STATE_FILES_DIR:-}" ] || STATE_FILES_DIR='/var/lib/ngcpcfg/state/'
|
|
|
|
# validate configs using kwalify schema
|
|
[ -n "${VALIDATE_SCHEMA:-}" ] || VALIDATE_SCHEMA="false"
|
|
|
|
# file ownership and permissions for YML files
|
|
[ -n "${CONFIG_USER:-}" ] || CONFIG_USER="root"
|
|
[ -n "${CONFIG_GROUP:-}" ] || CONFIG_GROUP="_ngcp-admin"
|
|
[ -n "${CONFIG_CHMOD:-}" ] || CONFIG_CHMOD="0660"
|
|
[ -n "${CONSTANTS_CONFIG_USER:-}" ] || CONSTANTS_CONFIG_USER="root"
|
|
[ -n "${CONSTANTS_CONFIG_GROUP:-}" ] || CONSTANTS_CONFIG_GROUP="root"
|
|
[ -n "${CONSTANTS_CONFIG_CHMOD:-}" ] || CONSTANTS_CONFIG_CHMOD="0600"
|
|
[ -n "${MAINTENANCE_CONFIG_USER:-}" ] || MAINTENANCE_CONFIG_USER="root"
|
|
[ -n "${MAINTENANCE_CONFIG_GROUP:-}" ] || MAINTENANCE_CONFIG_GROUP="_ngcp-admin"
|
|
[ -n "${MAINTENANCE_CONFIG_CHMOD:-}" ] || MAINTENANCE_CONFIG_CHMOD="0660"
|
|
[ -n "${NETWORK_CONFIG_USER:-}" ] || NETWORK_CONFIG_USER="root"
|
|
[ -n "${NETWORK_CONFIG_GROUP:-}" ] || NETWORK_CONFIG_GROUP="_ngcp-admin"
|
|
[ -n "${NETWORK_CONFIG_CHMOD:-}" ] || NETWORK_CONFIG_CHMOD="0660"
|
|
|
|
[ -n "${NODE_FILE:-}" ] || NODE_FILE='.sp1'
|
|
|
|
## END OF FILE #################################################################
|