aboutsummaryrefslogtreecommitdiff
path: root/etc/snippets/text-mode
diff options
context:
space:
mode:
Diffstat (limited to 'etc/snippets/text-mode')
0 files changed, 0 insertions, 0 deletions
innate))) ;;; ;;; Declarations for machines in a deployment. ;;; (define-record-type* <machine> machine make-machine machine? (operating-system %machine-operating-system); <operating-system> (environment machine-environment) ; symbol (configuration machine-configuration ; configuration object (default #f))) ; specific to environment (define (machine-operating-system machine) "Return the operating system of MACHINE." (operating-system-with-provenance (%machine-operating-system machine))) (define (machine-display-name machine) "Return the host-name identifying MACHINE." (operating-system-host-name (machine-operating-system machine))) (define (machine-remote-eval machine exp) "Evaluate EXP, a gexp, on MACHINE. Ensure that all the elements EXP refers to are built and deployed to MACHINE beforehand." (let ((environment (machine-environment machine))) ((environment-type-machine-remote-eval environment) machine exp))) (define (deploy-machine machine) "Monadic procedure transferring the new system's OS closure to the remote MACHINE, activating it on MACHINE and switching MACHINE to the new generation." (let ((environment (machine-environment machine))) ((environment-type-deploy-machine environment) machine))) (define (roll-back-machine machine) "Monadic procedure rolling back to the previous system generation on MACHINE. Return the number of the generation that was current before switching and the new generation number." (let ((environment (machine-environment machine))) ((environment-type-roll-back-machine environment) machine))) ;;; ;;; Error types. ;;; (define-condition-type &deploy-error &error deploy-error? (should-roll-back deploy-error-should-roll-back) (captured-args deploy-error-captured-args))