Skip to content

Commit

Permalink
Migration server wireguard pour backend osmose sur osmose.vm
Browse files Browse the repository at this point in the history
  • Loading branch information
jocelynj committed Aug 24, 2024
1 parent a165f4d commit 8c7e8c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions hosts
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ renderd-cyclosm.vm.openstreetmap.fr renderd_cyclosm=true
bzh202.vm.openstreetmap.fr renderd_bzh=true

[wireguard]
proxy.ovh.vm.openstreetmap.fr wireguard_config=server
osmose-aquilenet.openstreetmap.fr
osmose-hivane1.openstreetmap.fr
osmose-hivane2.openstreetmap.fr
osmose.vm.openstreetmap.fr wireguard_config=server wireguard_address=10.230.0.10
osmose-aquilenet.openstreetmap.fr wireguard_server=osmose.vm.openstreetmap.fr wireguard_address=10.230.0.2
osmose-hivane1.openstreetmap.fr wireguard_server=osmose.vm.openstreetmap.fr wireguard_address=10.230.0.3
osmose-hivane2.openstreetmap.fr wireguard_server=osmose.vm.openstreetmap.fr wireguard_address=10.230.0.4

[wordpress]
osm142.openstreetmap.fr
Expand Down
4 changes: 2 additions & 2 deletions roles/wireguard/templates/wireguard-client-wg0.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PrivateKey = {{ lookup('file', 'credentials/wireguard/' + inventory_hostname + '
Address = {{ lookup('file', 'credentials/wireguard/' + inventory_hostname + '.address') }}/24

[Peer]
PublicKey = {{ lookup('file', 'credentials/wireguard/proxy.ovh.vm.openstreetmap.fr.public.key') }}
Endpoint = proxy.ovh.vm.openstreetmap.fr:1500
PublicKey = {{ lookup('file', 'credentials/wireguard/' + wireguard_server + '.public.key') }}
Endpoint = {{ wireguard_server }}:1500
{% for host in wireguard_hosts %}
# {{ host }}
{% if host | ansible.utils.ipv4 %}
Expand Down

0 comments on commit 8c7e8c0

Please sign in to comment.