guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: hydra: Add fosshost machines.


From: Christopher Baines
Subject: branch master updated: hydra: Add fosshost machines.
Date: Sat, 28 Nov 2020 04:50:17 -0500

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new b4c4b8e  hydra: Add fosshost machines.
b4c4b8e is described below

commit b4c4b8eb0984d45f80c9dc84057e8f3dee8a4cf7
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Nov 28 09:47:44 2020 +0000

    hydra: Add fosshost machines.
    
    These are virtual machines provided by Fosshost. They're situated in
    the USA, and currently each have 6 cores + 8GB of RAM.
    
    They're currently being uses to build things through the instance of
    the Guix Build Coordinator I'm running to quality assurance and patch
    review, but they can be used for other things as well.
    
    * hydra/fosshost1.scm: New file.
    * hydra/fosshost2.scm: New file.
---
 hydra/fosshost1.scm | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 hydra/fosshost2.scm | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 208 insertions(+)

diff --git a/hydra/fosshost1.scm b/hydra/fosshost1.scm
new file mode 100644
index 0000000..e33008d
--- /dev/null
+++ b/hydra/fosshost1.scm
@@ -0,0 +1,104 @@
+(use-modules (gnu)
+             (sysadmin people))
+(use-service-modules desktop networking ssh xorg monitoring mcron guix)
+
+(define %sysadmins
+  (list (sysadmin (name "cbaines")
+                  (full-name "Christopher Baines")
+                  (ssh-public-key (local-file "keys/ssh/cbaines.pub")))
+        (sysadmin (name "ludo")
+                  (full-name "Ludovic Courtès")
+                  (ssh-public-key (local-file "keys/ssh/ludo.pub")))
+        (sysadmin (name "mathieu")
+                  (full-name "Mathieu Othacehe")
+                  (ssh-public-key (local-file "keys/ssh/mathieu.pub")))))
+
+(operating-system
+  (host-name "fosshost1")
+
+  (locale "en_US.utf8")
+  (timezone "America/New_York")
+  (keyboard-layout (keyboard-layout "us"))
+
+  (bootloader (bootloader-configuration
+               (bootloader grub-bootloader)
+               (target "/dev/sda")
+               (keyboard-layout keyboard-layout)))
+  (initrd-modules (append '("virtio_scsi")
+                          %base-initrd-modules))
+  (swap-devices (list "/dev/sda2"))
+
+  (file-systems (cons* (file-system
+                         (mount-point "/")
+                         (device
+                          (uuid "f2659154-1725-42bf-b29d-5fd11fc649c0"
+                                'ext4))
+                         (type "ext4"))
+                       %base-file-systems))
+
+  (users %base-user-accounts)
+
+  (packages (append
+             (list (specification->package "nss-certs"))
+             %base-packages))
+
+  (services
+   (append
+    (list (service openssh-service-type
+                   (openssh-configuration
+                    (password-authentication? #f)))
+          (service sysadmin-service-type %sysadmins)
+          (static-networking-service "eth0"
+                                     "147.75.35.153"
+                                     #:netmask "255.255.255.0"
+                                     #:gateway "147.75.35.145"
+                                     #:name-servers '("8.8.8.8"))
+          (service ntp-service-type)
+          (service prometheus-node-exporter-service-type)
+          (service mcron-service-type
+                   (mcron-configuration
+                    (jobs (list #~(job "0 1 * * *"
+                                       "guix gc -F 15G")))))
+          (service guix-build-coordinator-agent-service-type
+                   (guix-build-coordinator-agent-configuration
+                    (coordinator 
"https://coordinator.guix-patches.cbaines.net";)
+                    (uuid "b35e828a-0229-4cbc-9e41-cf78fe4116fb")
+                    (password-file 
"/etc/guix-build-coordinator-agent-password")
+                    (max-parallel-builds 2)
+                    (systems '("x86_64-linux" "i686-linux"))
+                    (derivation-substitute-urls
+                     (list "https://data.guix-patches.cbaines.net";))
+                    (non-derivation-substitute-urls
+                     (list "https://builds.guix-patches.cbaines.net";
+                           "https://ci.guix.gnu.org";
+                           "https://bayfront.guix.gnu.org";
+                           "https://guix.cbaines.net";)))))
+    (modify-services
+        %base-services
+      (guix-service-type
+       config => (guix-configuration
+                  (inherit config)
+                  (max-silent-time (* 3 60 60))
+                  (timeout (* 48 60 60))
+                  (extra-options '("--max-jobs=4"))
+                  (authorized-keys
+                   (cons*
+                    (plain-file
+                     "guix.cbaines.net.pub"
+                     "
+(public-key
+ (ecc
+  (curve Ed25519)
+  (q #5F5F4F321533D3A38F909785E682798933BA9BE257C97E5ABC07DD08F27B8DBF#)
+  )
+ )")
+                    (plain-file
+                     "data.guix-patches.cbaines.net.pub"
+                     "
+(public-key
+ (ecc
+  (curve Ed25519)
+  (q #50349E83123851A65A569304A12E512B698223A81E10BEEC5A3E56EDAEE5DAC1#)
+  )
+ )")
+                    %default-authorized-guix-keys))))))))
diff --git a/hydra/fosshost2.scm b/hydra/fosshost2.scm
new file mode 100644
index 0000000..a1de4a2
--- /dev/null
+++ b/hydra/fosshost2.scm
@@ -0,0 +1,104 @@
+(use-modules (gnu)
+             (sysadmin people))
+(use-service-modules desktop networking ssh xorg monitoring mcron guix)
+
+(define %sysadmins
+  (list (sysadmin (name "cbaines")
+                  (full-name "Christopher Baines")
+                  (ssh-public-key (local-file "keys/ssh/cbaines.pub")))
+        (sysadmin (name "ludo")
+                  (full-name "Ludovic Courtès")
+                  (ssh-public-key (local-file "keys/ssh/ludo.pub")))
+        (sysadmin (name "mathieu")
+                  (full-name "Mathieu Othacehe")
+                  (ssh-public-key (local-file "keys/ssh/mathieu.pub")))))
+
+(operating-system
+  (host-name "fosshost2")
+
+  (locale "en_US.utf8")
+  (timezone "America/New_York")
+  (keyboard-layout (keyboard-layout "us"))
+
+  (bootloader (bootloader-configuration
+               (bootloader grub-bootloader)
+               (target "/dev/sda")
+               (keyboard-layout keyboard-layout)))
+  (initrd-modules (append '("virtio_scsi")
+                          %base-initrd-modules))
+  (swap-devices (list "/dev/sda2"))
+
+  (file-systems (cons* (file-system
+                         (mount-point "/")
+                         (device
+                          (uuid "a9f32199-efee-4ba5-9be9-465c98fe01cd"
+                                'ext4))
+                         (type "ext4"))
+                       %base-file-systems))
+
+  (users %base-user-accounts)
+
+  (packages (append
+             (list (specification->package "nss-certs"))
+             %base-packages))
+
+  (services
+   (append
+    (list (service openssh-service-type
+                   (openssh-configuration
+                    (password-authentication? #f)))
+          (service sysadmin-service-type %sysadmins)
+          (static-networking-service "eth0"
+                                     "147.75.35.155"
+                                     #:netmask "255.255.255.0"
+                                     #:gateway "147.75.35.145"
+                                     #:name-servers '("8.8.8.8"))
+          (service ntp-service-type)
+          (service prometheus-node-exporter-service-type)
+          (service mcron-service-type
+                   (mcron-configuration
+                    (jobs (list #~(job "0 1 * * *"
+                                       "guix gc -F 15G")))))
+          (service guix-build-coordinator-agent-service-type
+                   (guix-build-coordinator-agent-configuration
+                    (coordinator 
"https://coordinator.guix-patches.cbaines.net";)
+                    (uuid "4cf57366-6b43-487f-9ce1-863536f71186")
+                    (password-file 
"/etc/guix-build-coordinator-agent-password")
+                    (max-parallel-builds 2)
+                    (systems '("x86_64-linux" "i686-linux"))
+                    (derivation-substitute-urls
+                     (list "https://data.guix-patches.cbaines.net";))
+                    (non-derivation-substitute-urls
+                     (list "https://builds.guix-patches.cbaines.net";
+                           "https://ci.guix.gnu.org";
+                           "https://bayfront.guix.gnu.org";
+                           "https://guix.cbaines.net";)))))
+    (modify-services
+        %base-services
+      (guix-service-type
+       config => (guix-configuration
+                  (inherit config)
+                  (max-silent-time (* 3 60 60))
+                  (timeout (* 48 60 60))
+                  (extra-options '("--max-jobs=4"))
+                  (authorized-keys
+                   (cons*
+                    (plain-file
+                     "guix.cbaines.net.pub"
+                     "
+(public-key
+ (ecc
+  (curve Ed25519)
+  (q #5F5F4F321533D3A38F909785E682798933BA9BE257C97E5ABC07DD08F27B8DBF#)
+  )
+ )")
+                    (plain-file
+                     "data.guix-patches.cbaines.net.pub"
+                     "
+(public-key
+ (ecc
+  (curve Ed25519)
+  (q #50349E83123851A65A569304A12E512B698223A81E10BEEC5A3E56EDAEE5DAC1#)
+  )
+ )")
+                    %default-authorized-guix-keys))))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]