Skip to content

Commit

Permalink
feat: docker login & remove decomissionned servers (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
moroine authored Nov 13, 2024
1 parent 1a76088 commit 04c12d7
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 189 deletions.
5 changes: 5 additions & 0 deletions .infra/ansible/setup/tasks/configure-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
dns: ["172.17.0.1"]
when: env_type == 'preview'

- name: Docker login
shell: "echo $PASS | docker login -u '{{ vault.DOCKER_LOGIN.user }}' --password-stdin"
environment:
PASS: "{{ vault.DOCKER_LOGIN.token }}"

- include_role:
name: patrickjahns.promtail
apply:
Expand Down
321 changes: 163 additions & 158 deletions .infra/vault/vault.yml

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions products/api/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ dns_name=api-recette.apprentissage.beta.gouv.fr
host_name=api-recette
env_type=recette

[preview]
51.77.159.217
[preview:vars]
dns_name=api-preview.apprentissage.beta.gouv.fr
host_name=api-preview
env_type=preview
; [preview]
; 51.77.159.217
; [preview:vars]
; dns_name=api-preview.apprentissage.beta.gouv.fr
; host_name=api-preview
; env_type=preview
12 changes: 6 additions & 6 deletions products/bal/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ dns_name=bal-recette.apprentissage.beta.gouv.fr
host_name=bal-recette
env_type=recette

[preview]
51.68.121.207
[preview:vars]
dns_name=bal-preview.apprentissage.beta.gouv.fr
host_name=bal-preview
env_type=preview
; [preview]
; 51.68.121.207
; [preview:vars]
; dns_name=bal-preview.apprentissage.beta.gouv.fr
; host_name=bal-preview
; env_type=preview
12 changes: 6 additions & 6 deletions products/contrat/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ dns_name=contrat-recette.apprentissage.beta.gouv.fr
host_name=contrat-recette
env_type=recette

[preview]
51.68.44.237
[preview:vars]
dns_name=contrat-preview.apprentissage.beta.gouv.fr
host_name=contrat-preview
env_type=preview
; [preview]
; 51.68.44.237
; [preview:vars]
; dns_name=contrat-preview.apprentissage.beta.gouv.fr
; host_name=contrat-preview
; env_type=preview
7 changes: 0 additions & 7 deletions products/mongodb/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ dns_name=mongodb-bal-3.apprentissage.beta.gouv.fr
host_name=mongodb-bal-3.apprentissage.beta.gouv.fr
env_type=bal

[contrat_1]
57.128.16.123
[contrat_1:vars]
dns_name=mongodb-contrat-1.apprentissage.beta.gouv.fr
host_name=mongodb-contrat-1.apprentissage.beta.gouv.fr
env_type=contrat

[api_1]
193.70.75.83
[api_1:vars]
Expand Down
12 changes: 6 additions & 6 deletions products/tdb/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ dns_name=cfas-recette.apprentissage.beta.gouv.fr
host_name=tableau-de-bord-recette
env_type=recette

[preview]
51.75.253.210
[preview:vars]
dns_name=tdb-preview.apprentissage.beta.gouv.fr
host_name=tableau-de-bord-preview
env_type=preview
; [preview]
; 51.75.253.210
; [preview:vars]
; dns_name=tdb-preview.apprentissage.beta.gouv.fr
; host_name=tableau-de-bord-preview
; env_type=preview

0 comments on commit 04c12d7

Please sign in to comment.