Skip to content

Commit

Permalink
backend upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienmaury committed Sep 13, 2024
1 parent 4cbabd6 commit c3b35fb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ROADMAP SEPTEMBRE:

ROADMAP 1.0 (wood-dragon):


* virer skopeo
* globaliser le parametrage de nom de host pour les groupes masters hs_vault_inventory_masters_group
* playbooks de back/restore à chaque étage.
Expand All @@ -33,3 +34,4 @@ ROADMAP 1.0 (wood-dragon):
Alpine au printemps ?
ajouter openwrt à la liste ?

Définir:
1 change: 1 addition & 0 deletions playbooks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
content: |-
hs_workspace: "{{ hs_workspace }}"
hs_parent_domain: "{{ hs_parent_domain }}"
hs_archi: "{{ hs_archi }}"
{%- raw %}
hs_public_domain: >-
{{ hs_workspace | regex_replace('_', '-') }}.{{ hs_parent_domain }}
Expand Down
2 changes: 1 addition & 1 deletion roles/vault/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

- name: "Update ca trust"
command: >-
{{ __hs_vault_update_trust_command }}
{{ __hs_update_trust_command }}
4 changes: 3 additions & 1 deletion roles/vault/templates/tf_backend_s3.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ terraform {
backend "s3" {
bucket = "{{ hs_vault_terraform_backend_config.bucket | default('') }}"
key = "{{ hs_vault_terraform_backend_config.key | default('') }}"
endpoint = "{{ hs_vault_terraform_backend_config.endpoint | default('') }}"
endpoints = {
s3 = "{{ hs_vault_terraform_backend_config.endpoint | default('') }}"
}
region = "{{ hs_vault_terraform_backend_config.region | default('') }}"

skip_credentials_validation = true
Expand Down
4 changes: 3 additions & 1 deletion roles/vault_pt/templates/tf_backend_s3.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ terraform {
backend "s3" {
bucket = "{{ hs_vault_terraform_backend_config.bucket | default('') }}"
key = "{{ hs_vault_terraform_backend_config.key | default('') }}"
endpoint = "{{ hs_vault_terraform_backend_config.endpoint | default('') }}"
endpoints = {
s3 = "{{ hs_vault_terraform_backend_config.endpoint | default('') }}"
}
region = "{{ hs_vault_terraform_backend_config.region | default('') }}"

skip_credentials_validation = true
Expand Down

0 comments on commit c3b35fb

Please sign in to comment.