Refactor the things that are common between bird and frr build types -- no-op for the build/ output
This commit is contained in:
1
overlays/_common/common/etc/hostname.j2
Normal file
1
overlays/_common/common/etc/hostname.j2
Normal file
@ -0,0 +1 @@
|
||||
{{ node.hostname }}
|
7
overlays/_common/common/etc/hosts.j2
Normal file
7
overlays/_common/common/etc/hosts.j2
Normal file
@ -0,0 +1,7 @@
|
||||
127.0.0.1 localhost
|
||||
127.0.1.1 {{node.hostname}}.lab.ipng.ch {{node.hostname}}
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
28
overlays/_common/common/etc/motd
Normal file
28
overlays/_common/common/etc/motd
Normal file
@ -0,0 +1,28 @@
|
||||
-*%%=
|
||||
=%@@@@@:
|
||||
:%@@@@@@@*
|
||||
:*@@@@@@@@@@ .=+-
|
||||
:=*#%@@@@@@@@@@@@@+ .+@@@@#
|
||||
.+@@@@@@@@@@@@@@@@@@@@##@@@@@@@=
|
||||
+@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@*
|
||||
=@@@@@@@@@#=: *@@@@%#*+*@@@@@@@#
|
||||
-%@@@@@@@*- ::. :*@@@@@@@@@
|
||||
=%@@@@@@@+ *@@@@@@@@@@@*
|
||||
:*@@@@@@@@+ %@@@@@@@@@@@@@@+.
|
||||
-*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*.
|
||||
.-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+
|
||||
:=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@#
|
||||
:+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@#
|
||||
.=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@#
|
||||
.-=-: ..:-=+*#%@@@@@@@@@@@@@@-
|
||||
..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@*
|
||||
.:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@%
|
||||
..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+-
|
||||
.:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-.
|
||||
.:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%=
|
||||
https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-.
|
||||
IPng Networks GmbH :=*%@@@@@@@@@@@@@%*-
|
||||
:=*%@@@@@@@#+-.
|
||||
Restricted access. Authorized users only. :=+-.
|
||||
All connections are monitored and recorded. Contact <noc@ipng.ch> for details.
|
||||
|
@ -0,0 +1,7 @@
|
||||
domain lab.ipng.ch
|
||||
search{% for domain in lab.nameserver.search %} {{domain}}{%endfor %}
|
||||
|
||||
{% for resolver in lab.nameserver.addresses %}
|
||||
nameserver {{resolver}}
|
||||
{%endfor%}
|
||||
|
16
overlays/_common/common/etc/netplan/01-netcfg.yaml.j2
Normal file
16
overlays/_common/common/etc/netplan/01-netcfg.yaml.j2
Normal file
@ -0,0 +1,16 @@
|
||||
network:
|
||||
version: 2
|
||||
renderer: networkd
|
||||
ethernets:
|
||||
enp1s0:
|
||||
optional: true
|
||||
accept-ra: false
|
||||
dhcp4: false
|
||||
mtu: 9000
|
||||
addresses: [ {{node.mgmt.ipv4}}, {{node.mgmt.ipv6}} ]
|
||||
routes:
|
||||
- to: 0.0.0.0/0
|
||||
via: {{lab.mgmt.gw4}}
|
||||
- to: ::/0
|
||||
via: {{lab.mgmt.gw6}}
|
||||
|
6
overlays/_common/common/etc/resolv.conf.j2
Normal file
6
overlays/_common/common/etc/resolv.conf.j2
Normal file
@ -0,0 +1,6 @@
|
||||
domain lab.ipng.ch
|
||||
search{% for domain in lab.nameserver.search %} {{domain}}{%endfor %}
|
||||
|
||||
nameserver 194.1.163.3
|
||||
nameserver 194.1.163.4
|
||||
|
11
overlays/_common/common/home/ipng/.ssh/authorized_keys
Normal file
11
overlays/_common/common/home/ipng/.ssh/authorized_keys
Normal file
@ -0,0 +1,11 @@
|
||||
# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl
|
||||
|
||||
# pim's M1 macbookpro SeKEY
|
||||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k=
|
||||
|
||||
{% if lab.ssh is defined and 'ipng' in lab.ssh %}
|
||||
{% for key in lab.ssh.ipng | default([]) %}
|
||||
{{ key }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
11
overlays/_common/common/root/.ssh/authorized_keys
Normal file
11
overlays/_common/common/root/.ssh/authorized_keys
Normal file
@ -0,0 +1,11 @@
|
||||
# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl
|
||||
|
||||
# pim's M1 macbookpro SeKEY
|
||||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k=
|
||||
|
||||
{% if lab.ssh is defined and 'root' in lab.ssh %}
|
||||
{% for key in lab.ssh.root | default ([]) %}
|
||||
{{ key }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
7
overlays/_common/common/root/lab-build/perms
Normal file
7
overlays/_common/common/root/lab-build/perms
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo " * Fixing permissions"
|
||||
chown -R root. /root/
|
||||
chown -R ipng. /home/ipng/
|
||||
|
||||
[ -r /etc/rc.local ] && chmod 755 /etc/rc.local
|
Reference in New Issue
Block a user