Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ws15 patroni #21

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f8111e0
AUTHORS
Krysztophe Jan 17, 2022
e45f4e4
Noop
Krysztophe Jan 17, 2022
3404575
[CI] Add _archives to the artifacts
daamien Jan 18, 2022
e58b51b
[CI] use the public_env template
daamien Jan 18, 2022
8152e98
Merge branch '143-publication-automatique-du-workshop-14-2' into 'mas…
Krysztophe Jan 18, 2022
70da652
[doc] How to refresh the mirror
daamien Jan 19, 2022
758344c
[CI] override the public_env job
daamien Jan 19, 2022
8a580c8
Merge branch '143-publication-automatique-du-workshop-14-2' into 'mas…
daamien Jan 19, 2022
6f2e822
typo fr/ws14/include/101_idle_session_timeout.md
Feb 24, 2022
d37fec5
Merge branch 'ws14' into 'master'
Feb 24, 2022
5c929a6
.gitlab-ci.yml : thèmes master
Krysztophe Mar 3, 2022
743f613
Merge branch '144-documenter-la-synchronisation-du-miroir-github' int…
daamien Mar 4, 2022
c577454
WS14 : REVERT de l'autonalyze sur la table partitionnée globale
Krysztophe May 20, 2022
11b1348
Apply 1 suggestion(s) to 1 file(s)
May 20, 2022
b2bb146
Merge branch '146-bug-les-pointeurs-sur-les-formations-sont-faux' int…
Krysztophe May 20, 2022
603d547
Merge branch '147-autovacuum-handle-analyze-for-partitioned-tables-re…
May 24, 2022
a202725
resync avec le playbook de hapat
Feb 7, 2023
80c8f1b
renamed README and add Makefile
Feb 7, 2023
7217722
mod .gitlab-ci.yml
Feb 7, 2023
b585f61
correction désactiv pgsql service
Feb 7, 2023
7e225a4
montée de version / ajout toc
Feb 8, 2023
1f6f654
renamed README excluded in the Makefile
Feb 8, 2023
421283e
archivage dans _archives/pgs14/
Feb 8, 2023
c2ea76a
add date
Feb 8, 2023
6a9195d
inc toc depth
Feb 8, 2023
c76b3c1
distrib condirtionnelle dans les containers
Feb 8, 2023
c027cb4
add network config and lxc's distrib condition
Feb 8, 2023
c4ed295
add fill of /etc/hosts on all lxc
Feb 8, 2023
1e4d83e
typo conf etcd
Feb 8, 2023
b482410
add etcd enable_v2
Feb 8, 2023
d448431
correction cmd etcd
Feb 9, 2023
8e4fa0d
verif etcd
Feb 9, 2023
65ac670
mise en forme
Feb 9, 2023
77424ce
test restore gitlab-ci depuis master
Feb 9, 2023
8d50d9a
Update .gitlab-ci.yml file
tilkow Feb 9, 2023
d1a4b39
Update .gitlab-ci.yml file
tilkow Feb 9, 2023
f059f23
Update .gitlab-ci.yml file
tilkow Feb 9, 2023
81f4f35
typo et forme
Feb 9, 2023
a170edb
refacto playbook
Feb 9, 2023
929d53d
utilisation du wrapper debian
Feb 9, 2023
9b744d8
typo et forme
Feb 9, 2023
a836655
typo
Feb 9, 2023
2ed3e44
ajout user dba et récup TL et LSN
Feb 9, 2023
496964b
typo
Feb 9, 2023
802d8c9
conf pgbackrest
Feb 9, 2023
2400c4c
add pgbackrest conf
Feb 9, 2023
ab482b4
add réplication synchrone
Feb 9, 2023
e74d0e4
mise à jour mineure sans arrêt de service
Feb 9, 2023
ed4fe2c
fin màj sans interruption de service
Feb 9, 2023
ad186ad
Correction commande ajout de less
tilkow Feb 10, 2023
7af2ccd
removed toc
Feb 10, 2023
6243122
typo
Feb 10, 2023
52b16f8
use_socket et superuser dba. TOK
Feb 10, 2023
e253fa7
typo et add cmd switchover
Feb 12, 2023
41569af
mod 1er lancement des secondaires
Feb 12, 2023
0767447
correct format
Feb 13, 2023
16dac66
add 2 authors
Feb 13, 2023
3a2ad5d
mod url playbook -> br ws15_patroni
Feb 13, 2023
ab089c9
Fix typo in patroni support
autra Feb 14, 2023
0e50736
Fix typo in config path
autra Feb 14, 2023
1beade7
Ajoute un restart manquant
autra Feb 14, 2023
229ccbe
Ajoute un sudo manquant
autra Feb 14, 2023
f18b37e
Merge pull request #23 from autra/ws15_patroni_fix
frbn Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
## I N C L U D E S
##

# How To Export artefacts to the private environment
include:
# Export artefacts to the private environment
- project: 'dalibo/gitlab-templates'
file: 'artifacts_private_env.yml'
# Export artefacts to the public environment
- project: 'dalibo/gitlab-templates'
file: 'artifacts_public_env.yml'


##
## V A R I A B L E S
##

variables:
BRANCH_TARGET: ws14
BRANCH_TARGET: patroni
MASTER_TARGET: all
# $ARTIFACTS is required by artefacts_private_env.yml
ARTIFACTS: '_build/*'
#
THEMES_BRANCH: stable # usually 'stable' or 'master'
## Limitation des pull docker
## https://gitlab.dalibo.info/formation/manuels/-/issues/482
## Pointer temporairement vers un registre cache externe chez Gitlab (https://gitlab.com/dalibo/pandocker/container_registry/1505688)
CI_REGISTRY: registry.gitlab.com
# THEMES_BRANCH is usually 'stable' or 'master'
THEMES_BRANCH: master


before_script:
Expand Down Expand Up @@ -85,17 +85,11 @@ pandoc:
expire_in: 1 day

##
## D E P L O Y
## D E P L O Y
##

## Export the master branch in a public location
public:
stage: deploy
script:
## Install Deploy Key
- ssh-add <(echo "$CLOUD_DEPLOY_PRIVATE_KEY")
## Push
- rsync -avp fr $CLOUD_DEPLOY_DEST
- rsync -avp en $CLOUD_DEPLOY_DEST
only:
- master@formation/workshops
# overiding the job template because we need to force GIT_STRATEGY
# for this pipeline in order to deploy `_archives`
public_env:
variables:
GIT_STRATEGY: fetch
6 changes: 5 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ order:

* Alexandre Anriot <alexandre@atlantilde.com>
* Adrien Nayrat <adrien.nayrat@dalibo.com>
* damien clochard <damien.clochard@dalibo.com>
* Damien Clochard <damien.clochard@dalibo.com>
* Guillaume Lelarge <guillaume.lelarge@dalibo.com>
* Thibaut Madelaine <thibaut.madelaine@dalibo.com>
* Nicolas Gollet <nicolas.gollet@dalibo.com>
* Nicolas Thauvin <nicolas.thauvin@dalibo.com>
* Stefan Fercot <stefan.fercot@dalibo.com>
* Thomas Reiss <thomas.reiss@dalibo.com>
* Benoit Lobréau <benoit.lobreau@dalibo.com>
* Christophe Courtois <christophe.courtois@dalibo.com>
* Thibaud Walkowiak
* Franck Boudehen
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ make ws14
Previous workshops generated files are versionned under `_archives_` folder with
the same logic to preserve templates made in the past.

Refresh the github mirror
-------------------------------------------------------------------------------

```
git clone git@github.com:dalibo/workshops.git
cd workshops
git remote add upstream git@gitlab.dalibo.info:formation/workshops.git
git fetch upstream
git rebase upstream/master
git push --force-with-lease
```

> DO NOT use `git push --force` on the master branch.


Contribute
-------------------------------------------------------------------------------

Expand Down
168 changes: 168 additions & 0 deletions fr/patroni/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
#
# Chemin vers les thèmes Dalibo. DLB est le chemin pour la command pandoc,
# HOST_DLB est le chemin pour le Makefile.
#
DLB?=$(HOME)/.dalibo/themes/
HOST_DLB:=$(DLB)

#
# Pandoc
#
P=pandoc

# if pandoc is not installed, let's use pandocker
ifeq (, $(shell which $(P)))
DOCKER?=latest
endif

ifneq ($(DOCKER),)
DLB=/root/dalibo/themes
P:=docker run --rm -it --privileged -e TEXMFHOME --volume $(CURDIR):/pandoc --volume $(HOST_DLB):$(DLB) dalibo/pandocker:$(DOCKER)
endif

PANDOC_ARGS=--standalone
P+=--metadata=dlb:$(DLB) $(PANDOC_ARGS)


#
# Pandoc Flags
#
ifeq ("$(wildcard $(HOST_DLB))","")
# Default Compilation Flags
REVEAL_FLAGS=-V revealjs-url:http://lab.hakim.se/reveal-js/css/reveal.css/css/reveal.css
TEX_FLAGS=
BEAMER_FLAGS=
PDF_FLAGS=
ODT_FLAGS=
DOCX_FLAGS=
EPUB_FLAGS=
else
# Dalibo's Compilation Flags
REVEAL_LOCAL_FLAGS=-V revealjs-url="$(HOST_DLB)/reveal.js/" --template="$(DLB)/reveal.js/pandoc/templates/dalibo.revealjs"
REVEAL_FLAGS=-V revealjs-url="$(DLB)/reveal.js/" --template="$(DLB)/reveal.js/pandoc/templates/dalibo.revealjs" --self-contained
TEX_FLAGS=-V theme=Dalibo
export TEXMFHOME=$(DLB)/beamer
BEAMER_FLAGS=-V theme=Dalibo
ifneq (,$(wildcard $(HOST_DLB)/beamer/template.latex))
BEAMER_FLAGS:=$(BEAMER_FLAGS) --template $(DLB)/beamer/template.latex
endif
ifneq (,$(wildcard $(HOST_DLB)/highlight/dalibo-dark.theme))
$(info Utilisation du style Dalibo pour la coloration syntaxique)
BEAMER_FLAGS:=$(BEAMER_FLAGS) --highlight-style=$(DLB)/highlight/dalibo-dark.theme
REVEAL_FLAGS:=$(REVEAL_FLAGS) --highlight-style=$(DLB)/highlight/dalibo-dark.theme
REVEAL_LOCAL_FLAGS:=$(REVEAL_LOCAL_FLAGS) --highlight-style=$(DLB)/highlight/dalibo-dark.theme
endif
PDF_FLAGS=--template=$(DLB)/tex/audit/template.tex --pdf-engine-opt=-shell-escape
ODT_FLAGS=--reference-doc=$(DLB)/odt/template_conference.dokuwiki.odt
DOCX_FLAGS=--reference-doc=$(DLB)/doc/template_conference.dokuwiki.doc
EPUB_FLAGS=
endif

##
## DECKTAPE
##
DECKTAPE?=docker run --rm -it --privileged -v $(CURDIR):/slides astefanutti/decktape

##
## $(SRCS) is the list of all source files
##

# Ignore documentation
EXCLUDES:= -and -not -name 'QUICKSTART.md' -and -not -name 'README.md'
# Ignore themes directories
EXCLUDES+= -and -not -path './themes/*' -and -not -path '*/reveal.js/*'
# Ignore directories and files that starts with a '_'
EXCLUDES+= -and -not -path '*/_*'

# Search for all .md files
SRCS=$(shell find . -type f -name '*.md' $(EXCLUDES) )

##
## Objects files
##
REVEAL_OBJS=$(SRCS:.md=.html)
REVEAL_LOCAL_OBJS=$(SRCS:.md=.local.html)
REVEAL_PDF_OBJS=$(SRCS:.md=.reveal.pdf)
TEX_OBJS=$(SRCS:.md=.tex)
BEAMER_OBJS=$(SRCS:.md=.beamer.pdf)
BEAMER_NOTES_OBJS=$(SRCS:.md=.beamer.speaker.pdf)
PDF_OBJS=$(SRCS:.md=.pdf)
ODT_OBJS=$(SRCS:.md=.odt)
DOCX_OBJS=$(SRCS:.md=.docx)
EPUB_OBJS=$(SRCS:.md=.epub)


test:
@echo Présentations: $(SRCS)
@echo Thèmes dalibo: $(DLB)
@echo Commande pandoc: $(P)
@echo Options reveal: echo $(REVEAL_FLAGS)

install:
ln -s $(HOME)/.dalibo/themes/

uninstall:
rm themes

all: reveal reveal_local pdf epub odt

reveal: $(REVEAL_OBJS)
reveal_local: $(REVEAL_LOCAL_OBJS)
tex: $(TEX_OBJS)
beamer: $(BEAMER_OBJS)
beamer_notes: $(BEAMER_NOTES_OBJS)
pdf: $(PDF_OBJS)
odt: $(ODT_OBJS)
docx: $(DOCX_OBJS)
epub: $(EPUB_OBJS)
reveal_pdf: $(REVEAL_PDF_OBJS)


%.all: %.html %.pdf %.odt %.epub

%.local.html: %.md
$P -t revealjs $(REVEAL_LOCAL_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.html: %.md
$P -t revealjs $(REVEAL_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.tex: %.md
$P -t beamer $(TEX_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.beamer.pdf: %.md
TEXMFHOME=$(DLB)/beamer $P -t beamer -V classoption=14pt -V classoption="aspectratio=169" $(BEAMER_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.beamer.notes.pdf: %.md
$P -t beamer -V classoption=14pt -V "beameroption=show notes on second screen" $(BEAMER_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.pdf: %.md
$P --pdf-engine=xelatex $(PDF_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.odt: %.md
$P $(ODT_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.docx: %.md
$P $(DOCX_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.epub: %.md
$P $(EPUB_FLAGS) --resource-path=.:$(dir $^) $^ -o $@

%.reveal.pdf: %.html
$(DECKTAPE) --size 1920x1080 $^ $@

# Utiliser make watch-reveal_local pour regénérer les reveal.html à chaque
# changement des md.
watch-%:
echo $(SRCS) | entr -c make $*

clean:
rm -fr $(REVEAL_OBJS)
rm -fr $(REVEAL_LOCAL_OBJS)
find . -name reveal.js | xargs -r rm -fr
rm -fr $(TEX_OBJS)
rm -fr $(BEAMER_OBJS)
rm -fr $(BEAMER_NOTES_OBJS)
rm -fr $(PDF_OBJS)
rm -fr $(ODT_OBJS)
rm -fr $(DOCX_OBJS)
rm -fr $(EPUB_OBJS)
Binary file added fr/patroni/_archives/pgs14/patroni.epub
Binary file not shown.
Loading