Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
docker_odoo
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_odoo
Validations
22fc5899
Valider
22fc5899
rédigé
Il y a 2 ans
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[FIX] add userns in path
parent
81479985
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
tasks/main.yml
+22
-4
22 ajouts, 4 suppressions
tasks/main.yml
avec
22 ajouts
et
4 suppressions
tasks/main.yml
+
22
−
4
Voir le fichier @
22fc5899
...
@@ -603,20 +603,38 @@
...
@@ -603,20 +603,38 @@
# --------------------------------------------------
# --------------------------------------------------
# Postgres Readonly user
# Postgres Readonly user
# --------------------------------------------------
# --------------------------------------------------
-
name
:
PROD Allow readonly user connection to prod db
-
name
:
PROD Allow readonly user connection to prod db (with userns_remap)
blockinfile
:
path
:
/var/lib/docker/{{ dockremap_subuid }}.{{ dockremap_subgid }}/volumes/odoo_db/_data/pg_hba.conf
block
:
|
host {{ odoo_prod.db }} {{ odoo_prod.db_user }} 172.16.0.0/12 md5
host postgres {{ odoo_prod.db_user }} 172.16.0.0/12 md5
host {{ odoo_prod.db }} {{ odoo_db_rouser }} all md5
when
:
odoo_remote_db_access and odoo_prod is defined and docker_userns_remap
tags
:
odoo_prod
-
name
:
PROD Allow readonly user connection to prod db (no userns_remap)
blockinfile
:
blockinfile
:
path
:
/var/lib/docker/volumes/odoo_db/_data/pg_hba.conf
path
:
/var/lib/docker/volumes/odoo_db/_data/pg_hba.conf
block
:
|
block
:
|
host {{ odoo_prod.db }} {{ odoo_prod.db_user }} 172.16.0.0/12 md5
host {{ odoo_prod.db }} {{ odoo_prod.db_user }} 172.16.0.0/12 md5
host postgres {{ odoo_prod.db_user }} 172.16.0.0/12 md5
host postgres {{ odoo_prod.db_user }} 172.16.0.0/12 md5
host {{ odoo_prod.db }} {{ odoo_db_rouser }} all md5
host {{ odoo_prod.db }} {{ odoo_db_rouser }} all md5
when
:
odoo_remote_db_access and odoo_prod is defined
when
:
odoo_remote_db_access and odoo_prod is defined and not docker_userns_remap
tags
:
odoo_prod
-
name
:
PROD Disable access all rights (with userns_remap)
lineinfile
:
name
:
/var/lib/docker/{{ dockremap_subuid }}.{{ dockremap_subgid }}/volumes/odoo_db/_data/pg_hba.conf
regexp
:
"
^host
all
all
all
md5"
line
:
"
#host
all
all
all
md5"
when
:
odoo_remote_db_access and odoo_prod is defined and docker_userns_remap
tags
:
odoo_prod
tags
:
odoo_prod
-
name
:
PROD Disable access all rights
-
name
:
PROD Disable access all rights
(no userns_remap)
lineinfile
:
lineinfile
:
name
:
/var/lib/docker/volumes/odoo_db/_data/pg_hba.conf
name
:
/var/lib/docker/volumes/odoo_db/_data/pg_hba.conf
regexp
:
"
^host
all
all
all
md5"
regexp
:
"
^host
all
all
all
md5"
line
:
"
#host
all
all
all
md5"
line
:
"
#host
all
all
all
md5"
when
:
odoo_remote_db_access and odoo_prod is defined
when
:
odoo_remote_db_access and odoo_prod is defined
and not docker_userns_remap
tags
:
odoo_prod
tags
:
odoo_prod
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