Compare commits
4 Commits
v0.0.4i-jc
...
v0.0.4l-ch
Author | SHA1 | Date | |
---|---|---|---|
3b88857c0b | |||
72c5498e64 | |||
e1cc021ee2 | |||
76528fad6f |
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
@def $DEV_PRIVATE = enp0s8;
|
@def $DEV_PRIVATE = enp0s8;
|
||||||
@def $DEV_WORLD = enp0s9;
|
@def $DEV_WORLD = enp0s9;
|
||||||
@def $DEV_WORLD = enp0s9;
|
|
||||||
@def $DEV_VPN= wg0;
|
@def $DEV_VPN= wg0;
|
||||||
@def $NET_PRIVATE = 172.16.0.0/24;
|
@def $NET_PRIVATE = 172.16.0.0/24;
|
||||||
|
|
||||||
@ -32,7 +31,7 @@ table filter {
|
|||||||
# well-known internet hosts
|
# well-known internet hosts
|
||||||
saddr ($NET_PRIVATE) proto tcp dport ssh ACCEPT;
|
saddr ($NET_PRIVATE) proto tcp dport ssh ACCEPT;
|
||||||
|
|
||||||
# we provide DNS and SMTP services for the internal net
|
# we provide DNS services for the internal net
|
||||||
interface $DEV_PRIVATE saddr $NET_PRIVATE {
|
interface $DEV_PRIVATE saddr $NET_PRIVATE {
|
||||||
proto (udp tcp) dport domain ACCEPT;
|
proto (udp tcp) dport domain ACCEPT;
|
||||||
proto udp dport bootps ACCEPT;
|
proto udp dport bootps ACCEPT;
|
||||||
|
@ -29,7 +29,7 @@ table filter {
|
|||||||
# well-known internet hosts
|
# well-known internet hosts
|
||||||
saddr ($NET_PRIVATE) proto tcp dport ssh ACCEPT;
|
saddr ($NET_PRIVATE) proto tcp dport ssh ACCEPT;
|
||||||
|
|
||||||
# we provide DNS and SMTP services for the internal net
|
# we provide DNS services for the internal net
|
||||||
interface $DEV_PRIVATE saddr $NET_PRIVATE {
|
interface $DEV_PRIVATE saddr $NET_PRIVATE {
|
||||||
proto (udp tcp) dport domain ACCEPT;
|
proto (udp tcp) dport domain ACCEPT;
|
||||||
proto udp dport bootps ACCEPT;
|
proto udp dport bootps ACCEPT;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{
|
{
|
||||||
// We need to specify where the agent should listen to incoming HTTP
|
// We need to specify where the agent should listen to incoming HTTP
|
||||||
// queries.
|
// queries.
|
||||||
"http-host": "172.16.0.20",
|
"http-host": "172.16.64.20",
|
||||||
|
|
||||||
// This specifies the port CA will listen on.
|
// This specifies the port CA will listen on.
|
||||||
"http-port": 8000,
|
"http-port": 8000,
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
// Control Agent must run along with this DHCPv4 server
|
// Control Agent must run along with this DHCPv4 server
|
||||||
// instance and the "http-host" and "http-port" must be
|
// instance and the "http-host" and "http-port" must be
|
||||||
// set to the corresponding values.
|
// set to the corresponding values.
|
||||||
"url": "http://172.16.0.20:8000/",
|
"url": "http://172.16.64.20:8000/",
|
||||||
// This server is primary. The other one must be
|
// This server is primary. The other one must be
|
||||||
// secondary.
|
// secondary.
|
||||||
"role": "primary"
|
"role": "primary"
|
||||||
@ -133,7 +133,7 @@
|
|||||||
// channel can be reached. The Control Agent is required
|
// channel can be reached. The Control Agent is required
|
||||||
// to run on the partner's machine with "http-host" and
|
// to run on the partner's machine with "http-host" and
|
||||||
// "http-port" values set to the corresponding values.
|
// "http-port" values set to the corresponding values.
|
||||||
"url": "http://172.16.0.21:8000/",
|
"url": "http://172.16.64.21:8000/",
|
||||||
// The other server is secondary. This one must be
|
// The other server is secondary. This one must be
|
||||||
// primary.
|
// primary.
|
||||||
"role": "standby"
|
"role": "standby"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{
|
{
|
||||||
// We need to specify where the agent should listen to incoming HTTP
|
// We need to specify where the agent should listen to incoming HTTP
|
||||||
// queries.
|
// queries.
|
||||||
"http-host": "172.16.0.21",
|
"http-host": "172.16.64.21",
|
||||||
|
|
||||||
// This specifies the port CA will listen on.
|
// This specifies the port CA will listen on.
|
||||||
"http-port": 8000,
|
"http-port": 8000,
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
// Control Agent must run along with this DHCPv4 server
|
// Control Agent must run along with this DHCPv4 server
|
||||||
// instance and the "http-host" and "http-port" must be
|
// instance and the "http-host" and "http-port" must be
|
||||||
// set to the corresponding values.
|
// set to the corresponding values.
|
||||||
"url": "http://172.16.0.20:8000/",
|
"url": "http://172.16.64.20:8000/",
|
||||||
// This server is primary. The other one must be
|
// This server is primary. The other one must be
|
||||||
// secondary.
|
// secondary.
|
||||||
"role": "primary"
|
"role": "primary"
|
||||||
@ -133,7 +133,7 @@
|
|||||||
// channel can be reached. The Control Agent is required
|
// channel can be reached. The Control Agent is required
|
||||||
// to run on the partner's machine with "http-host" and
|
// to run on the partner's machine with "http-host" and
|
||||||
// "http-port" values set to the corresponding values.
|
// "http-port" values set to the corresponding values.
|
||||||
"url": "http://172.16.0.21:8000/",
|
"url": "http://172.16.64.21:8000/",
|
||||||
// The other server is secondary. This one must be
|
// The other server is secondary. This one must be
|
||||||
// primary.
|
// primary.
|
||||||
"role": "standby"
|
"role": "standby"
|
||||||
|
@ -69,8 +69,13 @@
|
|||||||
args:
|
args:
|
||||||
chdir: /root/nxc
|
chdir: /root/nxc
|
||||||
|
|
||||||
- name: Creation reseau docker proxy
|
- name: vérification si le réseau proxy existe
|
||||||
|
command: docker network ls --filter name=proxy
|
||||||
|
register: net_proxy
|
||||||
|
|
||||||
|
- name: création du réseau proxy
|
||||||
command: docker network create proxy
|
command: docker network create proxy
|
||||||
|
when: net_proxy.stdout.find('proxy') == -1
|
||||||
|
|
||||||
#- name: Démarrage du docker-compose...
|
#- name: Démarrage du docker-compose...
|
||||||
#command: /bin/bash docker-compose up -d
|
#command: /bin/bash docker-compose up -d
|
||||||
|
@ -9,5 +9,5 @@
|
|||||||
- goss
|
- goss
|
||||||
- lb-bd
|
- lb-bd
|
||||||
- post
|
- post
|
||||||
- zabbix-cli
|
#- zabbix-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
- base
|
- base
|
||||||
- post-lb
|
- post-lb
|
||||||
- lb-web
|
- lb-web
|
||||||
- zabbix-cli
|
# - zabbix-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
|
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
- base
|
- base
|
||||||
- post-lb
|
- post-lb
|
||||||
- lb-web
|
- lb-web
|
||||||
- zabbix-cli
|
# - zabbix-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
|
|
||||||
|
2
s-lb.yml
2
s-lb.yml
@ -6,7 +6,7 @@
|
|||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
- lb-front
|
- lb-front
|
||||||
- zabbix-cli
|
#- zabbix-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- zabbix-cli
|
#- zabbix-cli
|
||||||
- lb-nfs-server
|
- lb-nfs-server
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
# - syslog-cli
|
# - syslog-cli
|
||||||
|
@ -18,4 +18,4 @@ echo ping r-vp2 interface interface interne
|
|||||||
ping -c3 172.16.128.254
|
ping -c3 172.16.128.254
|
||||||
|
|
||||||
echo ping s-agence
|
echo ping s-agence
|
||||||
ping -c3 172.16.128.11
|
ping -c3 172.16.128.10
|
||||||
|
Reference in New Issue
Block a user