[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: hydra: Add initial configuration of bayfront.
From: |
Andreas Enge |
Subject: |
01/01: hydra: Add initial configuration of bayfront. |
Date: |
Tue, 4 Oct 2016 18:06:11 +0000 (UTC) |
andreas pushed a commit to branch master
in repository maintenance.
commit a11bfb6bbdf32865ea8a7115adc3adf604271b00
Author: Andreas Enge <address@hidden>
Date: Tue Oct 4 20:04:31 2016 +0200
hydra: Add initial configuration of bayfront.
* hydra/bayfront.scm: New file.
---
hydra/bayfront.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
new file mode 100644
index 0000000..de430c2
--- /dev/null
+++ b/hydra/bayfront.scm
@@ -0,0 +1,61 @@
+;; OS configuration for bayfront, the frontend of the compile farm.
+
+(use-modules (gnu))
+(use-service-modules networking ssh)
+(use-package-modules admin linux vim)
+
+(define md0
+ (mapped-device
+ (source (list "/dev/sda2" "/dev/sdb2"))
+ (target "/dev/md0")
+ (type raid-device-mapping)))
+
+(operating-system
+ (host-name "bayfront")
+ (timezone "Europe/Paris")
+ (locale "en_US.UTF-8")
+
+ (bootloader (grub-configuration (device "/dev/sda")))
+
+ (mapped-devices (list md0))
+ (file-systems (cons (file-system
+ (title 'device)
+ (device "/dev/md0")
+ (dependencies (list md0))
+ (mount-point "/")
+ (type "ext4"))
+ %base-file-systems))
+
+ ;; Add a kernel module for RAID-10.
+ (initrd (lambda (file-systems . rest)
+ (apply base-initrd file-systems
+ #:extra-modules '("raid10")
+ rest)))
+
+ (users (cons* (user-account
+ (name "andreas")
+ (comment "Andreas Enge")
+ (group "users")
+ (supplementary-groups '("wheel"))
+ (home-directory "/home/andreas"))
+ (user-account
+ (name "mthl")
+ (comment "Mathieu Lirzin")
+ (group "users")
+ (supplementary-groups '("wheel"))
+ (home-directory "/home/mthl"))
+ (user-account
+ (name "ludo")
+ (comment "Ludovic Courtès")
+ (group "users")
+ (supplementary-groups '("wheel"))
+ (home-directory "/home/ludo"))
+ %base-user-accounts))
+
+ ;; grub-install needs mdadm in $PATH.
+ (packages (cons* mdadm vim lm-sensors %base-packages))
+
+ (services (cons* (dhcp-client-service)
+ (lsh-service #:port-number 9024)
+ %base-services)))
+