From dcbdf6bae6a8c39abd8b53df9d5f86468d54b2eb Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Fri, 14 Jan 2022 15:48:59 +0100 Subject: [PATCH] small documentation fixes, added missing ansi_shadow font file, added configuration for an host --- README.md | 6 +- conf/panay.conf.sh | 66 +++ doc/dev.md | 13 +- repo/common/profile/ansi_shadow.flf | 722 ++++++++++++++++++++++++++++ 4 files changed, 798 insertions(+), 9 deletions(-) create mode 100644 conf/panay.conf.sh create mode 100644 repo/common/profile/ansi_shadow.flf diff --git a/README.md b/README.md index 97f3313..80a7cd5 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ options. After that all the configured modules with the ```$MODULE_LIST``` variable are loaded to be availble for execution. Note that even function that might not be used will be loaded. At this point everything that will be necessary for checks -and modification will be available in the scripts esecution environment. If the +and modification will be available in the scripts execution environment. If the ```--shell``` command line option is given, the subshell is loaded just after this point. @@ -290,7 +290,7 @@ cron_@template@() export -f @template@ export -f precheck_@template@ -# If cron_@template@ exists : +# If cron_@template@ exists: export -f cron_@template@ ``` @@ -350,7 +350,7 @@ don't plan to contribute. ### 5.2. Bugs **init.sh** have no bug tracker yet. For now, if you find a bug, please submit a -bag report to the maintenor mentionned at the end of that document. A bug report +bug report to the maintenor mentionned at the end of that document. A bug report may contain the command line parameters where the bug happens, OS details, the module that trigger it if any, and the log file containing the error. diff --git a/conf/panay.conf.sh b/conf/panay.conf.sh new file mode 100644 index 0000000..cc4a9d5 --- /dev/null +++ b/conf/panay.conf.sh @@ -0,0 +1,66 @@ +# Fichier de configuration principal + +# ------------------------------------------------------------------------------ +# -------------------- Importation de paramêtres globaux ----------------------- +# ------------------------------------------------------------------------------ + +# Importe les paramètres geoffray-levasseur.org +. $MYPATH/conf/includes/gl.conf.sh + +# Importe la sélection de paquets par défaut +. $MYPATH/conf/includes/pkgsel.base.conf.sh + +# Les paramètres précédemment importés sont surchargeable après cette ligne + +# ------------------------------------------------------------------------------ +# ------------------------------ General Section ------------------------------- +# ------------------------------------------------------------------------------ + +# User of the machine (must exists) +MAINUSER=root + +# Authentication: use LDAP+Kerberos ? +WITH_LDAP_KERB=no + +# Users to create, add or remove +#LOCAL_USERS="$MAINUSER" +#REMOTE_USERS="kroot" +REMOVE_USERS=fatal + +# Network +IPV4_IFACES="eth0 eth1" + +NET4_MODE_eth0="static" +NET4_IP_eth0="192.168.1.212/24" +NET4_GW_eth0="192.168.1.230" +NET4_NS_eth0="192.168.1.205 192.168.1.206" +NET4_NS_SEARCH_eth0=$REALM + +NET4_MODE_eth1="static" +NET4_IP_eth1="10.0.254.212/16" + +IPV6_IFACES="eth0" + +NET6_MODE_eth0="static" +NET6_IP_eth0="2a03:7220:8081:b301::d4/64" +NET6_GW_eth0="2a03:7220:8081:b301::e6" +NET6_NS_eth0="2a03:7220:8081:b301::cd 2a03:7220:8081:b301::ce" +NET6_NS_SEARCH_eth0=$REALM + +# Mode d'installation : +# * dev : installe les paquets un par un avec apt (lent) +# * full : envoie d'un seul coup la liste de tous les paquets à apt (rapide) +INTALL_MODE=full + +# Paquets additionnels +PKGSEL="$PKGSEL apache2 php-apcu php-bcmath php-cli php-curl php-gd php-gmp php-imagick \ + php-intl php-mbstring php-memcached php-mysql php-redis php-xml php-zip php redis-server" + +# ------------------------------------------------------------------------------ +# -------------------------- Section modules d'init ---------------------------- +# ------------------------------------------------------------------------------ + +# Liste des modules à executer (surchargeable en ligne de commande) +MODULE_LIST="conf_ntp upgrade_dist conf_ceph authnz conf_locale conf_ssh \ + conf_mail install_pkg install_profile patch_snmp install_mkagent \ + conf_syslog conf_network" diff --git a/doc/dev.md b/doc/dev.md index 724b319..c1aa087 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -157,8 +157,9 @@ fail as it's also used to display errors. Thus it only contains echoes and some variables manipulation. #### 3.1.2. ```separator``` -Tat function display a seprator made with dash, to fill the length of the -screen minus one character. +That function display a seprator made with dash, to fill the length of the +screen minus one character if screen length is 80 character or less. If more +than 80 the lenght of the separator will be 80 plus half of additionnal length. It takes no parameters and return no value. @@ -204,7 +205,7 @@ echo -e "${IRed}${On_IYellow}ATTENTION:${DEFAULTBG} this is a warning!${DEFAULTC Remember to always terminate an *echo -e* using colors with the $DEFAULTCOL variable. If not, any new line might be filled with the last used color and line -ending will filled with background color. +ending will be filled with background color. ## 4. The filefct.sh file ### 4.1. Common behavior @@ -225,8 +226,8 @@ original file or directory name and timestamp the date and time of the backup as retuned by the ```stdtime``` function. If a file given in parameter don't exists, the function will issue a warning and continue to the next. -If target file or directory is a symbolic link, the link will be resolved until -we backup the target on its side. +If target file or directory is a symbolic link, the link will be resolved +recursively until we backup the final target on its side. The function don't take any other parameters than file and/or directory names. @@ -249,7 +250,7 @@ exists, it will be created automatically. #### 4.2.3. ```appendfile ``` That function add the content of source file to destination file. The source -file can have defferent origins, following the same path priority as the +file can have different origins, following the same path priority as the *installfile* function. The destination file must exist and be on the root filesystem. Only two diff --git a/repo/common/profile/ansi_shadow.flf b/repo/common/profile/ansi_shadow.flf new file mode 100644 index 0000000..61ee783 --- /dev/null +++ b/repo/common/profile/ansi_shadow.flf @@ -0,0 +1,722 @@ +flf2a$ 7 7 13 0 7 0 64 0 +Font Author: ? + +More Info: + +https://web.archive.org/web/20120819044459/http://www.roysac.com/thedrawfonts-tdf.asp + +FIGFont created with: http://patorjk.com/figfont-editor +$ $@ +$ $@ +$ $@ +$ $@ +$ $@ +$ $@ +$ $@@ +██╗@ +██║@ +██║@ +╚═╝@ +██╗@ +╚═╝@ + @@ +@ +@ +@ +@ +@ +@ +@@ + ██╗ ██╗ @ +████████╗@ +╚██╔═██╔╝@ +████████╗@ +╚██╔═██╔╝@ + ╚═╝ ╚═╝ @ + @@ +▄▄███▄▄·@ +██╔════╝@ +███████╗@ +╚════██║@ +███████║@ +╚═▀▀▀══╝@ + @@ +██╗ ██╗@ +╚═╝██╔╝@ + ██╔╝ @ + ██╔╝ @ +██╔╝██╗@ +╚═╝ ╚═╝@ + @@ + ██╗ @ + ██║ @ +████████╗@ +██╔═██╔═╝@ +██████║ @ +╚═════╝ @ + @@ +@ +@ +@ +@ +@ +@ +@@ + ██╗@ +██╔╝@ +██║ @ +██║ @ +╚██╗@ + ╚═╝@ + @@ +██╗ @ +╚██╗@ + ██║@ + ██║@ +██╔╝@ +╚═╝ @ + @@ + @ +▄ ██╗▄@ + ████╗@ +▀╚██╔▀@ + ╚═╝ @ + @ + @@ +@ +@ +@ +@ +@ +@ +@@ + @ + @ + @ + @ +▄█╗@ +╚═╝@ + @@ + @ + @ +█████╗@ +╚════╝@ + @ + @ + @@ + @ + @ + @ + @ +██╗@ +╚═╝@ + @@ + ██╗@ + ██╔╝@ + ██╔╝ @ + ██╔╝ @ +██╔╝ @ +╚═╝ @ + @@ + ██████╗ @ +██╔═████╗@ +██║██╔██║@ +████╔╝██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ + ██╗@ +███║@ +╚██║@ + ██║@ + ██║@ + ╚═╝@ + @@ +██████╗ @ +╚════██╗@ + █████╔╝@ +██╔═══╝ @ +███████╗@ +╚══════╝@ + @@ +██████╗ @ +╚════██╗@ + █████╔╝@ + ╚═══██╗@ +██████╔╝@ +╚═════╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +███████║@ +╚════██║@ + ██║@ + ╚═╝@ + @@ +███████╗@ +██╔════╝@ +███████╗@ +╚════██║@ +███████║@ +╚══════╝@ + @@ + ██████╗ @ +██╔════╝ @ +███████╗ @ +██╔═══██╗@ +╚██████╔╝@ + ╚═════╝ @ + @@ +███████╗@ +╚════██║@ + ██╔╝@ + ██╔╝ @ + ██║ @ + ╚═╝ @ + @@ + █████╗ @ +██╔══██╗@ +╚█████╔╝@ +██╔══██╗@ +╚█████╔╝@ + ╚════╝ @ + @@ + █████╗ @ +██╔══██╗@ +╚██████║@ + ╚═══██║@ + █████╔╝@ + ╚════╝ @ + @@ + @ +██╗@ +╚═╝@ +██╗@ +╚═╝@ + @ + @@ + @ +██╗@ +╚═╝@ +▄█╗@ +▀═╝@ + @ + @@ + ██╗@ + ██╔╝@ +██╔╝ @ +╚██╗ @ + ╚██╗@ + ╚═╝@ + @@ +@ +@ +@ +@ +@ +@ +@@ +██╗ @ +╚██╗ @ + ╚██╗@ + ██╔╝@ +██╔╝ @ +╚═╝ @ + @@ +██████╗ @ +╚════██╗@ + ▄███╔╝@ + ▀▀══╝ @ + ██╗ @ + ╚═╝ @ + @@ + ██████╗ @ +██╔═══██╗@ +██║██╗██║@ +██║██║██║@ +╚█║████╔╝@ + ╚╝╚═══╝ @ + @@ + █████╗ @ +██╔══██╗@ +███████║@ +██╔══██║@ +██║ ██║@ +╚═╝ ╚═╝@ + @@ +██████╗ @ +██╔══██╗@ +██████╔╝@ +██╔══██╗@ +██████╔╝@ +╚═════╝ @ + @@ + ██████╗@ +██╔════╝@ +██║ @ +██║ @ +╚██████╗@ + ╚═════╝@ + @@ +██████╗ @ +██╔══██╗@ +██║ ██║@ +██║ ██║@ +██████╔╝@ +╚═════╝ @ + @@ +███████╗@ +██╔════╝@ +█████╗ @ +██╔══╝ @ +███████╗@ +╚══════╝@ + @@ +███████╗@ +██╔════╝@ +█████╗ @ +██╔══╝ @ +██║ @ +╚═╝ @ + @@ + ██████╗ @ +██╔════╝ @ +██║ ███╗@ +██║ ██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +███████║@ +██╔══██║@ +██║ ██║@ +╚═╝ ╚═╝@ + @@ +██╗@ +██║@ +██║@ +██║@ +██║@ +╚═╝@ + @@ + ██╗@ + ██║@ + ██║@ +██ ██║@ +╚█████╔╝@ + ╚════╝ @ + @@ +██╗ ██╗@ +██║ ██╔╝@ +█████╔╝ @ +██╔═██╗ @ +██║ ██╗@ +╚═╝ ╚═╝@ + @@ +██╗ @ +██║ @ +██║ @ +██║ @ +███████╗@ +╚══════╝@ + @@ +███╗ ███╗@ +████╗ ████║@ +██╔████╔██║@ +██║╚██╔╝██║@ +██║ ╚═╝ ██║@ +╚═╝ ╚═╝@ + @@ +███╗ ██╗@ +████╗ ██║@ +██╔██╗ ██║@ +██║╚██╗██║@ +██║ ╚████║@ +╚═╝ ╚═══╝@ + @@ + ██████╗ @ +██╔═══██╗@ +██║ ██║@ +██║ ██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ +██████╗ @ +██╔══██╗@ +██████╔╝@ +██╔═══╝ @ +██║ @ +╚═╝ @ + @@ + ██████╗ @ +██╔═══██╗@ +██║ ██║@ +██║▄▄ ██║@ +╚██████╔╝@ + ╚══▀▀═╝ @ + @@ +██████╗ @ +██╔══██╗@ +██████╔╝@ +██╔══██╗@ +██║ ██║@ +╚═╝ ╚═╝@ + @@ +███████╗@ +██╔════╝@ +███████╗@ +╚════██║@ +███████║@ +╚══════╝@ + @@ +████████╗@ +╚══██╔══╝@ + ██║ @ + ██║ @ + ██║ @ + ╚═╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +██║ ██║@ +██║ ██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +██║ ██║@ +╚██╗ ██╔╝@ + ╚████╔╝ @ + ╚═══╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +██║ █╗ ██║@ +██║███╗██║@ +╚███╔███╔╝@ + ╚══╝╚══╝ @ + @@ +██╗ ██╗@ +╚██╗██╔╝@ + ╚███╔╝ @ + ██╔██╗ @ +██╔╝ ██╗@ +╚═╝ ╚═╝@ + @@ +██╗ ██╗@ +╚██╗ ██╔╝@ + ╚████╔╝ @ + ╚██╔╝ @ + ██║ @ + ╚═╝ @ + @@ +███████╗@ +╚══███╔╝@ + ███╔╝ @ + ███╔╝ @ +███████╗@ +╚══════╝@ + @@ +███╗@ +██╔╝@ +██║ @ +██║ @ +███╗@ +╚══╝@ + @@ +@ +@ +@ +@ +@ +@ +@@ +███╗@ +╚██║@ + ██║@ + ██║@ +███║@ +╚══╝@ + @@ + ███╗ @ +██╔██╗@ +╚═╝╚═╝@ + @ + @ + @ + @@ + @ + @ + @ + @ +███████╗@ +╚══════╝@ + @@ +@ +@ +@ +@ +@ +@ +@@ + █████╗ @ +██╔══██╗@ +███████║@ +██╔══██║@ +██║ ██║@ +╚═╝ ╚═╝@ + @@ +██████╗ @ +██╔══██╗@ +██████╔╝@ +██╔══██╗@ +██████╔╝@ +╚═════╝ @ + @@ + ██████╗@ +██╔════╝@ +██║ @ +██║ @ +╚██████╗@ + ╚═════╝@ + @@ +██████╗ @ +██╔══██╗@ +██║ ██║@ +██║ ██║@ +██████╔╝@ +╚═════╝ @ + @@ +███████╗@ +██╔════╝@ +█████╗ @ +██╔══╝ @ +███████╗@ +╚══════╝@ + @@ +███████╗@ +██╔════╝@ +█████╗ @ +██╔══╝ @ +██║ @ +╚═╝ @ + @@ + ██████╗ @ +██╔════╝ @ +██║ ███╗@ +██║ ██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +███████║@ +██╔══██║@ +██║ ██║@ +╚═╝ ╚═╝@ + @@ +██╗@ +██║@ +██║@ +██║@ +██║@ +╚═╝@ + @@ + ██╗@ + ██║@ + ██║@ +██ ██║@ +╚█████╔╝@ + ╚════╝ @ + @@ +██╗ ██╗@ +██║ ██╔╝@ +█████╔╝ @ +██╔═██╗ @ +██║ ██╗@ +╚═╝ ╚═╝@ + @@ +██╗ @ +██║ @ +██║ @ +██║ @ +███████╗@ +╚══════╝@ + @@ +███╗ ███╗@ +████╗ ████║@ +██╔████╔██║@ +██║╚██╔╝██║@ +██║ ╚═╝ ██║@ +╚═╝ ╚═╝@ + @@ +███╗ ██╗@ +████╗ ██║@ +██╔██╗ ██║@ +██║╚██╗██║@ +██║ ╚████║@ +╚═╝ ╚═══╝@ + @@ + ██████╗ @ +██╔═══██╗@ +██║ ██║@ +██║ ██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ +██████╗ @ +██╔══██╗@ +██████╔╝@ +██╔═══╝ @ +██║ @ +╚═╝ @ + @@ + ██████╗ @ +██╔═══██╗@ +██║ ██║@ +██║▄▄ ██║@ +╚██████╔╝@ + ╚══▀▀═╝ @ + @@ +██████╗ @ +██╔══██╗@ +██████╔╝@ +██╔══██╗@ +██║ ██║@ +╚═╝ ╚═╝@ + @@ +███████╗@ +██╔════╝@ +███████╗@ +╚════██║@ +███████║@ +╚══════╝@ + @@ +████████╗@ +╚══██╔══╝@ + ██║ @ + ██║ @ + ██║ @ + ╚═╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +██║ ██║@ +██║ ██║@ +╚██████╔╝@ + ╚═════╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +██║ ██║@ +╚██╗ ██╔╝@ + ╚████╔╝ @ + ╚═══╝ @ + @@ +██╗ ██╗@ +██║ ██║@ +██║ █╗ ██║@ +██║███╗██║@ +╚███╔███╔╝@ + ╚══╝╚══╝ @ + @@ +██╗ ██╗@ +╚██╗██╔╝@ + ╚███╔╝ @ + ██╔██╗ @ +██╔╝ ██╗@ +╚═╝ ╚═╝@ + @@ +██╗ ██╗@ +╚██╗ ██╔╝@ + ╚████╔╝ @ + ╚██╔╝ @ + ██║ @ + ╚═╝ @ + @@ +███████╗@ +╚══███╔╝@ + ███╔╝ @ + ███╔╝ @ +███████╗@ +╚══════╝@ + @@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ +@ +@ +@ +@ +@ +@ +@@ \ No newline at end of file