renommage vers hoster-a et hoster-b
This commit is contained in:
1 parent
006468a46e
commit
dcaa2e3141
24 files changed
+49
-45
No files matched your search
@@ -1,8 +1,8 @@
|
|||||||
version: 1
|
version: 1
|
||||||
|
|
||||||
header:
|
header:
|
||||||
name: Kaz AS
|
name: Hoster-A AS
|
||||||
comment: AS of the Kaz CHATONS
|
comment: AS of the first hoster of Kaz CHATONS
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
router:
|
router:
|
||||||
@@ -14,10 +14,10 @@ hosts:
|
|||||||
ipv4: 100.64.0.10/24
|
ipv4: 100.64.0.10/24
|
||||||
ipv6: 2001:db8:b000::10/48
|
ipv6: 2001:db8:b000::10/48
|
||||||
eth1:
|
eth1:
|
||||||
bridge: kaz-lan1
|
bridge: ha-lan1
|
||||||
ipv4: 100.80.0.1/24
|
ipv4: 100.80.0.1/24
|
||||||
eth2:
|
eth2:
|
||||||
bridge: kaz-lan2
|
bridge: ha-lan2
|
||||||
ipv4: 100.80.1.1/24
|
ipv4: 100.80.1.1/24
|
||||||
templates:
|
templates:
|
||||||
- bgprouter:
|
- bgprouter:
|
||||||
@@ -29,14 +29,14 @@ hosts:
|
|||||||
ns: 100.100.100.100
|
ns: 100.100.100.100
|
||||||
domain: kaz.sns
|
domain: kaz.sns
|
||||||
|
|
||||||
prod:
|
kaz1:
|
||||||
network:
|
network:
|
||||||
interfaces:
|
interfaces:
|
||||||
eth0:
|
eth0:
|
||||||
bridge: kaz-lan1
|
bridge: ha-lan1
|
||||||
ipv4: 100.80.0.2/24
|
ipv4: 100.80.0.2/24
|
||||||
eth1:
|
eth1:
|
||||||
bridge: kaz-lan2
|
bridge: ha-lan2
|
||||||
ipv4: 100.80.1.2/24
|
ipv4: 100.80.1.2/24
|
||||||
gatewayv4: 100.80.0.1
|
gatewayv4: 100.80.0.1
|
||||||
templates:
|
templates:
|
||||||
File renamed without changes.
+4
-4
@@ -19,7 +19,7 @@
|
|||||||
# --
|
# --
|
||||||
# NOM ; PRENOM ; EMAIL_SOUHAITE ; EMAIL_SECOURS ; ORGA ; ADMIN_ORGA ; NC_ORGA ; GARRADIN_ORGA ; WP_ORGA ; AGORA_ORGA ; WIKI_ORGA ; NC_BASE ; GROUPE_NC_BASE ; EQUIPE_AGORA ; QUOTA
|
# NOM ; PRENOM ; EMAIL_SOUHAITE ; EMAIL_SECOURS ; ORGA ; ADMIN_ORGA ; NC_ORGA ; GARRADIN_ORGA ; WP_ORGA ; AGORA_ORGA ; WIKI_ORGA ; NC_BASE ; GROUPE_NC_BASE ; EQUIPE_AGORA ; QUOTA
|
||||||
|
|
||||||
Hello1;Contact1;contact1@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;1;toto
|
Hello1;Contact1;contact1@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;1;tototototo
|
||||||
Hello2;Contact2;contact2@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;1;toto
|
Hello2;Contact2;contact2@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;1;tototototo
|
||||||
Hello3;Contact3;contact3@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;10;toto
|
Hello3;Contact3;contact3@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;10;tototototo
|
||||||
Hello4;Contact4;contact4@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;10;toto
|
Hello4;Contact4;contact4@kaz.sns;contact2@kaz.sns; ;N;N;N;N;N;N;N; ; ;10;tototototo
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+21
-20
@@ -11,26 +11,27 @@ $ORIGIN kaz.sns.
|
|||||||
IN MX 10 smtp.kaz.sns.
|
IN MX 10 smtp.kaz.sns.
|
||||||
IN A 100.80.0.2
|
IN A 100.80.0.2
|
||||||
ns IN A 100.80.0.2
|
ns IN A 100.80.0.2
|
||||||
dmz IN A 100.80.0.2
|
kaz1 IN A 100.80.0.2
|
||||||
smtp IN CNAME dmz
|
kaz2 IN A 100.81.0.2
|
||||||
imap IN CNAME dmz
|
smtp IN CNAME kaz1
|
||||||
www IN CNAME dmz
|
imap IN CNAME kaz1
|
||||||
mail IN CNAME dmz
|
www IN CNAME kaz1
|
||||||
cloud IN CNAME dmz
|
mail IN CNAME kaz1
|
||||||
tableur IN CNAME dmz
|
cloud IN CNAME kaz1
|
||||||
dashboard IN CNAME dmz
|
tableur IN CNAME kaz1
|
||||||
webmail IN CNAME dmz
|
dashboard IN CNAME kaz1
|
||||||
garradin IN CNAME dmz
|
webmail IN CNAME kaz1
|
||||||
wiki IN CNAME dmz
|
garradin IN CNAME kaz1
|
||||||
git IN CNAME dmz
|
wiki IN CNAME kaz1
|
||||||
office IN CNAME dmz
|
git IN CNAME kaz1
|
||||||
depot IN CNAME dmz
|
office IN CNAME kaz1
|
||||||
ldap IN CNAME dmz
|
depot IN CNAME kaz1
|
||||||
mobilizon IN CNAME dmz
|
ldap IN CNAME kaz1
|
||||||
mdp IN CNAME dmz
|
mobilizon IN CNAME kaz1
|
||||||
koffre IN CNAME dmz
|
mdp IN CNAME kaz1
|
||||||
pad IN CNAME dmz
|
koffre IN CNAME kaz1
|
||||||
agora IN CNAME dmz
|
pad IN CNAME kaz1
|
||||||
|
agora IN CNAME kaz1
|
||||||
listes IN MX 10 listes
|
listes IN MX 10 listes
|
||||||
listes IN A 100.80.1.2
|
listes IN A 100.80.1.2
|
||||||
firewall IN A 100.80.0.1
|
firewall IN A 100.80.0.1
|
||||||
File renamed without changes.
@@ -1,8 +1,8 @@
|
|||||||
version: 1
|
version: 1
|
||||||
|
|
||||||
header:
|
header:
|
||||||
name: Kaz2 AS
|
name: Hoster-B AS
|
||||||
comment: AS of the Kaz organization, 2ndary server
|
comment: AS of the second hoster of Kaz CHATONS
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
router:
|
router:
|
||||||
@@ -14,7 +14,7 @@ hosts:
|
|||||||
ipv4: 100.64.0.11/24
|
ipv4: 100.64.0.11/24
|
||||||
ipv6: 2001:db8:b000::11/48
|
ipv6: 2001:db8:b000::11/48
|
||||||
eth1:
|
eth1:
|
||||||
bridge: kaz2-lan1
|
bridge: hb-lan1
|
||||||
ipv4: 100.81.0.1/24
|
ipv4: 100.81.0.1/24
|
||||||
templates:
|
templates:
|
||||||
- bgprouter:
|
- bgprouter:
|
||||||
@@ -26,11 +26,11 @@ hosts:
|
|||||||
ns: 100.100.100.100
|
ns: 100.100.100.100
|
||||||
domain: kaz.sns
|
domain: kaz.sns
|
||||||
|
|
||||||
prod2:
|
kaz2:
|
||||||
network:
|
network:
|
||||||
interfaces:
|
interfaces:
|
||||||
eth0:
|
eth0:
|
||||||
bridge: kaz2-lan1
|
bridge: hb-lan1
|
||||||
ipv4: 100.81.0.2/24
|
ipv4: 100.81.0.2/24
|
||||||
gatewayv4: 100.81.0.1
|
gatewayv4: 100.81.0.1
|
||||||
templates:
|
templates:
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -15,10 +15,10 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y claws-mail
|
|||||||
|
|
||||||
# On configure les comptes mail
|
# On configure les comptes mail
|
||||||
if [ -f /clawsmail/addclawsuser.sh ]; then
|
if [ -f /clawsmail/addclawsuser.sh ]; then
|
||||||
su debian /clawsmail/addclawsuser.sh contact1 kaz.sns contact1@kaz.sns toto 1
|
su debian /clawsmail/addclawsuser.sh contact1 kaz.sns contact1@kaz.sns tototototo 1
|
||||||
su debian /clawsmail/addclawsuser.sh contact2 kaz.sns contact2@kaz.sns toto 2
|
su debian /clawsmail/addclawsuser.sh contact2 kaz.sns contact2@kaz.sns tototototo 2
|
||||||
su debian /clawsmail/addclawsuser.sh contact3 kaz.sns contact3@kaz.sns toto 3
|
su debian /clawsmail/addclawsuser.sh contact3 kaz.sns contact3@kaz.sns tototototo 3
|
||||||
su debian /clawsmail/addclawsuser.sh contact4 kaz.sns contact4@kaz.sns toto 4
|
su debian /clawsmail/addclawsuser.sh contact4 kaz.sns contact4@kaz.sns tototototo 4
|
||||||
su debian /clawsmail/addclawsuser.sh email isp-a.sns email email 5
|
su debian /clawsmail/addclawsuser.sh email isp-a.sns email email 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -219,12 +219,13 @@ auth:
|
|||||||
cp -ar ${VAGRANT_SRC_DIR}/snster-kaz /root
|
cp -ar ${VAGRANT_SRC_DIR}/snster-kaz /root
|
||||||
|
|
||||||
# crypto keys
|
# crypto keys
|
||||||
cp -ar /etc/letsencrypt /root/snster-kaz/kaz/prod/
|
cp -ar /etc/letsencrypt /root/snster-kaz/hoster-a/kaz1/
|
||||||
cp -ar /etc/letsencrypt /root/snster-kaz/isp-a/home/
|
cp -ar /etc/letsencrypt /root/snster-kaz/isp-a/home/
|
||||||
cp -ar /etc/letsencrypt /root/snster-kaz/kaz2/prod2/
|
cp -ar /etc/letsencrypt /root/snster-kaz/hoster-b/kaz2/
|
||||||
|
|
||||||
# On lie le filesystem de kaz-prod dans le /kaz de la VM pour le dév
|
# On lie le filesystem de kaz-prod dans le /kaz de la VM pour le dév
|
||||||
ln -s /var/lib/lxc/kaz-kaz-prod/rootfs/ /kaz-prod
|
ln -s /var/lib/lxc/kaz-hoster-a-kaz1/rootfs/ /kaz1-prod
|
||||||
|
ln -s /var/lib/lxc/kaz-hoster-b-kaz2/rootfs/ /kaz2-prod
|
||||||
ln -s /kaz-prod/kaz /kaz
|
ln -s /kaz-prod/kaz /kaz
|
||||||
|
|
||||||
# On met le KAZGUARD pour la mise au point
|
# On met le KAZGUARD pour la mise au point
|
||||||
|
|||||||
+4
-2
@@ -22,7 +22,8 @@ cd /tmp/kaz-vagrant
|
|||||||
# On écrase les anciens fichiers
|
# On écrase les anciens fichiers
|
||||||
cp -ar /tmp/kaz-vagrant/files/snster-kaz /root/
|
cp -ar /tmp/kaz-vagrant/files/snster-kaz /root/
|
||||||
# crypto keys
|
# crypto keys
|
||||||
cp -ar /etc/letsencrypt /root/snster-kaz/kaz/prod/
|
cp -ar /etc/letsencrypt /root/snster-kaz/hoster-a/kaz1/
|
||||||
|
cp -ar /etc/letsencrypt /root/snster-kaz/hoster-b/kaz2/
|
||||||
cp -ar /etc/letsencrypt /root/snster-kaz/isp-a/home/
|
cp -ar /etc/letsencrypt /root/snster-kaz/isp-a/home/
|
||||||
|
|
||||||
# On détruit et reconstruit tout sauf kaz-prod
|
# On détruit et reconstruit tout sauf kaz-prod
|
||||||
@@ -30,7 +31,8 @@ SNSTER="snster -c /root/snster-kaz"
|
|||||||
$SNSTER destroy isp-a-home
|
$SNSTER destroy isp-a-home
|
||||||
$SNSTER destroy isp-a-infra
|
$SNSTER destroy isp-a-infra
|
||||||
$SNSTER destroy isp-a-router
|
$SNSTER destroy isp-a-router
|
||||||
$SNSTER destroy kaz-router
|
$SNSTER destroy hoster-a-router
|
||||||
|
$SNSTER destroy hoster-b-router
|
||||||
$SNSTER destroy mica-router
|
$SNSTER destroy mica-router
|
||||||
$SNSTER destroy mica-infra
|
$SNSTER destroy mica-infra
|
||||||
$SNSTER destroy opendns-router
|
$SNSTER destroy opendns-router
|
||||||
|
|||||||
Reference in new issue
Block a user