Skip to content

Commit

Permalink
Only require specific clatd address to be defined
Browse files Browse the repository at this point in the history
YAGNAE
  • Loading branch information
RealOrangeOne committed Sep 5, 2024
1 parent a544b9d commit 869a2d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions host_vars/competitorsvcs.studentrobotics.org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ certbot_certs:
- "{{ canonical_hostname }}"

# Mythic have additionally routed this IP to the VM
clatd_conf: |
clat-v6-addr=2a00:1098:80:bc::2
clat_v6_addr: 2a00:1098:80:bc::2
2 changes: 1 addition & 1 deletion roles/clatd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A CLAT / SIIT-DC Edge Relay implementation for Linux.

Used to provide IPv4 outbound connectivity to an IPv6-only VM.

It's likely `clat-v6-addr` will need to be configured to assign the correct IP to the created `clat` interface. This may require an additional IPv6 address be routed to the VM. This is configured with the `clatd_conf` variable.
It's likely `clat-v6-addr` will need to be configured to assign the correct IP to the created `clat` interface. This may require an additional IPv6 address be routed to the VM.
1 change: 0 additions & 1 deletion roles/clatd/defaults/main.yml

This file was deleted.

4 changes: 2 additions & 2 deletions roles/clatd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
when: install_clatd.changed # noqa: no-handler - Use a handler to ensure execution order

- name: Install configuration
copy:
content: "{{ clatd_conf }}"
template:
src: clatd.conf
dest: /etc/clatd.conf
mode: "0644"
notify: Restart clatd
Expand Down
3 changes: 3 additions & 0 deletions roles/clatd/templates/clatd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% if clat_v6_addr is defined %}
clat-v6-addr={{ clat_v6_addr }}
{% endif %}

0 comments on commit 869a2d0

Please sign in to comment.