Compare commits

..

14 Commits

15 changed files with 137 additions and 11 deletions

BIN
doc/pics/e4-dmz-tl.dia Normal file

Binary file not shown.

BIN
doc/pics/e4-dmz-tl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

39
goss/s-agence.yaml Normal file
View File

@ -0,0 +1,39 @@
command:
ip r:
exit-status: 0
stdout:
- default via 172.16.128.254 dev enp0s8
- 172.16.128.0/24
- 192.168.99.0/24
stderr: []
timeout: 10000
ping -c 2 172.16.0.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 172.16.128.254:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.1.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.1.2:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.200.254:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000

View File

@ -13,6 +13,7 @@
- goss - goss
- dhcp-ag - dhcp-ag
- dns-agence - dns-agence
- ssh-root-access
- snmp-agent - snmp-agent
- vpn-stg-l - vpn-stg-l
# - x509-l # - x509-l

View File

@ -0,0 +1,47 @@
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => 'ocvc4q2htemf',
'passwordsalt' => 'stdJZMx4C5hz85Kqt8XdZIzx8kVOHI',
'secret' => 'II1BBgzlx70WUYCapAt/m/Bt1ZEk/n11n0DVq3zynyU8F/bU',
'trusted_domains' =>
array (
0 => '172.16.0.7:5678',
1 => '172.16.0.7:8080',
2 => 's-mess',
3 => 's-mess.gsb.lan',
4 => 'localhost:8080',
),
'trusted_proxies' => ['172.16.0.7'],
'overwriteprotocol' => 'http',
'overwritehost' => '172.16.0.7:8080',
'proxy' => '172.16.0.7:8080',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '20.0.6.1',
'overwrite.cli.url' => 'http://172.16.0.7:5678',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'root',
'installed' => true,
);

View File

@ -0,0 +1,2 @@
depl_url: "http://s-adm.gsb.adm/gsbstore"
depl_fog: "fogproject-1.5.9.tar.gz"

View File

@ -6,10 +6,10 @@
- name: recuperation du fichier d'installation de fog - name: recuperation du fichier d'installation de fog
get_url: get_url:
url: http://depl/gsbstore/fogproject-1.5.7.tar.gz url: "{{ depl_url }}/{{ depl_fog }}"
dest: /root/fog dest: /root/fog
- name: decompression du fichier d'installation de fog - name: decompression du fichier d'installation de fog
unarchive: unarchive:
src: /root/fog/fogproject-1.5.7.tar.gz src: "/root/fog/{{ depl_fog }}"
dest: /root/fog dest: /root/fog

View File

@ -15,13 +15,13 @@ define hostgroup {
define hostgroup { define hostgroup {
hostgroup_name debian-servers hostgroup_name debian-servers
alias Serveurs distant alias Serveurs distant
members s-infra, s-proxy, r-int, r-ext, s-adm, s-itil members s-infra, s-proxy, r-int, r-ext, s-adm, s-itil, s-mess
} }
define hostgroup {  define hostgroup { 
hostgroup_name ssh-servers hostgroup_name ssh-servers
alias acces SSH alias acces SSH
members s-adm, s-infra, s-proxy, r-int, r-ext, localhost, gwsio2, s-itil members s-adm, s-infra, s-proxy, r-int, r-ext, localhost, gwsio2, s-itil, s-mess, s-lb
} }
define hostgroup {  define hostgroup { 
@ -39,7 +39,7 @@ define hostgroup { 
define hostgroup { define hostgroup {
hostgroup_name http-servers hostgroup_name http-servers
alias serveurs-web alias serveurs-web
members localhost, s-itil members localhost, s-itil, s-adm
} }
#define hostgroup { #define hostgroup {
@ -69,6 +69,7 @@ define hostgroup{
define hostgroup{ define hostgroup{
hostgroup_name uptimegrp hostgroup_name uptimegrp
alias uptimegrp alias uptimegrp
members s-infra, s-proxy, r-int, r-ext, s-adm, s-itil members s-infra, s-proxy, r-int, r-ext, s-adm, s-itil, s-mess, s-lb
} }

View File

@ -0,0 +1,14 @@
# A simple configuration file for monitoring the local host
# This can serve as an example for configuring other servers;
# Custom services specific to this host are added here, but services
# defined in nagios2-common_services.cfg may also apply.
#
define host{
use generic-host ; Name of host template$
host_name s-lb
alias debian-servers
address 192.168.100.10
parents r-int
}

View File

@ -0,0 +1,14 @@
# A simple configuration file for monitoring the local host
# This can serve as an example for configuring other servers;
# Custom services specific to this host are added here, but services
# defined in nagios2-common_services.cfg may also apply.
#
define host{
use generic-host ; Name of host template$
host_name s-mess
alias nextcloud
address 172.16.0.7
parents r-int
}

View File

@ -44,7 +44,7 @@ backend fermeweb
#option httpchk HEAD / HTTP/1.0 #option httpchk HEAD / HTTP/1.0
server s-lb-web1 192.168.101.1:80 check server s-lb-web1 192.168.101.1:80 check
server s-lb-web2 192.168.101.2:80 check server s-lb-web2 192.168.101.2:80 check
# server s-lb-web3 192.168.101.2:80 check # server s-lb-web3 192.168.101.3:80 check
listen stats listen stats
bind *:8080 bind *:8080

View File

@ -0,0 +1,7 @@
- name: Activation acces ssh root pour vp-1 (certificat)
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^PermitRootLogin"
line: "PermitRootLogin yes"
state: present

View File

@ -7,7 +7,7 @@ conn tunnel #
left=192.168.0.52 left=192.168.0.52
leftsubnet=172.16.128.0/24 leftsubnet=172.16.128.0/24
right=192.168.0.51 right=192.168.0.51
rightsubnet=192.168.0.0/16, 172.16.0.0/24 rightsubnet=192.168.1.0/24, 192.168.200.0/24, 172.16.0.0/24
ike=aes256-sha2_256-modp1024! ike=aes256-sha2_256-modp1024!
esp=aes256-sha2_256! esp=aes256-sha2_256!
keyingtries=0 keyingtries=0

View File

@ -5,7 +5,7 @@ config setup
conn %default conn %default
conn tunnel # conn tunnel #
left=192.168.0.51 left=192.168.0.51
leftsubnet=192.168.0.0/16, 172.16.0.0/24 leftsubnet=192.168.1.0/24, 192.168.200.0/24, 172.16.0.0/24
right=192.168.0.52 right=192.168.0.52
rightsubnet=172.16.128.0/24 rightsubnet=172.16.128.0/24
ike=aes256-sha2_256-modp1024! ike=aes256-sha2_256-modp1024!

View File

@ -7,3 +7,4 @@
- ssh-cli - ssh-cli
- syslog-cli - syslog-cli
- post - post
- goss