diff --git a/goss/s-lb-bd.yaml b/goss/s-lb-bd.yaml index 3e9710f..43a99bb 100644 --- a/goss/s-lb-bd.yaml +++ b/goss/s-lb-bd.yaml @@ -1,21 +1,38 @@ -package: - mysql-server: - installed: true - versions: - - 5.5.54-0+deb8u1 -command: - egrep "#bind-address" /etc/mysql/my.cnf: - exit-status: 0 - stdout: - - "#bind-address\t\t= 127.0.0.1" - stderr: [] - timeout: 10000 +addr: + tcp://192.168.102.1:80: + reachable: true + timeout: 500 + tcp://192.168.102.2:80: + reachable: true + timeout: 500 +service: + mariadb: + enabled: true + running: true + mysql: + enabled: true + running: true +user: + mysql: + exists: true + uid: 104 + gid: 111 + groups: + - mysql + home: /nonexistent + shell: /bin/false +group: + mysql: + exists: true + gid: 111 interface: - enp0s3: - exists: true - addrs: - - 192.168.99.13/24 - enp0s8: - exists: true - addrs: - - 192.168.102.50/24 + enp0s3: + exists: true + addrs: + - 192.168.99.154/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 192.168.102.254/24 + mtu: 1500 diff --git a/goss/s-lb-web1.yaml b/goss/s-lb-web1.yaml index 368118f..c4a939a 100644 --- a/goss/s-lb-web1.yaml +++ b/goss/s-lb-web1.yaml @@ -1,63 +1,62 @@ package: - apache2: - installed: true - versions: - - 2.4.10-10+deb8u7 - php5: - installed: true - versions: - - 5.6.29+dfsg-0+deb8u1 + apache2: + installed: true + versions: + - 2.4.57-2 + nfs-common: + installed: true + versions: + - 1:2.6.2-4 port: - tcp:22: - listening: true - ip: - - 0.0.0.0 - tcp6:22: - listening: true - ip: - - '::' - tcp6:80: - listening: true - ip: - - '::' + tcp6:80: + listening: true + ip: + - '::' service: - apache2: - enabled: true - running: true - sshd: - enabled: true - running: true -user: - sshd: - exists: true - uid: 105 - gid: 65534 - groups: - - nogroup - home: /var/run/sshd - shell: /usr/sbin/nologin -command: - egrep 192.168.102.14:/export/www /etc/fstab: - exit-status: 0 - stdout: - - 192.168.102.14:/export/www /var/www/html nfs _netdev rw 0 0 - stderr: [] - timeout: 10000 + apache2: + enabled: true + running: true + nfs-common: + enabled: false + running: false process: - apache2: - running: true - sshd: - running: true + apache2: + running: true +mount: + /var/www/html: + exists: true + opts: + - rw + - relatime + vfs-opts: + - rw + - vers=4.2 + - rsize=131072 + - wsize=131072 + - namlen=255 + - hard + - proto=tcp + - timeo=600 + - retrans=2 + - sec=sys + - clientaddr=192.168.102.1 + - local_lock=none + - addr=192.168.102.253 + source: 192.168.102.253:/home/wordpress + filesystem: nfs4 interface: - enp0s3: - exists: true - addrs: - - 192.168.99.11/24 - enp0s8: - exists: true - addrs: - - 192.168.101.1/24 - enp0s9: - exists: true - addrs: - - 192.168.102.1/24 + enp0s3: + exists: true + addrs: + - 192.168.99.101/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 192.168.101.1/24 + mtu: 1500 + enp0s9: + exists: true + addrs: + - 192.168.102.1/24 + mtu: 1500 diff --git a/goss/s-lb-web2.yaml b/goss/s-lb-web2.yaml index 8df18aa..fdf9682 100644 --- a/goss/s-lb-web2.yaml +++ b/goss/s-lb-web2.yaml @@ -1,63 +1,62 @@ package: - apache2: - installed: true - versions: - - 2.4.10-10+deb8u7 - php5: - installed: true - versions: - - 5.6.29+dfsg-0+deb8u1 + apache2: + installed: true + versions: + - 2.4.57-2 + nfs-common: + installed: true + versions: + - 1:2.6.2-4 port: - tcp:22: - listening: true - ip: - - 0.0.0.0 - tcp6:22: - listening: true - ip: - - '::' - tcp6:80: - listening: true - ip: - - '::' + tcp6:80: + listening: true + ip: + - '::' service: - apache2: - enabled: true - running: true - sshd: - enabled: true - running: true -user: - sshd: - exists: true - uid: 105 - gid: 65534 - groups: - - nogroup - home: /var/run/sshd - shell: /usr/sbin/nologin -command: - egrep 192.168.102.14:/export/www /etc/fstab: - exit-status: 0 - stdout: - - 192.168.102.14:/export/www /var/www/html nfs _netdev rw 0 0 - stderr: [] - timeout: 10000 + apache2: + enabled: true + running: true + nfs-common: + enabled: false + running: false process: - apache2: - running: true - sshd: - running: true + apache2: + running: true +mount: + /var/www/html: + exists: true + opts: + - rw + - relatime + vfs-opts: + - rw + - vers=4.2 + - rsize=131072 + - wsize=131072 + - namlen=255 + - hard + - proto=tcp + - timeo=600 + - retrans=2 + - sec=sys + - clientaddr=192.168.102.2 + - local_lock=none + - addr=192.168.102.253 + source: 192.168.102.253:/home/wordpress + filesystem: nfs4 interface: - enp0s3: - exists: true - addrs: - - 192.168.99.12/24 - enp0s8: - exists: true - addrs: - - 192.168.101.2/24 - enp0s9: - exists: true - addrs: - - 192.168.102.2/24 + enp0s3: + exists: true + addrs: + - 192.168.99.102/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 192.168.101.2/24 + mtu: 1500 + enp0s9: + exists: true + addrs: + - 192.168.102.2/24 + mtu: 1500 diff --git a/goss/s-lb.yaml b/goss/s-lb.yaml index ad0a150..80d76d7 100644 --- a/goss/s-lb.yaml +++ b/goss/s-lb.yaml @@ -1,28 +1,55 @@ +package: + haproxy: + installed: true + versions: + - 2.6.12-1+deb12u1 +addr: + tcp://192.168.101.1:80: + reachable: true + timeout: 500 + tcp://192.168.101.2:80: + reachable: true + timeout: 500 port: - tcp:80: - listening: true - ip: - - 192.168.100.11 + tcp:80: + listening: true + ip: + - 192.168.100.10 service: - haproxy: - enabled: true - running: true - sshd: - enabled: true - running: true + haproxy: + enabled: true + running: true +user: + haproxy: + exists: true + uid: 104 + gid: 111 + groups: + - haproxy + home: /var/lib/haproxy + shell: /usr/sbin/nologin +group: + haproxy: + exists: true + gid: 111 +process: + haproxy: + running: true interface: - enp0s3: - exists: true - addrs: - - 192.168.99.100/24 - mtu: 1500 - enp0s8: - exists: true - addrs: - - 192.168.100.11/24 - mtu: 1500 - enp0s9: - exists: true - addrs: - - 192.168.101.254/24 - mtu: 1500 + enp0s3: + exists: true + addrs: + - 192.168.99.100/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 192.168.100.10/24 + mtu: 1500 +http: + http://192.168.100.10/: + status: 200 + allow-insecure: false + no-follow-redirects: false + timeout: 5000 + body: [] diff --git a/goss/s-nas.yaml b/goss/s-nas.yaml new file mode 100644 index 0000000..069a312 --- /dev/null +++ b/goss/s-nas.yaml @@ -0,0 +1,55 @@ +file: + /home/wordpress: + exists: true + mode: "0755" + owner: www-data + group: www-data + filetype: directory + contents: [] +package: + file: + installed: true + versions: + - 1:5.44-3 + nfs-common: + installed: true + versions: + - 1:2.6.2-4 + nfs-kernel-server: + installed: true + versions: + - 1:2.6.2-4 +addr: + tcp://192.168.102.1:80: + reachable: true + timeout: 500 + tcp://192.168.102.2:80: + reachable: true + timeout: 500 +service: + nfs-common: + enabled: false + running: false + nfs-kernel-server: + enabled: true + running: true + nfs-mountd: + enabled: true + running: true + nfs-server: + enabled: true + running: true + nfs-utils: + enabled: true + running: false +interface: + enp0s3: + exists: true + addrs: + - 192.168.99.153/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 192.168.102.253/24 + mtu: 1500 diff --git a/s-lb-web1.yml b/s-lb-web1.yml index 8670d17..a76152c 100644 --- a/s-lb-web1.yml +++ b/s-lb-web1.yml @@ -4,6 +4,7 @@ roles: - base + - goss - post-lb - lb-web # - zabbix-cli diff --git a/s-lb-web2.yml b/s-lb-web2.yml index 8670d17..a76152c 100644 --- a/s-lb-web2.yml +++ b/s-lb-web2.yml @@ -4,6 +4,7 @@ roles: - base + - goss - post-lb - lb-web # - zabbix-cli diff --git a/s-nas.yml b/s-nas.yml index 723dd5d..203ea3d 100644 --- a/s-nas.yml +++ b/s-nas.yml @@ -9,6 +9,7 @@ roles: - base + - goss #- zabbix-cli - lb-nfs-server - ssh-cli