Compare commits
No commits in common. "9a806c1c1338ffaf3a96bd01a9ad02322ecdb70d" and "70f77c883b783d58e94bf6ea7970752a052e4000" have entirely different histories.
9a806c1c13
...
70f77c883b
Binary file not shown.
Before Width: | Height: | Size: 4.7 KiB |
|
@ -16,31 +16,14 @@
|
||||||
\newcommand{\pdftitle}{Formation tronc commun niveau 1}
|
\newcommand{\pdftitle}{Formation tronc commun niveau 1}
|
||||||
\newcommand{\pdfkeywords}{EOLE}
|
\newcommand{\pdfkeywords}{EOLE}
|
||||||
|
|
||||||
\logo{
|
|
||||||
\skbfigure[width=2cm]{en/logo_MENJ.jpg}~ \hspace{10pt}
|
|
||||||
\skbfigure[width=2cm]{en/logo_MENJ.jpg}~ \hspace{10pt}
|
|
||||||
\skbfigure[width=2cm]{cadoles/logo_01.png}~
|
|
||||||
}
|
|
||||||
|
|
||||||
\institute[Cadoles]{\skbfigure[width=2cm]{cadoles/logo_01.png}}
|
|
||||||
%\institute[MENJ]{\skbfigure[width=2cm]{en/logo_MENJ.jpg}}
|
|
||||||
|
|
||||||
\skbinput[from=sli]{style/preambule}
|
\skbinput[from=sli]{style/preambule}
|
||||||
|
|
||||||
\newlength{\logospacing}
|
|
||||||
\setlength{\logospacing}{(\textwidth - 2cm*2)/1}
|
|
||||||
|
|
||||||
\logo{
|
|
||||||
\skbfigure[width=2cm]{logos/MENJ.jpg}~ \hspace{\logospacing}
|
|
||||||
\skbfigure[width=2cm]{logos/Cadoles.png}~
|
|
||||||
}
|
|
||||||
|
|
||||||
\title[]{Formation tronc commun niveau 1}
|
\title[]{Formation tronc commun niveau 1}
|
||||||
\subtitle{XXX CLIENT XXX}
|
\subtitle{XXX CLIENT XXX}
|
||||||
|
|
||||||
\author[Equipe Auteur]{Cadoles}
|
\author[Equipe Auteur]{Cadoles}
|
||||||
|
|
||||||
\institute[Cadoles]{\skbfigure[width=2cm]{logos/Cadoles.png}}
|
\institute[Cadoles]{\skbfigure[width=2cm]{cadoles/logo_01.png}}
|
||||||
|
|
||||||
\date{{\small \today}}
|
\date{{\small \today}}
|
||||||
|
|
||||||
|
|
|
@ -16,28 +16,14 @@
|
||||||
\newcommand{\pdftitle}{Formation tronc commun niveau 2}
|
\newcommand{\pdftitle}{Formation tronc commun niveau 2}
|
||||||
\newcommand{\pdfkeywords}{EOLE}
|
\newcommand{\pdfkeywords}{EOLE}
|
||||||
|
|
||||||
\logo{
|
|
||||||
\skbfigure[width=2cm]{en/logo_MENJ.jpg}~ \hspace{71pt}
|
|
||||||
\skbfigure[width=2cm]{en/logo_MENJ.jpg}~ \hspace{71pt}
|
|
||||||
\skbfigure[width=2cm]{cadoles/logo_01.png}~
|
|
||||||
}
|
|
||||||
|
|
||||||
\skbinput[from=sli]{style/preambule}
|
\skbinput[from=sli]{style/preambule}
|
||||||
|
|
||||||
\newlength{\logospacing}
|
|
||||||
\setlength{\logospacing}{(\textwidth - 2cm*2)/1}
|
|
||||||
|
|
||||||
\logo{
|
|
||||||
\skbfigure[width=2cm]{logos/MENJ.jpg}~ \hspace{\logospacing}
|
|
||||||
\skbfigure[width=2cm]{logos/Cadoles.png}~
|
|
||||||
}
|
|
||||||
|
|
||||||
\title[]{Formation tronc commun niveau 2}
|
\title[]{Formation tronc commun niveau 2}
|
||||||
\subtitle{XXX CLIENT XXX}
|
\subtitle{XXX CLIENT XXX}
|
||||||
|
|
||||||
\author[Equipe Auteur]{Cadoles}
|
\author[Equipe Auteur]{Cadoles}
|
||||||
|
|
||||||
\institute[Cadoles]{\skbfigure[width=2cm]{logos/Cadoles.png}}
|
\institute[Cadoles]{\skbfigure[width=2cm]{cadoles/logo_01.png}}
|
||||||
|
|
||||||
\date{{\small \today}}
|
\date{{\small \today}}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import argparse
|
||||||
import re
|
import re
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
from os import path, makedirs, listdir
|
from os import path, makedirs
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
|
||||||
LICENSES = {'CC-by-sa-2.0': 'license-cc-by-sa-2.0',
|
LICENSES = {'CC-by-sa-2.0': 'license-cc-by-sa-2.0',
|
||||||
|
@ -49,20 +49,6 @@ def main():
|
||||||
"""
|
"""
|
||||||
init function
|
init function
|
||||||
"""
|
"""
|
||||||
def get_institutes_logos(institutes_list=None):
|
|
||||||
if not institutes_list:
|
|
||||||
return []
|
|
||||||
institutes_logos = []
|
|
||||||
known_logos = {path.splitext(path.basename(l))[0]:l for l in listdir('./figures/logos')}
|
|
||||||
for institute in institutes_list:
|
|
||||||
if institute in known_logos:
|
|
||||||
institutes_logos.append(known_logos[institute])
|
|
||||||
else:
|
|
||||||
print(f'Unknown institute {institute}')
|
|
||||||
print(f'Replacing with missing.png')
|
|
||||||
institutes_logos.append('missing.png')
|
|
||||||
return institutes_logos
|
|
||||||
|
|
||||||
root = '../'
|
root = '../'
|
||||||
if args.directory:
|
if args.directory:
|
||||||
root = root + re.sub(r'[\w-]+/?', '../', args.directory)
|
root = root + re.sub(r'[\w-]+/?', '../', args.directory)
|
||||||
|
@ -94,9 +80,6 @@ def main():
|
||||||
else:
|
else:
|
||||||
client = client
|
client = client
|
||||||
|
|
||||||
institutes = get_institutes_logos(args.institutes)
|
|
||||||
logos_count = len(institutes) + 1
|
|
||||||
|
|
||||||
directory = args.directory
|
directory = args.directory
|
||||||
if not directory:
|
if not directory:
|
||||||
directory = ''
|
directory = ''
|
||||||
|
@ -112,9 +95,7 @@ def main():
|
||||||
'title': title,
|
'title': title,
|
||||||
'author': author,
|
'author': author,
|
||||||
'client': client,
|
'client': client,
|
||||||
'license': license,
|
'license': license}
|
||||||
'institutes': institutes,
|
|
||||||
'logos_count': logos_count}
|
|
||||||
master = TEMPLATES[document_class]['master']
|
master = TEMPLATES[document_class]['master']
|
||||||
master_dir = path.join('presentations', directory)
|
master_dir = path.join('presentations', directory)
|
||||||
programme_dir = path.join(master_dir, 'programme')
|
programme_dir = path.join(master_dir, 'programme')
|
||||||
|
@ -208,7 +189,6 @@ def main():
|
||||||
parser_init.add_argument('-t', '--title', help="Titre de la formation")
|
parser_init.add_argument('-t', '--title', help="Titre de la formation")
|
||||||
parser_init.add_argument('-l', '--license', help="Termes de mise à disposition de la formation")
|
parser_init.add_argument('-l', '--license', help="Termes de mise à disposition de la formation")
|
||||||
parser_init.add_argument('-d', '--directory', help="Sous-répertoires où créer le fichier", required=True)
|
parser_init.add_argument('-d', '--directory', help="Sous-répertoires où créer le fichier", required=True)
|
||||||
parser_init.add_argument('-i', '--institutes', nargs='*', help="Instituts dont les logos sont requis")
|
|
||||||
parser_init.set_defaults(func=init)
|
parser_init.set_defaults(func=init)
|
||||||
parser_update = subparsers.add_parser('update', help='Mise à jour des fichiers inclus')
|
parser_update = subparsers.add_parser('update', help='Mise à jour des fichiers inclus')
|
||||||
parser_update.add_argument('-m', '--master', help="Emplacement du fichier maître", required=True)
|
parser_update.add_argument('-m', '--master', help="Emplacement du fichier maître", required=True)
|
||||||
|
|
|
@ -12,4 +12,5 @@
|
||||||
ou écrivez à Creative Commons, 444 Castro Street, Suite 900,
|
ou écrivez à Creative Commons, 444 Castro Street, Suite 900,
|
||||||
Mountain View, California, 94041, USA.
|
Mountain View, California, 94041, USA.
|
||||||
\end{block}
|
\end{block}
|
||||||
|
\pnote{test des notes standard}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
\frametitle{Gestion des services}
|
\frametitle{Gestion des services}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item from pyeole.service import *
|
\item from pyeole.service import *
|
||||||
\item manage\_services :
|
\item manage\_service :
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item action : start|stop|restart|status,
|
\item action : start|stop|restart|status,
|
||||||
\item service : nom du service,
|
\item service : nom du service,
|
||||||
|
@ -46,6 +46,15 @@
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Pratique}
|
||||||
|
\begin{itemize}
|
||||||
|
\item a=service\_out('ntp', 'stop')
|
||||||
|
\item a=service\_code('smbd', 'stop', 'fichier')
|
||||||
|
\item a=service\_code\_no\_container('apache2', 'restart')
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Execution de commande}
|
\frametitle{Execution de commande}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
@ -63,15 +72,6 @@
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\frametitle{Pratique}
|
|
||||||
\begin{itemize}
|
|
||||||
\item a=service\_out('ntp', 'stop')
|
|
||||||
\item a=service\_code('smbd', 'stop', 'fichier')
|
|
||||||
\item a=service\_code\_no\_container('apache2', 'restart')
|
|
||||||
\end{itemize}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
%\begin{frame}
|
%\begin{frame}
|
||||||
% \frametitle{Execution de commande}
|
% \frametitle{Execution de commande}
|
||||||
% \begin{itemize}
|
% \begin{itemize}
|
||||||
|
|
|
@ -80,3 +80,54 @@
|
||||||
\item test service : tcpcheck 2 192.0.2.52:80
|
\item test service : tcpcheck 2 192.0.2.52:80
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Gestion des locks}
|
||||||
|
\begin{itemize}
|
||||||
|
%FIXME
|
||||||
|
\item CreoleLock acquire "nom\_du\_lock"
|
||||||
|
\item CreoleLock release "nom\_du\_lock"
|
||||||
|
\item CreoleLock is\_locked "nom\_du\_lock"
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Pratique}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Créé un lock "test" ;
|
||||||
|
\item Supprimé le lock "test".
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Valeur d'une variable}
|
||||||
|
\begin{itemize}
|
||||||
|
\item CreoleGet nom\_variable
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Pratique}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Récupérer la valeur de la variable adresse\_ip\_eth0
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Modifier la valeur}
|
||||||
|
\begin{itemize}
|
||||||
|
\item CreoleSet nom\_variable valeur ;
|
||||||
|
\item Pour une liste : CreoleSet nom\_variable """valeur1
|
||||||
|
\item valeur2""" ;
|
||||||
|
\item attention, ne peut changer la longueur de esclave.
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}
|
||||||
|
\frametitle{Pratique}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Modifier la valeur de la variable de vm\_swappiness à 10 ;
|
||||||
|
\item modifier ubuntu\_update\_mirrors à "eole.ac-dijon.fr inconnu.lan"
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Pratique}
|
\frametitle{Pratique}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Modifier dans le template de configure sshd\_config : "LoginGraceTime" de "30" à "60"
|
\item Modifié dans le template de configure sshd\_config : "LoginGraceTime" de "30" à "60"
|
||||||
\item créer le patch.
|
\item créé le patch.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,4 @@
|
||||||
{\setbeamercolor{background canvas}{bg=TravauxPratiques}
|
{\setbeamercolor{background canvas}{bg=TravauxPratiques}
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\frametitle{Pratique}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Récupérer la valeur de la variable adresse\_ip\_eth0
|
|
||||||
\end{itemize}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\frametitle{Pratique}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Modifier la valeur de la variable de vm\_swappiness à 10 ;
|
|
||||||
\item modifier ubuntu\_update\_mirrors à "eole.ac-dijon.fr inconnu.lan"
|
|
||||||
\end{itemize}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Pratique}
|
\frametitle{Pratique}
|
||||||
\framesubtitle{Gérer le service vnstat}
|
\framesubtitle{Gérer le service vnstat}
|
||||||
|
|
|
@ -26,28 +26,6 @@
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\frametitle{CreoleGet}
|
|
||||||
\framesubtitle{Récupérer la valeur d’une variable}
|
|
||||||
\begin{itemize}
|
|
||||||
\item \commande{CreoleGet nom\_variable}
|
|
||||||
\item \commande{CreoleGet --list}
|
|
||||||
\end{itemize}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\frametitle{CreoleSet}
|
|
||||||
\framesubtitle{Assigner une valeur à une variable}
|
|
||||||
\begin{itemize}
|
|
||||||
\item \commande{CreoleSet <nom\_variable> <valeur>} ;
|
|
||||||
\item Pour une liste : \commande{CreoleSet nom\_variable """valeur1}
|
|
||||||
\item \commande{> valeur2"""} ;
|
|
||||||
\end{itemize}
|
|
||||||
\begin{alertblock}{Manipulation des listes esclaves}
|
|
||||||
\commande{CreoleSet} ne permet pas de changer la longueur de esclave. Une assignation de valeur pour une liste doit respecter la longueur initiale.
|
|
||||||
\end{alertblock}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Dictionnaires Creole}
|
\frametitle{Dictionnaires Creole}
|
||||||
\frametitle{Les paquets}
|
\frametitle{Les paquets}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
\usepackage{xcolor}
|
\usepackage{xcolor}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\usepackage{hyperxmp}
|
\usepackage{hyperxmp}
|
||||||
\usepackage{calc}
|
|
||||||
%\usepackage{pdfpcnotes} % Indisponible dans les paquets, installation manuelle requise
|
%\usepackage{pdfpcnotes} % Indisponible dans les paquets, installation manuelle requise
|
||||||
|
|
||||||
\hypersetup{%
|
\hypersetup{%
|
||||||
|
@ -48,6 +47,8 @@
|
||||||
{\skbinput[from=fig]{cadoles/simple_dash}}
|
{\skbinput[from=fig]{cadoles/simple_dash}}
|
||||||
|
|
||||||
|
|
||||||
|
\institute[Cadoles]{\skbfigure[width=2cm]{cadoles/logo-01.png}}
|
||||||
|
\institute[MENJ]{\skbfigure[width=2cm]{en/logo_MENJ.jpg}}
|
||||||
|
|
||||||
\date{{\small \today}}
|
\date{{\small \today}}
|
||||||
|
|
||||||
|
@ -83,6 +84,11 @@
|
||||||
\end{frame}
|
\end{frame}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\logo{
|
||||||
|
\skbfigure[width=2cm]{en/logo_MENJ.jpg}~ \hspace{220pt}
|
||||||
|
\skbfigure[width=2cm]{cadoles/logo_01.png}~
|
||||||
|
}
|
||||||
|
|
||||||
\addtobeamertemplate{frametitle}{%
|
\addtobeamertemplate{frametitle}{%
|
||||||
\begin{tikzpicture}[remember picture,overlay]
|
\begin{tikzpicture}[remember picture,overlay]
|
||||||
\node[anchor=north west,yshift=2pt,text opacity=0.5, scale=0.8] at (current page.north west) {\insertsubsection};
|
\node[anchor=north west,yshift=2pt,text opacity=0.5, scale=0.8] at (current page.north west) {\insertsubsection};
|
||||||
|
|
|
@ -16,25 +16,15 @@
|
||||||
\newcommand{\pdftitle}{(((title)))}
|
\newcommand{\pdftitle}{(((title)))}
|
||||||
\newcommand{\pdfkeywords}{EOLE}
|
\newcommand{\pdfkeywords}{EOLE}
|
||||||
|
|
||||||
|
|
||||||
\skbinput[from=(((content)))]{style/preambule}
|
\skbinput[from=(((content)))]{style/preambule}
|
||||||
|
|
||||||
\newlength{\logospacing}
|
|
||||||
\setlength{\logospacing}{(\textwidth - 2cm*(((logos_count))))/(((logos_count - 1)))}
|
|
||||||
|
|
||||||
\logo{
|
|
||||||
((* for institute in institutes *))
|
|
||||||
\skbfigure[width=2cm]{logos/(((institute)))}~ \hspace{\logospacing}
|
|
||||||
((* endfor *))
|
|
||||||
\skbfigure[width=2cm]{logos/Cadoles.png}~
|
|
||||||
}
|
|
||||||
|
|
||||||
\title[]{(((title)))}
|
\title[]{(((title)))}
|
||||||
\subtitle{(((client)))}
|
\subtitle{(((client)))}
|
||||||
|
|
||||||
\author[Equipe Auteur]{(((author)))}
|
\author[Equipe Auteur]{(((author)))}
|
||||||
|
|
||||||
\institute[Cadoles]{\skbfigure[width=2cm]{logos/Cadoles.png}}
|
\institute[Cadoles]{\skbfigure[width=2cm]{cadoles/logo_01.png}}
|
||||||
|
|
||||||
|
|
||||||
\date{{\small \today}}
|
\date{{\small \today}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue