propellor

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

commit 267d5a13f5939fb657823de7b1d1108e58d21218
parent 4f6d3fa5793f2a97810aca63ed467d00aaeb16ef
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 20 Oct 2018 17:49:54 -0400

propellor spin

Diffstat:
config.hs | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/config.hs b/config.hs @@ -599,6 +599,7 @@ ara = host "ara.ricketyspace.net" $props , "python-virtualenv", "man-db" , "gcc", "gdb", "pkg-config" , "exuberant-ctags", "make" + , "wget", "xz-utils", "netbase" ] -- sshd & Ssh.passwordAuthentication False @@ -626,6 +627,44 @@ ara = host "ara.ricketyspace.net" $props -- docker-ce & dockerCEInstalled & User.hasGroup (User "s") (Group "docker") + -- guix + & scriptProperty [ + "[ -d /gnu ] && exit 0" + , "" + , "echo 'Installing guix...'" + , "FILE='guix-binary-0.15.0.x86_64-linux.tar.xz'" + , "cd /tmp \\" + , " && wget https://alpha.gnu.org/gnu/guix/$FILE \\" + , " && tar --warning=no-timestamp -xf $FILE \\" + , " && mv var/guix /var/ && mv gnu / \\" + , " && ln -sf /var/guix/profiles/per-user/root/guix-profile /root/.guix-profile" + , "" + , "groupadd --system guixbuild" + , "" + , "for i in `seq -w 1 10`;" + , " do" + , " useradd -g guixbuild -G guixbuild \\" + , " -d /var/empty -s `which nologin` \\" + , " -c \"Guix build user $i\" --system \\" + , " guixbuilder$i;" + , " done" + , "" + , "export GUIX_PROFILE=$HOME/.guix-profile && \\" + , " . $GUIX_PROFILE/etc/profile && \\" + , " guix archive \\" + , " --authorize < /root/.guix-profile/share/guix/hydra.gnu.org.pub" + , "" + , "BASHRC=/root/.bashrc && \\" + , " echo 'GUIX_LOCPATH=\"/root/.guix-profile/lib/locale\"' >> $BASHRC && \\" + , " echo 'export GUIX_PROFILE=\"/root/.guix-profile\"' >> $BASHRC && \\" + , " echo '. /root/.guix-profile/etc/profile' >> $BASHRC" + , "" + , "cp /root/.guix-profile/lib/systemd/system/guix-daemon.service \\" + , " /etc/systemd/system/ && \\" + , " systemctl start guix-daemon && systemctl enable guix-daemon" + , "INSTALL_DATE=`date` && echo $INSTALL_DATE > /root/.guix_installed" + ] `assume` MadeChange + araNginx :: [String] araNginx = [