2023-12-02 17:19:54 -07:00
|
|
|
(define-module (metznet machines ldap)
|
2023-11-30 18:26:00 -07:00
|
|
|
#:use-module (gnu system)
|
|
|
|
#:use-module (guix gexp)
|
2023-12-02 17:19:54 -07:00
|
|
|
#:use-module (metznet system base-system)
|
2023-11-30 18:26:00 -07:00
|
|
|
#:use-module (gnu packages slapd)
|
|
|
|
#:use-module (gnu services)
|
|
|
|
#:use-module (gnu services certbot)
|
|
|
|
#:use-module (gnu services slapd)
|
|
|
|
|
2023-12-03 14:22:51 -07:00
|
|
|
#:export (ldap.metznet.ca ldap-services))
|
|
|
|
|
|
|
|
(define-public ldap-services
|
|
|
|
(append (list (service certbot-service-type
|
|
|
|
(certbot-configuration (email "admin@metznet.ca")
|
|
|
|
(certificates (list (certificate-configuration
|
|
|
|
(domains '
|
2023-12-03 15:23:35 -07:00
|
|
|
("ldap.metznet.ca")))))))
|
2023-12-03 14:22:51 -07:00
|
|
|
(service slapd-service-type
|
|
|
|
(slapd-configuration (uris
|
2023-12-03 20:10:05 -07:00
|
|
|
"ldap:// ldaps://"))))
|
2023-12-03 14:22:51 -07:00
|
|
|
%metznet-server-services))
|
2023-11-30 18:26:00 -07:00
|
|
|
|
|
|
|
(define-public ldap.metznet.ca
|
|
|
|
(operating-system
|
|
|
|
(inherit %metznet-base-server-system)
|
2023-12-03 15:23:35 -07:00
|
|
|
(host-name "ldap.metznet.ca")
|
2023-11-30 18:26:00 -07:00
|
|
|
(services
|
2023-12-03 14:22:51 -07:00
|
|
|
ldap-services)))
|