-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75b1b16
commit c8f2a8d
Showing
72 changed files
with
940 additions
and
812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
routing_tables: | ||
icvpn: 23 | ||
mwu: 41 | ||
unreachable: 51 | ||
internet: 61 | ||
|
||
common_repos: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: reload network interfaces | ||
- name: restart networkd | ||
systemd: | ||
name: networking | ||
state: reloaded | ||
name: systemd-networkd | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
--- | ||
- name: create anycast interface | ||
- name: create anycast.netdev | ||
template: | ||
src: anycast.j2 | ||
dest: "/etc/network/interfaces.d/anycast" | ||
notify: reload network interfaces | ||
src: anycast.netdev.j2 | ||
dest: "/etc/systemd/network/anycast.netdev" | ||
notify: restart networkd | ||
|
||
- name: create anycast.network | ||
template: | ||
src: anycast.network.j2 | ||
dest: "/etc/systemd/network/anycast.netdev" | ||
notify: restart networkd |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# {{ ansible_managed }} | ||
# | ||
[NetDev] | ||
Name=anycast | ||
Kind=dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# {{ ansible_managed }} | ||
# | ||
[Match] | ||
Name=anycast | ||
|
||
[Network] | ||
Address={{ anycast_ipv4 | ipaddr('network/prefix') }} | ||
Address={{ anycast_ipv6 | ipaddr('network/prefix') }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: reload network interfaces | ||
- name: restart networkd | ||
systemd: | ||
name: networking | ||
state: reloaded | ||
name: systemd-networkd | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
--- | ||
- name: create ffrl interfaces | ||
- name: create ffrl-nat.netdev | ||
template: | ||
src: ffrl.j2 | ||
dest: "/etc/network/interfaces.d/{{ item.key }}" | ||
notify: reload network interfaces | ||
src: ffrl-gre.netdev.j2 | ||
dest: "/etc/systemd/network/{{ item.key }}.netdev" | ||
notify: restart networkd | ||
loop: "{{ ffrl_exit_server | dict2items }}" | ||
|
||
- name: create ffrl-nat dummy interface | ||
- name: create ffrl-nat.network | ||
template: | ||
src: ffrl_nat.j2 | ||
dest: "/etc/network/interfaces.d/ffrl-nat" | ||
notify: reload network interfaces | ||
src: ffrl-gre.network.j2 | ||
dest: "/etc/systemd/network/{{ item.key }}.network" | ||
notify: restart networkd | ||
loop: "{{ ffrl_exit_server | dict2items }}" | ||
|
||
- name: create ffrl-nat.netdev | ||
template: | ||
src: ffrl-nat.netdev.j2 | ||
dest: "/etc/systemd/network/ffrl-nat.netdev" | ||
notify: restart networkd | ||
|
||
- name: create ffrl-nat.network | ||
template: | ||
src: ffrl-nat.network.j2 | ||
dest: "/etc/systemd/network/ffrl-nat.network" | ||
notify: restart networkd | ||
|
||
- name: create ffrl-tunnel.conf | ||
template: | ||
src: ffrl-tunnel.conf.j2 | ||
dest: "/etc/systemd/network/{{ ansible_default_ipv4.interface }}.network.d/ffrl-tunnel.conf" | ||
notify: restart networkd | ||
|
||
- name: flush handlers | ||
meta: flush_handlers |
Oops, something went wrong.