recipe_gentoo/vars.example

154 lines
3.5 KiB
Plaintext
Executable file

# Set absolute PATH for tools
export GREP="/bin/grep"
export ECHO="/bin/echo"
export EMERGE="/usr/bin/emerge"
export NSLOOKUP="/usr/bin/nslookup"
export IP="/bin/ip"
export HOSTNAME="/bin/hostname"
export AWK="/bin/awk"
export SED="/bin/sed"
export CUT="/bin/cut"
export TR="/bin/tr"
export PING="/bin/ping"
export CURL="/usr/bin/curl"
export JQ="/usr/bin/jq"
# Packages to check (it's a list to simplify comment)
export PACKAGES="
virtual/ssh
app-admin/rsyslog
net-misc/ntp
app-backup/borgbackup
sys-process/cronie
net-analyzer/munin
app-portage/eix
app-portage/gentoolkit
app-portage/genlop
app-misc/tmux
net-analyzer/tcpdump
app-editors/vim
sys-process/htop
app-admin/sysklogd
dev-vcs/git
net-analyzer/nrpe
net-analyzer/net-snmp
net-dns/bind-tools
dev-vcs/git
mail-mta/postfix
mail-mta/postfix
app-admin/sudo
"
# Package to check if it's a physical machine
export PACKAGES_PHYSICAL="
sys-apps/smartmontools
"
# Hostname to be resolved in recipes
export NAMES_TO_RESOLV_AND_PING="
grifon.fr
arn-fai.net
grifonfesfdsfdsf.fr
"
# Resolver to check if they are in /etc/resolv.conf
export RESOLVERS="
2a00:5884::7
89.234.186.4
"
# Services to check if they are working/running
export SERVICES_TO_CHECK="
rsyslog
ntpd
munin-node
iptables
ip6tables
sshd
postfix
nrpe
snmpd
hostname
"
# Same but with physical host services
export SERVICES_TO_CHECK_PHYSICAL="
smard
"
# Admin network
export IPV4_ADMIN_NETWORK="172.16.0."
export IPV6_ADMIN_NETWORK="fd00:1111:1111:"
# AS IPs ranges
export RANGE_IPV4_1_NETWORK="89.234.186."
export RANGE_IPV4_2_NETWORK="80.67.190."
export RANGE_IPV6_NETWORK="2a00:5884:"
# Admin hostname of the Monitoring server (Munin + libreNMS)
export NAME_MASTER_MONITORING="serveur-sup.local"
# Address of the Monitoring server in Munin's configuration format
export IPV4_MASTER_MUNIN='^172\\\.16\\\.0\\\.123\$'
export IPV6_MASTER_MUNIN='^fd00:1111:1111::123\$'
# root/operator aliases for mailing
export MAIL_ALIAS_ROOT="adminsys@example.tld"
# General informations and replace space by [[:space:]]* to be used in regex
export DC="Datacenter"
export DC_for_function_check_value_in_conf_file=$(echo -e ${DC} | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | sed -e 's/[[:space:]]/[[:space:]]*/g')
export ENTITY="Entity"
export ENTITY_for_function_check_value_in_conf_file=$(echo -e ${ENTITY} | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | sed -e 's/[[:space:]]/[[:space:]]*/g')
# Backup informations
export BACKUP_SCRIPT="/usr/local/sbin/backup.sh"
export BACKUP_REMOTE_USER="user-backup"
export BACKUP_REMOTE_SERVER="backup.example.tld"
export BACKUP_REMOTE_REPERTORY="/var/backup"
# User and password to request a token on phpIPAM API
export USER_IPAM='ipam-user'
export PASSWORD_IPAM='password'
# URL of the API
export URL="https://ipam.example.tld/api/${USER_IPAM}"
# Gentoo profile
export GENTOO_PROFILE='default/linux/amd64/17.1'
# FOR PORTAGE CHECK
export BINPKGREPO='http://repo.example.com/build/'
export PORTAGE_ACCEPTLICENSE='\* -@EULA' # Escape the asterisk
export PORTAGE_USE='bash-completion
-cairo
dedicated
gitcurl
-graph-bindist
-gtk3
-gtk4
leaps_timezone
lm_sensors
man
munin
openssl
-pulseaudio
-qt4
-qt5
-ruby
-selinux
server
snmp
symlink
-systemd
threads
vim-pager
vim-syntax'
export PORTAGE_CHOST="x86_64-pc-linux-gnu"
export PORTAGE_CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"
export PORTAGE_ORGANIZATION_MIRROR="http://mirror.example.com/gentoo"
export PORTAGE_GRUB_PLATFORMS="pc"
# AUTOUPDATE CHECK
export AUTOUPDATE_SCRIPT="/usr/local/sbin/check_updates.sh"