2023-11-29 17:57:36 -07:00
|
|
|
(define-module (machines ldap.metznet.ca)
|
2023-11-29 17:52:49 -07:00
|
|
|
#:use-module (gnu system)
|
2023-11-27 23:12:23 -07:00
|
|
|
#:use-module (guix gexp)
|
2023-11-29 17:52:49 -07:00
|
|
|
#:use-module (system base-system)
|
|
|
|
#:use-module (gnu packages slapd)
|
|
|
|
#:use-module (gnu services)
|
2023-11-29 01:39:08 -07:00
|
|
|
#:use-module (gnu services certbot)
|
2023-11-29 17:52:49 -07:00
|
|
|
#:use-module (gnu services slapd))
|
2023-11-27 23:12:23 -07:00
|
|
|
|
|
|
|
(operating-system
|
|
|
|
(inherit %metznet-base-server-system)
|
2023-11-30 14:40:07 -07:00
|
|
|
(host-name "ldap.guix.metznet.ca")
|
2023-11-27 23:12:23 -07:00
|
|
|
(services
|
2023-11-29 17:52:49 -07:00
|
|
|
(append (list (service certbot-service-type
|
2023-11-29 17:57:36 -07:00
|
|
|
(certbot-configuration (email "admin@metznet.ca")
|
2023-11-29 17:52:49 -07:00
|
|
|
(certificates (list (certificate-configuration
|
|
|
|
(domains '
|
2023-11-30 14:40:07 -07:00
|
|
|
("ldap.guix.metznet.ca")))))))
|
2023-11-29 17:52:49 -07:00
|
|
|
(service slapd-service-type
|
2023-11-29 18:16:24 -07:00
|
|
|
(slapd-configuration (uris
|
|
|
|
"ldap:// ldapi:// ldaps:// ldapis://")
|
|
|
|
(backups (list (local-file
|
2023-11-29 17:52:49 -07:00
|
|
|
"0.ldif")
|
|
|
|
(local-file
|
|
|
|
"1.ldif"))))))
|
|
|
|
%metznet-server-services)))
|