Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
docker_auth
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Ansible Roles
docker_auth
Validations
d7f31419
Valider
d7f31419
rédigé
5 juil. 2023
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[UPD] ansible-lint
parent
ee58c4dc
Branches
Branches contenant la validation
Étiquettes
v1.0.6
Aucune requête de fusion associée trouvée
Modifications
5
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
5 fichiers modifiés
.ansible-lint
+7
-0
7 ajouts, 0 suppression
.ansible-lint
.yamllint
+39
-0
39 ajouts, 0 suppression
.yamllint
handlers/main.yml
+11
-11
11 ajouts, 11 suppressions
handlers/main.yml
meta/main.yml
+15
-15
15 ajouts, 15 suppressions
meta/main.yml
tasks/main.yml
+17
-17
17 ajouts, 17 suppressions
tasks/main.yml
avec
89 ajouts
et
43 suppressions
.ansible-lint
0 → 100644
+
7
−
0
Voir le fichier @
d7f31419
---
warn_list: # or 'skip_list' to silence them completely
- git-latest # Git checkouts must contain explicit version
- ignore-errors # Use failed_when and specify error conditions instead of using ignore_errors
- no-changed-when # Commands should not change things if nothing needs doing
- no-handler # Tasks that run when changed should likely be handlers
- package-latest # Package installs should not use latest
Ce diff est replié.
Cliquez pour l'agrandir.
.yamllint
0 → 100644
+
39
−
0
Voir le fichier @
d7f31419
---
# Based on ansible-lint config
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
# comments enable
comments: enable
comments-indentation: enable
document-start: enable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation:
level: warning
indent-sequences: consistent
spaces: 4
check-multi-line-strings: true
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: enable
new-lines:
type: unix
# trailing-spaces enable
trailing-spaces: enable
truthy: enable
Ce diff est replié.
Cliquez pour l'agrandir.
handlers/main.yml
+
11
−
11
Voir le fichier @
d7f31419
---
-
name
:
r
ebuild auth docker
docker_compose
:
-
name
:
R
ebuild auth docker
community.docker.
docker_compose
:
project_src
:
/home/docker/auth
build
:
true
recreate
:
always
...
...
@@ -10,7 +10,7 @@
poll
:
10
when
:
not ansible_check_mode
-
name
:
s
tart auth docker
docker_compose
:
-
name
:
S
tart auth docker
community.docker.
docker_compose
:
project_src
:
/home/docker/auth
remove_orphans
:
true
Ce diff est replié.
Cliquez pour l'agrandir.
meta/main.yml
+
15
−
15
Voir le fichier @
d7f31419
---
galaxy_info
:
author
:
Rémi
author
:
lefilament
description
:
This role deploys LemonLDAP v1.9 together with LDAP for SSO authentication.
company
:
Le Filament (https://le-filament.com)
license
:
AGPL-3.0-or-later
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
tasks/main.yml
+
17
−
17
Voir le fichier @
d7f31419
---
-
name
:
Create docker auth repo
file
:
ansible.builtin.
file
:
name
:
/home/docker/auth/sso
state
:
directory
owner
:
root
...
...
@@ -9,45 +9,45 @@
## Install Auth docker
-
name
:
Install lemonldap source repo file
copy
:
ansible.builtin.
copy
:
src
:
lemonldap-ng.list
dest
:
/home/docker/auth/sso/lemonldap-ng.list
owner
:
root
group
:
root
mode
:
'
0400'
notify
:
r
ebuild auth docker
notify
:
R
ebuild auth docker
-
name
:
Install Dockerfile for building lemonldap
template
:
ansible.builtin.
template
:
src
:
Dockerfile-sso.j2
dest
:
/home/docker/auth/sso/Dockerfile
owner
:
root
group
:
root
mode
:
'
0400'
notify
:
r
ebuild auth docker
notify
:
R
ebuild auth docker
-
name
:
Install nagios.conf for serving Nagios docker
template
:
ansible.builtin.
template
:
src
:
nagios.conf.apache2.j2
dest
:
/home/docker/auth/sso/nagios.conf
owner
:
root
group
:
root
mode
:
'
0644'
when
:
inventory_hostname in groups['docker_nagios']
notify
:
r
ebuild auth docker
notify
:
R
ebuild auth docker
-
name
:
Install Auth docker architecture
template
:
ansible.builtin.
template
:
src
:
docker-compose.yaml.j2
dest
:
/home/docker/auth/docker-compose.yaml
owner
:
root
group
:
root
mode
:
'
0400'
notify
:
s
tart auth docker
notify
:
S
tart auth docker
## Backup Auth section
-
name
:
Install auth backup compose file
template
:
ansible.builtin.
template
:
src
:
backup.yaml.j2
dest
:
/home/docker/backups/backup-auth.yaml
owner
:
root
...
...
@@ -56,7 +56,7 @@
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
Install auth backup2 compose file
template
:
ansible.builtin.
template
:
src
:
backup2.yaml.j2
dest
:
/home/docker/backups/backup2-auth.yaml
owner
:
root
...
...
@@ -64,24 +64,24 @@
mode
:
'
0400'
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
a
dd cron job to run data backup every day
cron
:
-
name
:
A
dd cron job to run data backup every day
ansible.builtin.
cron
:
name
:
backup auth data
minute
:
"
45"
hour
:
"
00"
job
:
/usr/bin/docker exec openldap slapcat -v > /home/docker/backups/ldap_backup.ldif ; chmod 400 /home/docker/backups/ldap_backup.ldif
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
a
dd cron job to run backup every day
cron
:
-
name
:
A
dd cron job to run backup every day
ansible.builtin.
cron
:
name
:
push auth backup to openstack
minute
:
"
40"
hour
:
"
03"
job
:
/usr/bin/docker-compose -f /home/docker/backups/backup-auth.yaml run --rm backup_auth
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
a
dd cron job to run backup2 every day
cron
:
-
name
:
A
dd cron job to run backup2 every day
ansible.builtin.
cron
:
name
:
push auth backup2 to openstack
minute
:
"
50"
hour
:
"
00"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter