From 69aa1ac73942f86152d09a0f86bab07d1217009d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Jan 2023 11:29:45 +0100 Subject: [PATCH] update test goss --- goss/r-vp1.yaml | 88 +++++++++++++++++++------------------------------ 1 file changed, 34 insertions(+), 54 deletions(-) diff --git a/goss/r-vp1.yaml b/goss/r-vp1.yaml index f96b47d..6bdfc7a 100644 --- a/goss/r-vp1.yaml +++ b/goss/r-vp1.yaml @@ -1,76 +1,56 @@ +file: + /etc/wireguard/wg0.conf: + exists: true + mode: "0644" + owner: root + group: root + filetype: file + contains: + - AllowedIPs = 10.0.0.2/32, 172.16.128.0/24 package: -# ferm: -# installed: true - wireguard: + wireguard: installed: true - wireguard-tools: + versions: + - 1.0.20210223-1 + wireguard-tools: installed: true -port: - udp:68: - listening: true + versions: + - 1.0.20210223-1 service: -# dnsmasq: -# enabled: true -# running: true - wireguard: - enabled: true - running: true - ssh: + wg-quick@wg0: enabled: true running: true command: - sysctl net.ipv4.ip_forward: + host 192.168.99.99: exit-status: 0 stdout: - - net.ipv4.ip_forward = 1 + - 99.99.168.192.in-addr.arpa domain name pointer s-adm.gsb.adm. stderr: [] timeout: 10000 -command: - ping -c 4 192.168.0.52: + ping -c4 10.0.0.2: exit-status: 0 stdout: - - 4 received = 1 + - 0% packet loss stderr: [] timeout: 10000 -command: - ping -c 4 192.168.1.1: - exit-status: 0 - stdout: - - 4 received = 1 - stderr: [] - timeout: 10000 -command: - ping -c 4 192.168.200.254: - exit-status: 0 - stdout: - - 4 received = 1 - stderr: [] - timeout: 10000 -command: - ping -c 4 172.16.0.1: - exit-status: 0 - stdout: - - 4 received = 1 - stderr: [] - timeout: 10000 -command: - ping -c 4 10.0.0.2: - exit-status: 0 - stdout: - - 4 received = 1 - stderr: [] - timeout: 10000 -#process: -# dnsmasq: -# running: true -# squid: -# running: true interface: + enp0s3: + exists: true + addrs: + - 192.168.99.112/24 + mtu: 1500 enp0s8: exists: true addrs: - - 192.168.0.51/24 + - 192.168.1.2/24 + mtu: 1500 enp0s9: exists: true addrs: - - 192.168.1.2/24 + - 192.168.0.51/24 + mtu: 1500 + wg0: + exists: true + addrs: + - 10.0.0.1/32 + mtu: 1420