From c32cf92cf5085ec867125117ccf2ffa8f4fcbf20 Mon Sep 17 00:00:00 2001 From: Elam Monnot Date: Wed, 25 Jan 2023 15:17:18 +0100 Subject: [PATCH 1/3] correction role lb-front --- roles/lb-front/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lb-front/tasks/main.yml b/roles/lb-front/tasks/main.yml index a419b51..34a3332 100644 --- a/roles/lb-front/tasks/main.yml +++ b/roles/lb-front/tasks/main.yml @@ -21,5 +21,5 @@ - name: redemarre haproxy service: name: haproxy - state: restarted +# state: restarted enabled: yes From 62f9591c627bc0fbe82bb0a50acc336a1e1b3072 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Jan 2023 15:24:53 +0100 Subject: [PATCH 2/3] goss s-backup --- goss/s-backup.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ s-backup.yml | 1 + 2 files changed, 42 insertions(+) create mode 100644 goss/s-backup.yaml diff --git a/goss/s-backup.yaml b/goss/s-backup.yaml new file mode 100644 index 0000000..7c71428 --- /dev/null +++ b/goss/s-backup.yaml @@ -0,0 +1,41 @@ +package: + bind9: + installed: true + cifs-utils: + installed: true + rsync: + installed: true + smbclient: + installed: true +service: + bind9: + enabled: true + running: true + rsync: + enabled: true + running: false +command: + ping -c4 ns.gsb.lan: + exit-status: 0 + stdout: + - 0% packet loss + stderr: [] + timeout: 10000 +#check si partage windows accesible + smbclient -L //s-win --user=uBackup%Azerty1+ | grep 'public': + exit-status: 0 + stdout: + - public + stderr: [] + timeout: 10000 +interface: + enp0s3: + exists: true + addrs: + - 192.168.99.4/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 172.16.0.4/24 + mtu: 1500 diff --git a/s-backup.yml b/s-backup.yml index 983e4d3..b89ab9d 100644 --- a/s-backup.yml +++ b/s-backup.yml @@ -4,6 +4,7 @@ roles: - base + - goss # - proxy3 - snmp-agent # - ssh-cli From 36336384e6dab19bf11c81138ac8f11fb3faa99c Mon Sep 17 00:00:00 2001 From: Elam Monnot Date: Wed, 25 Jan 2023 15:31:26 +0100 Subject: [PATCH 3/3] haproxy FINAL correc --- roles/lb-front/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lb-front/tasks/main.yml b/roles/lb-front/tasks/main.yml index 34a3332..ce787ca 100644 --- a/roles/lb-front/tasks/main.yml +++ b/roles/lb-front/tasks/main.yml @@ -8,7 +8,7 @@ path: /etc/haproxy/haproxy.cfg block: | frontend proxypublic - bind 192.168.56.2:80 + bind 192.168.100.10:80 default_backend fermeweb backend fermeweb