management-script/utils/config.template

35 lines
1.1 KiB
Plaintext

## Bash strict mode ####################################
# Theses setting are usefull for keep in safe you're infrastructure
set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # don't hide errors within pipes
## Define variables ####################################
# For each token, give all right of you're account (read, write, put, patch, delete, clone (proxmox) etc...)
NETBOX_URL="https://netbox.exemple"
NETBOX_API_PATH="/api"
NETBOX_TOKEN=""
PROXMOX_HOST="https://proxmox.example:8006"
PROXMOX_USER="user"
PROXMOX_PASSWORD=""
ZABBIX_USER="user"
ZABBIX_PASS=""
ZABBIX_SERVER="zabbix.example"
ZABBIX_API="https://${ZABBIX_SERVER}/api_jsonrpc.php"
ZABBIX_HOSTGROUPID1=2
ZABBIX_HOSTGROUPID2=15
ZABBIX_TEMPLATEID=10001
# This variable is usefull to run postinstall playbook
ANSIBLE_PATH="/home/ansible/Ansible"
POSTINSTALL="postint.yml ferm.yml"
RUDDER_API_TOKEN=""
RUDDER_SRV="https://rudder.example"
UPGRADERAM="/your/git/path/management-script/upgraderam.sh"
UPGRADECPU="/your/git/path/management-script/upgradecpu.sh"