propellor

propellor config for hosts.
git clone git://git.ricketyspace.net/propellor.git
Log | Files | Refs | LICENSE

commit 56a6a40591805b073437de3808e712d49f895baf
parent d6928cdeefed57c698fa026cf229c6d5dc20216a
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 20 Oct 2018 18:08:27 -0400

propellor spin

Diffstat:
config.hs | 14+++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/config.hs b/config.hs @@ -628,8 +628,16 @@ ara = host "ara.ricketyspace.net" $props & dockerCEInstalled & User.hasGroup (User "s") (Group "docker") -- guix - & scriptProperty [ - "[ -d /gnu ] && exit 0" + & File.hasContent "/usr/local/bin/install-guix" installGuix + & File.mode "/usr/local/bin/install-guix" 0O0755 + & scriptProperty [ "install-guix" ] `assume` MadeChange + + +installGuix :: [File.Line] +installGuix = ["#!/bin/sh" + , "" + , "[ -d \"/gnu\" ] && exit 0" + , "" , "echo 'Installing guix...'" , "FILE='guix-binary-0.15.0.x86_64-linux.tar.xz'" , "cd /tmp \\" @@ -662,7 +670,7 @@ ara = host "ara.ricketyspace.net" $props , " /etc/systemd/system/ && \\" , " systemctl start guix-daemon && systemctl enable guix-daemon" , "INSTALL_DATE=`date` && echo $INSTALL_DATE > /root/.guix_installed" - ] `assume` MadeChange + ] araNginx :: [String]