plugins_dokuwiki
Différences
Ci-dessous, les différences entre deux révisions de la page.
plugins_dokuwiki [2019/05/21 16:21] – créée jacques-olivier.farcy@univ-rennes1.fr | plugins_dokuwiki [2019/05/21 16:22] (Version actuelle) – supprimée jacques-olivier.farcy@univ-rennes1.fr | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ===== Présentation des plugins du wiki de la DSI ===== | ||
- | |||
- | ==== doodle3 ==== | ||
- | |||
- | <doodle | ||
- | title=" | ||
- | auth=" | ||
- | adminUsers="" | ||
- | adminGroups="" | ||
- | voteType=" | ||
- | closed=" | ||
- | > | ||
- | * Option 1 | ||
- | * Option 2 **some wikimarkup** \\ is __allowed__! | ||
- | * Option 3 | ||
- | </ | ||
- | |||
- | ==== Syntax ==== | ||
- | |||
- | * Balises WRAP | ||
- | |||
- | <wrap lo>peu important</ | ||
- | |||
- | <wrap em> | ||
- | |||
- | <WRAP half column> | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | |||
- | <WRAP classes #id width : | ||
- | " | ||
- | </ | ||
- | |||
- | or | ||
- | <block classes #id width : | ||
- | " | ||
- | </ | ||
- | |||
- | or | ||
- | <div classes #id width : | ||
- | " | ||
- | </ | ||
- | |||
- | <wrap classes #id width : | ||
- | |||
- | or | ||
- | <inline classes #id width : | ||
- | |||
- | or | ||
- | <span classes #id width : | ||
- | |||
- | <WRAP group> | ||
- | <WRAP half column> | ||
- | <WRAP half column> | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | <WRAP tip> | ||
- | <WRAP important> | ||
- | <WRAP alert> | ||
- | <WRAP round help> | ||
- | <WRAP download> | ||
- | <WRAP todo> | ||
- | <WRAP danger> | ||
- | <WRAP warning> | ||
- | <WRAP caution> | ||
- | <WRAP round notice> | ||
- | <WRAP round safety> | ||
- | |||
- | <wrap indent> | ||
- | |||
- | |||
- | <box 80% round orange|a title> the box contents</ | ||
- | <box 50% left blue>the box contents</ | ||
- | <box 60% round #f99 #fc9 #fcc # | ||
- | |||
- | ==== Hidden ==== | ||
- | |||
- | * Pour rendre lisible une page qui intègre du code (scripts), il peut être utile de masquer certaines parties avec la balise **hidden** | ||
- | |||
- | |||
- | <hidden Cliquez ici pour afficher la partie cachée> | ||
- | |||
- | On peut mettre du texte | ||
- | |||
- | <note tip>On peut aussi mettre des notes</ | ||
- | |||
- | </ | ||
- | |||
- | * On peut aussi mettre du code masqué | ||
- | |||
- | <hidden Cliquez ici pour afficher la partie masquée> | ||
- | |||
- | <code |bash rech_openldap.sh> | ||
- | #!/bin/bash | ||
- | # | ||
- | # Recherche dans l' | ||
- | # | ||
- | # Auteur : Pascal Gentil - DSI - pascal.gentil@univ-rennes1.fr | ||
- | # | ||
- | # On entre au choix uid, uidnumber, gidnumber, departnumber, | ||
- | # nom, prenom, mail | ||
- | # | ||
- | # Date de création | ||
- | # Dernière modification : 19 août 2015 | ||
- | # | ||
- | function reponse | ||
- | { | ||
- | echo -n " | ||
- | read CHOIX | ||
- | if [ " | ||
- | exit 0 | ||
- | else | ||
- | while [ ${CHOIX} -lt $1 ] || [ ${CHOIX} -gt $2 ]; do | ||
- | echo " | ||
- | echo -n " | ||
- | read CHOIX | ||
- | done | ||
- | fi | ||
- | } | ||
- | # | ||
- | SERVEUR=" | ||
- | DNAME=" | ||
- | PASSWD=" | ||
- | BASE=" | ||
- | ATTRIBUTS=" | ||
- | departmentnumber memberOf ur1mail mailAlternateAddress | ||
- | ur1MailAltDomain mailForwardingAddress ur1etatcompte ur1datefincompte" | ||
- | |||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | |||
- | # Si on passe un argument, on suppose que c'est l'uid | ||
- | if [ $# -eq 1 ]; then | ||
- | CHERCHE=" | ||
- | |||
- | # Sinon on choisit | ||
- | else | ||
- | echo "Choix du critère de recherche : " | ||
- | echo " <CR>) quitter" | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | echo " | ||
- | reponse 1 16 | ||
- | |||
- | case ${CHOIX} in | ||
- | 1) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 2) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 3) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 4) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 5) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 6) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 7) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 8) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 9) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 10) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 11) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 12) echo -n " | ||
- | read VAL | ||
- | | ||
- | ;; | ||
- | |||
- | 13) echo -n " | ||
- | read VAL | ||
- | CHERCHE=" | ||
- | ;; | ||
- | |||
- | 14) echo -n " | ||
- | read VAL | ||
- | CHERCHE=" | ||
- | ;; | ||
- | |||
- | 15) echo -n " | ||
- | read PRENOM NOM | ||
- | CHERCHE=" | ||
- | ;; | ||
- | |||
- | 16) echo -n " | ||
- | read MEL | ||
- | CHERCHE=" | ||
- | ;; | ||
- | |||
- | esac | ||
- | fi | ||
- | |||
- | ldapsearch -x -ZZ -D ${DNAME} -w ${PASSWD} -h ${SERVEUR} -LLL -b ${BASE} \ | ||
- | ${CHERCHE} ${ATTRIBUTS} | ||
- | |||
- | exit 0 | ||
- | |||
- | </ | ||
- | |||
- | |||
- | </ | ||
- | |||
- | |||
- | ==== Sequence Diagramme ==== | ||
- | * On peut facilement créer un diagramme de séquence éditable (sans avoir à gérer l' | ||
- | * FIXME taille du diagramme pas adaptée | ||
- | |||
- | |||
- | < | ||
- | title : Architecture Oauth2 - cas sans Access Token | ||
- | participant Resource Owner as user | ||
- | participant Client as client | ||
- | participant Resource Server as rs | ||
- | participant Authorization Server as as | ||
- | |||
- | user-> | ||
- | note over client: 2- Authentification gérée par le client.\nLe client sait qu'il n'a pas d' | ||
- | client--> | ||
- | user--> | ||
- | note over as: 4- L' | ||
- | note over as: 5- Authentification de l' | ||
- | note over as: 6- L' | ||
- | as--> | ||
- | user--> | ||
- | client-> | ||
- | note over as: 9- Create_AccessToken | ||
- | as-> | ||
- | client-> | ||
- | rs->as: 12- Validate_AccessToken(exist, | ||
- | as->rs: 13- Response_userinfo(Metadata, | ||
- | note over rs: 14- Le ResourceServer vérifie la signature\navec le secret reçu. | ||
- | rs-> | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ==== Graphviz ==== | ||
- | |||
- | === exemple 1 === | ||
- | |||
- | |||
- | < | ||
- | digraph Ontologie { | ||
- | |||
- | Service [shape=" | ||
- | " | ||
- | Administrateur [shape=" | ||
- | Utilisateur [shape=" | ||
- | Application [shape=" | ||
- | Module [shape=" | ||
- | Conf [label=" | ||
- | Serveur [shape=" | ||
- | Réseau [label=" | ||
- | Switch [shape=" | ||
- | Routeur [shape=" | ||
- | Elec [label=" | ||
- | Clim [label=" | ||
- | |||
- | Utilisateur -> Service ; | ||
- | Service -> " | ||
- | Service -> Administrateur ; | ||
- | Application -> Administrateur ; | ||
- | Serveur -> Administrateur ; | ||
- | Routeur -> Administrateur ; | ||
- | Switch -> Administrateur ; | ||
- | Module -> Administrateur ; | ||
- | Application -> Module ; | ||
- | Application -> Conf ; | ||
- | Application -> Réseau ; | ||
- | Serveur -> Réseau -> Switch -> Routeur ; | ||
- | Serveur -> Elec ; | ||
- | Switch -> Elec ; | ||
- | Clim -> Elec ; | ||
- | Routeur -> Elec ; | ||
- | Serveur -> Clim ; | ||
- | Switch -> Clim ; | ||
- | Routeur -> Clim ; | ||
- | |||
- | { rank=" | ||
- | { rank=" | ||
- | { rank=" | ||
- | { rank=" | ||
- | } | ||
- | </ | ||
- | |||
- | |||
- | === exemple 2 === | ||
- | < | ||
- | digraph " | ||
- | rankdir=BT; | ||
- | compound=true; | ||
- | |||
- | subgraph " | ||
- | ownerform [ label=" | ||
- | devform [ label=" | ||
- | |||
- | subgraph " | ||
- | rsform [ label=" | ||
- | |||
- | owner [ label=" | ||
- | dev [ label=" | ||
- | |||
- | |||
- | subgraph " | ||
- | app [ label=" | ||
- | |||
- | owner -> app [label=" | ||
- | |||
- | app -> rsform [label=" | ||
- | |||
- | owner -> ownerform [label=" | ||
- | app -> ownerform [label=" | ||
- | |||
- | dev -> devform | ||
- | |||
- | } | ||
- | </ | ||
- | |||
- | === éditeurs de graphviz === | ||
- | |||
- | Voici 2 éditeurs de graphviz en ligne qui permettent d’affiner son graph avant d'en faire le bout de code que l'on intégrera dans le wiki (grâce au plugin graphviz déjà présenté) avec un simple copier/ | ||
- | |||
- | [[https:// | ||
- | |||
- | [[http:// | ||
- | ==== Bureaucracy ==== | ||
- | |||
- | * Avec ce plugin, on peut facilement intégrer des formulaires web | ||
- | |||
- | === Formulaire avec envoi du contenu du formulaire dans un mail === | ||
- | |||
- | <note warning> | ||
- | </ | ||
- | |||
- | < | ||
- | Action mail rafael.diazmaurin@univ-rennes1.fr | ||
- | subject " | ||
- | Thanks "La demande de nouvelle machine a bien été transmise à l' | ||
- | |||
- | Fieldset " | ||
- | Select " | ||
- | Textbox "Nom du serveur (sera renseigné dans le DNS)" | ||
- | Textbox "N° du ticket associé" | ||
- | Textarea "Point d' | ||
- | Date "Date de mise en production envisagée" | ||
- | static " | ||
- | Textarea " | ||
- | |||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | Select " | ||
- | number " | ||
- | number " | ||
- | number " | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | Select "OS demandé" | ||
- | Fieldset "Autre OS" "OS demandé" | ||
- | Wiki " | ||
- | Textbox " | ||
- | Textarea " | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | Select "VLAN dans lequel placer le serveur" | ||
- | Fieldset "Autre VLAN" "VLAN dans lequel placer le serveur" | ||
- | Wiki " | ||
- | Textbox "Autre VLAN (si spécifique) ou précisions en cas d' | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | Textarea "Types de surveillances Nagios souhaitées (des applications, | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | Select "Liste des administrateurs (sudoers ou adm-*) par équipe" | ||
- | Textarea "Liste des administrateurs extérieurs à l' | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | yesno " | ||
- | Fieldset "Ajout de dépôt pour installation de paquets" | ||
- | Wiki " | ||
- | Textarea "Nom du dépôt ou URL" ! (x1) | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | yesno " | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | Wiki " | ||
- | Textarea " | ||
- | Textarea " | ||
- | Textbox " | ||
- | Wiki " | ||
- | yesno " | ||
- | Fieldset " | ||
- | Wiki " | ||
- | Textarea " | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | yesno " | ||
- | Fieldset " | ||
- | Wiki " | ||
- | Textarea "Type de BBD installée" | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | yesno " | ||
- | Fieldset "Types de commandes à afficher" | ||
- | Wiki " | ||
- | Textarea "Types de commandes à afficher par gw" ! (x1) | ||
- | |||
- | Fieldset " | ||
- | Wiki " | ||
- | yesno " | ||
- | Fieldset " | ||
- | Wiki " | ||
- | Textarea "Liste des accès SQUID spécifiques" | ||
- | |||
- | |||
- | Fieldset " | ||
- | textarea " | ||
- | submit " | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== Utiliser la coloration syntaxique de code ==== | ||
- | === Simple coloration syntaxique de code === | ||
- | <code bash> | ||
- | #!/bin/bash | ||
- | |||
- | echo -n " | ||
- | read CHOIX | ||
- | if [ " | ||
- | exit 0 | ||
- | else | ||
- | while [ ${CHOIX} -lt $1 ] || [ ${CHOIX} -gt $2 ]; do | ||
- | echo " | ||
- | echo -n " | ||
- | read CHOIX | ||
- | done | ||
- | fi | ||
- | |||
- | </ | ||
- | |||
- | |||
- | |||
- | === Coloration syntaxique avec possibilité de récupérer les sources du code en 1 clic === | ||
- | |||
- | <code |xml / | ||
- | <?xml version=" | ||
- | < | ||
- | Define attributes that are released by this Attribute Authority | ||
- | Ensure that the actual filtering of attributes and values is | ||
- | performed in attribute-resolver.xml based on SQL Queries. | ||
- | --> | ||
- | < | ||
- | xmlns: | ||
- | xmlns: | ||
- | xsi: | ||
- | urn: | ||
- | urn: | ||
- | |||
- | < | ||
- | < | ||
- | |||
- | < | ||
- | < | ||
- | </ | ||
- | </ | ||
- | |||
- | </ | ||
- | </ |
plugins_dokuwiki.1558448473.txt.gz · Dernière modification : 2019/05/21 16:21 de jacques-olivier.farcy@univ-rennes1.fr