Compare commits
39 Commits
master
...
dist/eole/
Author | SHA1 | Date |
---|---|---|
Philippe Caseiro | b86d7e7554 | |
Emmanuel Garette | 144375c761 | |
vincent | fc706a56e7 | |
vincent | b3b39fc4a4 | |
vincent | d34670a998 | |
vincent | 2f5f17adc4 | |
Teddy Cornaut | 38404340d4 | |
vincent | bbc87b8656 | |
Philippe Caseiro | b4cccc5e12 | |
Philippe Caseiro | 68eaa03db2 | |
Philippe Caseiro | 5c7bbbde79 | |
Philippe Caseiro | ed910e72ee | |
Philippe Caseiro | 142d73afad | |
Philippe Caseiro | 08d7ed927c | |
Philippe Caseiro | f375a121ae | |
Philippe Caseiro | 4709c28223 | |
Philippe Caseiro | 98bfcc1416 | |
Philippe Caseiro | ae696769ed | |
Philippe Caseiro | 534e04671a | |
Philippe Caseiro | 61383bb17a | |
Philippe Caseiro | 5aa0262331 | |
Philippe Caseiro | b550833a25 | |
Philippe Caseiro | 517625cf66 | |
Philippe Caseiro | 7a9855f234 | |
Philippe Caseiro | 764ae6320c | |
Philippe Caseiro | d9425736c6 | |
Philippe Caseiro | cbb1319e48 | |
Philippe Caseiro | be88b407b4 | |
Philippe Caseiro | c87a989b22 | |
Philippe Caseiro | d1e813aaa8 | |
Philippe Caseiro | eb6854d313 | |
Philippe Caseiro | c723edd095 | |
Philippe Caseiro | 37e5cbb3b2 | |
Philippe Caseiro | 4d00207271 | |
Philippe Caseiro | 5e98dafab2 | |
Philippe Caseiro | 1fb5fd21b8 | |
Philippe Caseiro | 8cf9168763 | |
Philippe Caseiro | 0dfdb70080 | |
Philippe Caseiro | 6d4b75c679 |
26
README.md
26
README.md
|
@ -1,31 +1,5 @@
|
||||||
# eole-mariadb
|
# eole-mariadb
|
||||||
|
|
||||||
Paquet porté pour la 2.7.1. Les tests n'ont été réalisé que sur un Eolebase.
|
|
||||||
|
|
||||||
La version utilisé est mariadb 10.3
|
|
||||||
|
|
||||||
Ajout de ce paquet sur une 2.7.1 :
|
|
||||||
|
|
||||||
## Add the Cadoles repository on all the nodes and the Leader
|
|
||||||
|
|
||||||
GenConfig [Mode Expert] -> Dépôts Tiers
|
|
||||||
|
|
||||||
* Libellé du dépôt : Cadoles dev
|
|
||||||
* Déclaration du dépôt : deb [ arch=all ] https://vulcain.cadoles.com 2.7.1-dev main
|
|
||||||
* Méthode de récupération de la clé publique du dépôt : URL de la clé
|
|
||||||
* URL de la clé : https://vulcain.cadoles.com/cadoles.gpg
|
|
||||||
|
|
||||||
## Add the MariaDB repository on all the nodes and the Leader
|
|
||||||
|
|
||||||
GenConfig (Mode Expert) -> Dépôt tiers :
|
|
||||||
* Libellé du dépôt : MariaDB
|
|
||||||
* Déclaration du dépôt : deb [ arch=amd64 ] http://mariadb.mirrors.ovh.net/MariaDB/repo/10.3/ubuntu bionic main
|
|
||||||
* Méthode de récupération de la clé publique du dépôt : serveur de clés
|
|
||||||
* URL du serveur de clés : hkp://keyserver.ubuntu.com:80
|
|
||||||
* Empreinte de la clé : 0xF1656F24C74CD1D8
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
Paquet porté pour la 2.7.0. Les tests n'ont été réalisé que sur un Eolebase.
|
Paquet porté pour la 2.7.0. Les tests n'ont été réalisé que sur un Eolebase.
|
||||||
|
|
||||||
La version utilisé est mariadb 10.3
|
La version utilisé est mariadb 10.3
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
9
|
|
@ -0,0 +1,18 @@
|
||||||
|
Source: eole-mariadb
|
||||||
|
Section: web
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Cadoles <eole@ac-dijon.fr>
|
||||||
|
Build-Depends: debhelper (>= 9)
|
||||||
|
Standards-Version: 3.9.3
|
||||||
|
Homepage: https://forge.cadoles.com/Cadoles/eole-mariadb
|
||||||
|
Vcs-Git: https://forge.cadoles.com/Cadoles/eole-mariadb.git
|
||||||
|
Vcs-Browser: https://forge.cadoles.com/Cadoles/eole-mariadb
|
||||||
|
|
||||||
|
Package: eole-mariadb
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}, mariadb-server, mariadb-backup
|
||||||
|
Conflicts: eole-mysql
|
||||||
|
Provides: eole-mysql
|
||||||
|
Description: Dictionnaires et templates pour la configuration d'un serveur MariaDB, testée uniquement avec eolebase
|
||||||
|
.
|
||||||
|
Pour toute information complémentaire, veuillez vous rendre sur la forge Cadoles.
|
|
@ -0,0 +1,44 @@
|
||||||
|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: {PROJECT}
|
||||||
|
Source: {URL}
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: YEAR {UPSTREAM} {AUTHOR} <{MAIL}>
|
||||||
|
License: {UPSTREAM LICENSE}
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2012 Équipe EOLE <eole@ac-dijon.fr>
|
||||||
|
License: CeCILL-2
|
||||||
|
|
||||||
|
License: {UPSTREAM LICENSE}
|
||||||
|
{TEXT OF THE LICENSE}
|
||||||
|
|
||||||
|
License: CeCILL-2
|
||||||
|
This software is governed by the CeCILL-2 license under French law and
|
||||||
|
abiding by the rules of distribution of free software. You can use,
|
||||||
|
modify and or redistribute the software under the terms of the CeCILL-2
|
||||||
|
license as circulated by CEA, CNRS and INRIA at the following URL
|
||||||
|
"http://www.cecill.info";.
|
||||||
|
.
|
||||||
|
As a counterpart to the access to the source code and rights to copy,
|
||||||
|
modify and redistribute granted by the license, users are provided only
|
||||||
|
with a limited warranty and the software's author, the holder of the
|
||||||
|
economic rights, and the successive licensors have only limited
|
||||||
|
liability.
|
||||||
|
.
|
||||||
|
In this respect, the user's attention is drawn to the risks associated
|
||||||
|
with loading, using, modifying and/or developing or reproducing the
|
||||||
|
software by the user in light of its specific status of free software,
|
||||||
|
that may mean that it is complicated to manipulate, and that also
|
||||||
|
therefore means that it is reserved for developers and experienced
|
||||||
|
professionals having in-depth computer knowledge. Users are therefore
|
||||||
|
encouraged to load and test the software's suitability as regards their
|
||||||
|
requirements in conditions enabling the security of their systems and/or
|
||||||
|
data to be ensured and, more generally, to use and operate it in the
|
||||||
|
same conditions as regards security.
|
||||||
|
.
|
||||||
|
The fact that you are presently reading this means that you have had
|
||||||
|
knowledge of the CeCILL-2 license and that you accept its terms.
|
||||||
|
.
|
||||||
|
On Eole systems, the complete text of the CeCILL-2 License can be found
|
||||||
|
in '/usr/share/common-licenses/CeCILL-2-en'.
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Set per distribution debian tag
|
||||||
|
[DEFAULT]
|
||||||
|
debian-tag = debian/eole/%(version)s
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
|
@ -49,13 +49,7 @@
|
||||||
<value>Default</value>
|
<value>Default</value>
|
||||||
</variable>
|
</variable>
|
||||||
<variable name="accLimitTarget" type="string" description="Restriction d'accès à ces IP/noms d'hôtes (liste séparateur séparateur ',')" />
|
<variable name="accLimitTarget" type="string" description="Restriction d'accès à ces IP/noms d'hôtes (liste séparateur séparateur ',')" />
|
||||||
<variable name="create_db" type='oui/non' description="Créer des bases de données">
|
|
||||||
<value>non</value>
|
|
||||||
</variable>
|
|
||||||
</family>
|
|
||||||
<family name="MariaDB Databases">
|
|
||||||
<variable name="db_name" type='string' description='Nom de la base de donnée' multi="True"/>
|
|
||||||
<variable name="db_admin_user" type='string' description="Nom de l'utilisateur gestionnaire de la base de données"/>
|
|
||||||
</family>
|
</family>
|
||||||
|
|
||||||
<!-- Tunning -->
|
<!-- Tunning -->
|
||||||
|
@ -141,7 +135,6 @@
|
||||||
</family>
|
</family>
|
||||||
<separators>
|
<separators>
|
||||||
<separator name='dbCreateFixAdmin'>Comptes d'administration supplémentaires</separator>
|
<separator name='dbCreateFixAdmin'>Comptes d'administration supplémentaires</separator>
|
||||||
<separator name='create_db'>Ajouter des bases de données</separator>
|
|
||||||
</separators>
|
</separators>
|
||||||
</variables>
|
</variables>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
@ -174,10 +167,6 @@
|
||||||
<slave>ifMariaDBLimit</slave>
|
<slave>ifMariaDBLimit</slave>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group master='db_name'>
|
|
||||||
<slave>db_admin_user</slave>
|
|
||||||
</group>
|
|
||||||
|
|
||||||
<fill name='calc_multi_condition' target='accLimitTarget'>
|
<fill name='calc_multi_condition' target='accLimitTarget'>
|
||||||
<param>Default</param>
|
<param>Default</param>
|
||||||
<param type='eole' name='condition_1'>accLimits</param>
|
<param type='eole' name='condition_1'>accLimits</param>
|
||||||
|
@ -196,11 +185,6 @@
|
||||||
<target type='servicelist'>bdd</target>
|
<target type='servicelist'>bdd</target>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<condition name='disabled_if_in' source='create_db'>
|
|
||||||
<param>non</param>
|
|
||||||
<target type='family'>MariaDB Databases</target>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition name='disabled_if_in' source="dbCreateFixAdmin">
|
<condition name='disabled_if_in' source="dbCreateFixAdmin">
|
||||||
<param>non</param>
|
<param>non</param>
|
||||||
<target type='variable'>accName</target>
|
<target type='variable'>accName</target>
|
||||||
|
|
|
@ -9,11 +9,19 @@ DESC="Exportation des bases MariaDB"
|
||||||
MYSQLSAVDIR=$SAVDIR/sql
|
MYSQLSAVDIR=$SAVDIR/sql
|
||||||
OPTION="--lock-tables"
|
OPTION="--lock-tables"
|
||||||
|
|
||||||
if [[ -d ${MYSQLSAVDIR} ]]
|
rm -f $MYSQLSAVDIR/*.sql || true
|
||||||
then
|
mkdir -p $MYSQLSAVDIR
|
||||||
rm -rf ${MYSQLSAVDIR}
|
|
||||||
mkdir -p ${MYSQLSAVDIR}
|
|
||||||
fi
|
|
||||||
|
|
||||||
mariabackup --defaults-file=/etc/mysql/debian.cnf --backup --target-dir=$MYSQLSAVDIR
|
DATABASES=$(mysql --defaults-file=/etc/mysql/debian.cnf -e 'show databases' | grep -v '^Database$')
|
||||||
exit $?
|
for databasename in $DATABASES; do
|
||||||
|
case "$databasename" in
|
||||||
|
information_schema|performance_schema|bareos)
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
mysqldump --defaults-file=/etc/mysql/debian.cnf --databases $databasename --flush-privileges --create-options -Q -c $OPTION > $MYSQLSAVDIR/$databasename.sql
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue