aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-10-11 19:51:04 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2023-10-11 19:51:04 +0200
commitc74f7722d3cfb5faffe2c808484eee78b05f9a44 (patch)
tree33c890070da094281e1bef21fd6427fdea9d82ad
parent337fdaf446eb38417f0808f84e7eba891e592b05 (diff)
downloadinfra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.tar.gz
infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.tar.bz2
infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.tar.xz
infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.zip
bgp
-rw-r--r--ansible/bgp/bgp.yml2
-rw-r--r--ansible/bgp/bird-install.yml11
-rw-r--r--ansible/bgp/host_vars/knot/bgp.yml1
-rw-r--r--ansible/bgp/host_vars/lhn2ix/bgp.yml6
4 files changed, 19 insertions, 1 deletions
diff --git a/ansible/bgp/bgp.yml b/ansible/bgp/bgp.yml
index a3e6ce3..cf80b37 100644
--- a/ansible/bgp/bgp.yml
+++ b/ansible/bgp/bgp.yml
@@ -41,7 +41,7 @@
register: template
- systemd:
- state: restarted
+ state: reloaded
service: bird
when: template.changed
become: yes
diff --git a/ansible/bgp/bird-install.yml b/ansible/bgp/bird-install.yml
new file mode 100644
index 0000000..c52ce50
--- /dev/null
+++ b/ansible/bgp/bird-install.yml
@@ -0,0 +1,11 @@
+- hosts:
+ - bgp
+ tasks:
+ - name: Install bird2
+ become: yes
+ vars:
+ items:
+ - bird2
+ apt:
+ install_recommends: no
+ name: "{{ items }}"
diff --git a/ansible/bgp/host_vars/knot/bgp.yml b/ansible/bgp/host_vars/knot/bgp.yml
index 8978cea..dc8d8e7 100644
--- a/ansible/bgp/host_vars/knot/bgp.yml
+++ b/ansible/bgp/host_vars/knot/bgp.yml
@@ -4,3 +4,4 @@ bgp_peers:
- akili
- astyanax
- hash
+ - lhn2ix
diff --git a/ansible/bgp/host_vars/lhn2ix/bgp.yml b/ansible/bgp/host_vars/lhn2ix/bgp.yml
new file mode 100644
index 0000000..33e2131
--- /dev/null
+++ b/ansible/bgp/host_vars/lhn2ix/bgp.yml
@@ -0,0 +1,6 @@
+bgp_as: 4230483904
+bgp_ip: "{{ wireguard_wg0.hosts[inventory_hostname].ipv6 }}"
+bgp_mynet: fdf3:aad9:a885:9d81::/64
+#bgp_mynet_if: enp2s0
+bgp_peers:
+ - knot