rename nas to oberon

This commit is contained in:
vincent 2024-02-20 17:28:12 +01:00
parent b3488061da
commit 7191cb7216
5 changed files with 31 additions and 18 deletions

View File

@ -24,7 +24,7 @@ systemd_mounts:
automount: "{{ env_automount }}" automount: "{{ env_automount }}"
enabled: true enabled: true
diskstation_media: diskstation_media:
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/media" share: "{{ nas_ip }}:{{ env_media_nfs_path }}/media"
mount: /mnt/diskstation/media mount: /mnt/diskstation/media
type: nfs type: nfs
options: options:

View File

@ -1,16 +0,0 @@
---
wireguard_address: "10.0.1.8/24"
perrsistent_keepalive: "30"
wireguard_endpoint: ""
wireguard_byhost_allowed_ips:
merlin: 10.0.0.8,192.168.1.10
corwin: 10.0.0.8,192.168.1.10
wireguard_postup:
- iptables -A FORWARD -i wg0 -j ACCEPT
- iptables -A FORWARD -o wg0 -j ACCEPT
- iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
wireguard_postdown:
- iptables -D FORWARD -i wg0 -j ACCEPT
- iptables -D FORWARD -o wg0 -j ACCEPT
- iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

19
ansible/host_vars/oberon Normal file
View File

@ -0,0 +1,19 @@
---
wireguard_address: "10.0.0.8/24"
default_interface: "enp2s0"
consul_iface: "{{ default_interface}}"
vault_iface: "{{ default_interface}}"
perrsistent_keepalive: "30"
wireguard_endpoint: ""
wireguard_byhost_allowed_ips:
merlin: 10.0.0.8,192.168.1.43
corwin: 10.0.0.8,192.168.1.43
wireguard_postup:
- iptables -A FORWARD -i wg0 -j ACCEPT
- iptables -A FORWARD -o wg0 -j ACCEPT
- iptables -t nat -A POSTROUTING -o {{ default_interface }} -j MASQUERADE
wireguard_postdown:
- iptables -D FORWARD -i wg0 -j ACCEPT
- iptables -D FORWARD -o wg0 -j ACCEPT
- iptables -t nat -D POSTROUTING -o {{ default_interface }} -j MASQUERADE

View File

@ -1,8 +1,10 @@
[DNS] [DNS]
gerard gerard
oberon
[dhcp] [dhcp]
gerard gerard
oberon
[database_active] [database_active]
bleys bleys
@ -22,7 +24,7 @@ bleys
production production
[NAS] [NAS]
#nas oberon
[cluster] [cluster]
oscar oscar

View File

@ -106,6 +106,14 @@ resource "powerdns_record" "gerard" {
records = ["192.168.1.41"] records = ["192.168.1.41"]
} }
resource "powerdns_record" "oberon" {
zone= powerdns_zone.landucampseu.name
type= "A"
name= "oberon.lan.${powerdns_zone.ducampseu.name}"
ttl= 1700
records = ["192.168.1.43"]
}
resource "powerdns_record" "diskstation" { resource "powerdns_record" "diskstation" {
zone= powerdns_zone.landucampseu.name zone= powerdns_zone.landucampseu.name
type= "A" type= "A"