[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: hydra: Add harbourfront and update details of the build machines
From: |
Andreas Enge |
Subject: |
01/02: hydra: Add harbourfront and update details of the build machines behind bayfront. |
Date: |
Tue, 5 Feb 2019 15:54:51 -0500 (EST) |
andreas pushed a commit to branch master
in repository maintenance.
commit df0369d41c4ec49c0cbb2af2c3420df45a98b6a0
Author: Andreas Enge <address@hidden>
Date: Tue Feb 5 21:48:56 2019 +0100
hydra: Add harbourfront and update details of the build machines behind
bayfront.
* hydra/harbourfront.scm, hydra/keys/ssh/bayfront.pub: New files.
* hydra/machines.rec: Add harbourfront, update domain name and port
of redhill.
* hydra/machines.rec: Update domain names.
---
hydra/harbourfront.scm | 65 +++++++++++++++++++++++++++++++++++++++++++++
hydra/keys/ssh/bayfront.pub | 1 +
hydra/machines-bayfront.scm | 4 +--
hydra/machines.rec | 22 ++++++++++++---
4 files changed, 87 insertions(+), 5 deletions(-)
diff --git a/hydra/harbourfront.scm b/hydra/harbourfront.scm
new file mode 100644
index 0000000..5e5043c
--- /dev/null
+++ b/hydra/harbourfront.scm
@@ -0,0 +1,65 @@
+(use-modules (gnu))
+(use-service-modules mcron networking ssh)
+(use-package-modules certs screen ssh vim)
+
+(define gc-job
+ ;; Run 'guix gc' at 3AM every day.
+ #~(job '(next-hour '(3)) "guix gc -F 50G"))
+
+(operating-system
+ (host-name "harbourfront")
+ (timezone "Europe/Paris")
+ (locale "en_US.utf8")
+
+ (bootloader (bootloader-configuration
+ (bootloader grub-bootloader)
+ (target "/dev/sda")
+ (terminal-outputs '(console))))
+
+ (file-systems (cons (file-system
+ (device (file-system-label "my-root"))
+ (mount-point "/")
+ (type "ext4"))
+ %base-file-systems))
+
+ ;; Add kernel module for Symbios Logic SAS1068E
+ (initrd-modules (append (list "mptsas")
+ %base-initrd-modules))
+
+ (users (cons* (user-account
+ (name "andreas")
+ (comment "Andreas Enge")
+ (group "users")
+ (supplementary-groups '("wheel"))
+ (home-directory "/home/andreas"))
+ (user-account
+ (name "bayfront")
+ (comment "Bayfront Offload")
+ (group "users")
+ (home-directory "/home/bayfront"))
+ %base-user-accounts))
+
+ ;; Globally-installed packages.
+ (packages (cons* nss-certs screen openssh vim %base-packages))
+
+ (services (cons* (static-networking-service
+ "enp12s0f0"
+ "147.210.17.78"
+ #:netmask "255.255.254.0"
+ #:gateway "147.210.17.254"
+ #:name-servers '("147.210.16.143" "147.210.16.214"))
+ (service openssh-service-type
+ (openssh-configuration
+ (permit-root-login 'without-password)
+ (authorized-keys
+ `(("andreas" ,(local-file "keys/ssh/andreas.pub"))
+ ("bayfront" ,(local-file "keys/ssh/bayfront.pub"))
+ ("root" ,(local-file "keys/ssh/andreas.pub"))))))
+ (service mcron-service-type
+ (mcron-configuration
+ (jobs (list gc-job))))
+ (modify-services %base-services
+ (guix-service-type config =>
+ (guix-configuration
+ (use-substitutes? #f)))))))
+
diff --git a/hydra/keys/ssh/bayfront.pub b/hydra/keys/ssh/bayfront.pub
new file mode 100644
index 0000000..d5e0396
--- /dev/null
+++ b/hydra/keys/ssh/bayfront.pub
@@ -0,0 +1 @@
+ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDfRZuyMEWUoQsGVPq5EdS4unXffG968EXPBEbKngmrXTSWVp6F4vdaiHXmi6yDeb02ylXtlQPGIqCBs3IZb/Bm1MGMmNMo9eyLEER17yP2MszgC7uNsStkNbHeCh4+bEdjYJrtWSGovSmKVloYqKyI/1VLKYHnFzv2ilI4OrWhy03eJTECsU0u6rtgVTpl6/IPIvawqAhVa5WhWeC5Z/C9q+UYz8uH4/8/G/4OlqHTdPmTXi02yiRlh08fn1M3g1rjIQGIR+5OCNLMTqYZg6jLrYxmpBUupoiebIOXUWH1jH8byZs7Cr+cH6LIxdNesxv8Lf0uCGtmDdYgIWJcFNgz
address@hidden
diff --git a/hydra/machines-bayfront.scm b/hydra/machines-bayfront.scm
index 2055ebe..48706e3 100644
--- a/hydra/machines-bayfront.scm
+++ b/hydra/machines-bayfront.scm
@@ -1,6 +1,6 @@
(define harbourfront
(build-machine
- (name "harbourfront.guixsd.org")
+ (name "harbourfront.guix.info")
(system "x86_64-linux")
(user "bayfront")
(host-key "ssh-ed25519
AAAAC3NzaC1lZDI1NTE5AAAAIBfd3VZqyoKoZG3X772eDBrN2MPhnNDDnVA34hpf0f9b
root@(none)")
@@ -13,7 +13,7 @@
(define redhill
(build-machine
- (name "redhill.guixsd.org")
+ (name "redhill.guix.info")
(port 9022)
(system "armhf-linux")
(user "bayfront")
diff --git a/hydra/machines.rec b/hydra/machines.rec
index c59fbf1..e1b6562 100644
--- a/hydra/machines.rec
+++ b/hydra/machines.rec
@@ -171,8 +171,8 @@ PublicKey: (public-key
+
Nickname: redhill
-Hostname: redhill.guixsd.org
-Port: 9023
+Hostname: redhill.guix.info
+Port: 9022
Physical: Yes
Vendor: Novena
Location: Bordeaux, France
@@ -186,7 +186,23 @@ PublicKey: (public-key
+ (q #24A48D6C6E144A3B743A7EE6078CB8243BDA2702FD797779F67C172DDD2D89CF#)
+ )
+ )
-+
+
+Nickname: harbourfront
+Hostname: harbourfront.guix.info
+Port: 22
+Physical: Yes
+Vendor: ?
+Location: Bordeaux, France
+Contact: Andreas Enge <address@hidden>
+Cores: 8
+SystemType: x86_64-linux
+BaseSystem: GuixSD
+PublicKey: (public-key
++ (ecc
++ (curve Ed25519)
++ (q #ED463268B44B6DC421EA32DF111CBE6A00BC1B0F96071F26B40E695EF4EC8DCB#)
++ )
++ )
Nickname: berlin
Hostname: berlin.guixsd.org