Paste number 147590: guix ops wip

Paste number 147590: guix ops wip
Pasted by: davexunit
When:6 years, 7 months ago
Share:Tweet this! | http://paste.lisp.org/+35VQ
Channel:None
Paste contents:
Raw Source | XML | Display As
(use-modules (gnu))
;; (use-service-modules web)
(use-package-modules web databases)

(define web-server
  (machine
   (name "web-server")
   (system (operating-system
             (host-name "web-server")
             (timezone "America/New_York")
             (locale "en_US.UTF-8")
             (bootloader (grub-configuration (device "/dev/sda")))
             (file-systems
              (list (file-system
                      (mount-point "/")
                      (device "dummy")
                      (type "dummy"))
                    %binary-format-file-system))
             (packages
              (cons nginx %base-packages))))
   (platform #f)))

(define db-server
  (machine
   (name "db-server")
   (system (operating-system
             (host-name "db-server")
             (timezone "America/New_York")
             (locale "en_US.UTF-8")
             (bootloader (grub-configuration (device "/dev/sda")))
             (file-systems
              (list (file-system
                      (mount-point "/")
                      (device "dummy")
                      (type "dummy"))
                    %binary-format-file-system))
             (packages
              (cons postgresql %base-packages))))
   (platform #f)))

(deployment
 (name "test-deployment")
 (machines (list web-server db-server)))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.