MAJ role KEA MAJ test goss KEA
This commit is contained in:
parent
3100ba51e2
commit
2653221559
@ -2,19 +2,17 @@ file:
|
|||||||
/etc/kea/kea-ctrl-agent.conf:
|
/etc/kea/kea-ctrl-agent.conf:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 2470
|
|
||||||
owner: _kea
|
owner: _kea
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contents: []
|
||||||
/etc/kea/kea-dhcp4.conf:
|
/etc/kea/kea-dhcp4.conf:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 11346
|
|
||||||
owner: _kea
|
owner: _kea
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contents: []
|
||||||
/tmp/kea4-ctrl-socket:
|
/tmp/kea4-ctrl-socket:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
@ -23,14 +21,14 @@ file:
|
|||||||
group: _kea
|
group: _kea
|
||||||
filetype: socket
|
filetype: socket
|
||||||
contains: []
|
contains: []
|
||||||
/usr/local/lib/kea:
|
contents: null
|
||||||
|
/usr/lib/x86_64-linux-gnu/kea:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 4096
|
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
filetype: directory
|
filetype: directory
|
||||||
contains: []
|
contents: []
|
||||||
package:
|
package:
|
||||||
isc-kea-common:
|
isc-kea-common:
|
||||||
installed: true
|
installed: true
|
||||||
@ -60,11 +58,16 @@ package:
|
|||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 5.8+1.1.0
|
- 5.8+1.1.0
|
||||||
|
addr:
|
||||||
|
udp://172.16.64.254:67:
|
||||||
|
local-address: 127.0.0.1
|
||||||
|
reachable: true
|
||||||
|
timeout: 500
|
||||||
port:
|
port:
|
||||||
tcp:8000:
|
tcp:8000:
|
||||||
listening: true
|
listening: true
|
||||||
ip:
|
ip:
|
||||||
- 172.16.64.20
|
- 172.16.0.20
|
||||||
service:
|
service:
|
||||||
isc-kea-ctrl-agent.service:
|
isc-kea-ctrl-agent.service:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -2,19 +2,17 @@ file:
|
|||||||
/etc/kea/kea-ctrl-agent.conf:
|
/etc/kea/kea-ctrl-agent.conf:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 2470
|
|
||||||
owner: _kea
|
owner: _kea
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contents: []
|
||||||
/etc/kea/kea-dhcp4.conf:
|
/etc/kea/kea-dhcp4.conf:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 11346
|
|
||||||
owner: _kea
|
owner: _kea
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contents: []
|
||||||
/tmp/kea4-ctrl-socket:
|
/tmp/kea4-ctrl-socket:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
@ -23,14 +21,14 @@ file:
|
|||||||
group: _kea
|
group: _kea
|
||||||
filetype: socket
|
filetype: socket
|
||||||
contains: []
|
contains: []
|
||||||
/usr/local/lib/kea:
|
contents: null
|
||||||
|
/usr/lib/x86_64-linux-gnu/kea:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 4096
|
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
filetype: directory
|
filetype: directory
|
||||||
contains: []
|
contents: []
|
||||||
package:
|
package:
|
||||||
isc-kea-common:
|
isc-kea-common:
|
||||||
installed: true
|
installed: true
|
||||||
@ -60,11 +58,16 @@ package:
|
|||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 5.8+1.1.0
|
- 5.8+1.1.0
|
||||||
|
addr:
|
||||||
|
udp://172.16.64.254:67:
|
||||||
|
local-address: 127.0.0.1
|
||||||
|
reachable: true
|
||||||
|
timeout: 500
|
||||||
port:
|
port:
|
||||||
tcp:8000:
|
tcp:8000:
|
||||||
listening: true
|
listening: true
|
||||||
ip:
|
ip:
|
||||||
- 172.16.64.21
|
- 172.16.0.21
|
||||||
service:
|
service:
|
||||||
isc-kea-ctrl-agent.service:
|
isc-kea-ctrl-agent.service:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -1,14 +1,21 @@
|
|||||||
# Rôle Kea
|
# Rôle Kea
|
||||||
***
|
***
|
||||||
Rôle du Kea pour la haute disponibilité dhcp
|
Rôle Kea: Configuration de 2 serveurs KEA en mode haute disponbilité.
|
||||||
|
|
||||||
## Tables des matières
|
## Tables des matières
|
||||||
1. [Que fait le rôle Kea ?]
|
1. [Que fait le rôle Kea ?]
|
||||||
|
2. [Installation et configuration de ka]
|
||||||
|
3. [Remarques]
|
||||||
|
|
||||||
|
|
||||||
## Que fait le rôle Kea ?
|
## Que fait le rôle Kea ?
|
||||||
Il permet de configurer les serveur kea en mode haute disponibilité.
|
Le rôle KEA permet de configurer 1 serveurs kea (s-kea1 et s-kea2) en mode haute disponibilité.
|
||||||
|
- Le serveur **s-kea1** sera en mode **primary** il délivrera les baux DHCP sur le réseau n-user.
|
||||||
|
- Le serveur **s-kea2**, sera en mode **stand-by** le service DHCP basculera donc sur **s-kea2** en cas disponibilité du serveur**s-kea1**.
|
||||||
|
|
||||||
### Installation et configuration de kea
|
### Installation et configuration de kea
|
||||||
|
|
||||||
Le rôle kea va installer les packets kea dhcp4, hook, admin une fois les packets installer. Nous allons configurer les 2 serveurs kea pour qu'il distribut les ip de n-user et soit en haute disponibilité.
|
Le rôle kea installe les packets **kea dhcp4, hooks, admin** une fois les packets installer. Il configure un serveur kea pour qu'il distribue les ips sur le réseau n-user et soit en haute disponibilité.
|
||||||
|
|
||||||
|
### Remarquees ###
|
||||||
|
Une fois le playbook **s-kea** correctement terminé et la machine **s-kea** redemarrée, redémarrée le service **isc-kea-dhcp4.service** afin de prendre en compte les modifications éfféctuées sur la couche réseau par le role POST.
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"severity": "INFO",
|
"severity": "INFO",
|
||||||
|
"debuglevel": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
// The DHCPv4 server listens on this interface. When changing this to
|
// The DHCPv4 server listens on this interface. When changing this to
|
||||||
// the actual name of your interface, make sure to also update the
|
// the actual name of your interface, make sure to also update the
|
||||||
// interface parameter in the subnet definition below.
|
// interface parameter in the subnet definition below.
|
||||||
"interfaces": "{{ kea_dhcp_int }}"
|
"interfaces": ["{{ kea_dhcp_int }}"]
|
||||||
},
|
},
|
||||||
|
|
||||||
// Control socket is required for communication between the Control
|
// Control socket is required for communication between the Control
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
connection: local
|
|
||||||
vars:
|
|
||||||
kea_this_server: "s-kea1"
|
|
||||||
kea_srv1: "s-kea1"
|
|
||||||
kea_srv2: "s-kea2"
|
|
||||||
kea_ctrl_address_this: "172.16.0.20"
|
|
||||||
kea_ctrl_address1: "172.16.0.20"
|
|
||||||
kea_ctrl_address2: "172.16.0.21"
|
|
||||||
kea_dhcp_int: ["enp0s9"]
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- base
|
|
||||||
- goss
|
|
||||||
# - ssh-cli
|
|
||||||
- kea
|
|
||||||
# - zabbix-cli
|
|
||||||
# - journald-snd
|
|
||||||
# - snmp-agent
|
|
||||||
- post
|
|
18
s-kea1.yml
18
s-kea1.yml
@ -1,13 +1,21 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
vars:
|
||||||
|
kea_this_server: "s-kea1"
|
||||||
|
kea_srv1: "s-kea1"
|
||||||
|
kea_srv2: "s-kea2"
|
||||||
|
kea_ctrl_address_this: "172.16.0.20"
|
||||||
|
kea_ctrl_address1: "172.16.0.20"
|
||||||
|
kea_ctrl_address2: "172.16.0.21"
|
||||||
|
kea_dhcp_int: "enp0s9"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
#- goss
|
- goss
|
||||||
#- ssh-cli
|
- ssh-cli
|
||||||
- kea-master
|
- kea
|
||||||
# - zabbix-cli
|
# - zabbix-cli
|
||||||
#- journald-snd
|
- journald-snd
|
||||||
#- snmp-agent
|
- snmp-agent
|
||||||
- post
|
- post
|
||||||
|
18
s-kea2.yml
18
s-kea2.yml
@ -1,13 +1,21 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
vars:
|
||||||
|
kea_this_server: "s-kea2"
|
||||||
|
kea_srv1: "s-kea1"
|
||||||
|
kea_srv2: "s-kea2"
|
||||||
|
kea_ctrl_address_this: "172.16.0.21"
|
||||||
|
kea_ctrl_address1: "172.16.0.20"
|
||||||
|
kea_ctrl_address2: "172.16.0.21"
|
||||||
|
kea_dhcp_int: "enp0s9"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
# - goss
|
- goss
|
||||||
# - ssh-cli
|
- ssh-cli
|
||||||
- kea-slave
|
- kea
|
||||||
# - zabbix-cli
|
# - zabbix-cli
|
||||||
# - journald-snd
|
- journald-snd
|
||||||
# - snmp-agent
|
- snmp-agent
|
||||||
- post
|
- post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user