propellor

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

commit b55a5677e9352d36eb5d7d2c0551ba4ae7cf313d
parent 9ce1ef08f3307af5e3c3a7ed004800da06c286d6
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri,  6 Apr 2018 04:12:16 +0000

propellor spin

Diffstat:
config.hs | 21++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/config.hs b/config.hs @@ -139,6 +139,7 @@ cygnus = host "cygnus.ricketyspace.net" $ props & Chroot.provisioned cygnusEmacsBuilder -- containers. & Systemd.nspawned cygnusPostgresContainer + & Systemd.nspawned cygnusSignalJail -- root config. & User.hasSomePassword (User "root") & Ssh.authorizedKey (User "root") sCanonicalSshPubKey @@ -315,7 +316,25 @@ cygnusEmacsBuilder = Chroot.debootstrapped Debootstrap.BuilddD dir $ props where dir = "/var/lib/container/emacs-builder" ----- etcoo +cygnusSignalJail :: Systemd.Container +cygnusSignalJail = Systemd.debContainer "signal-jail" $ props + & osDebian Unstable X86_64 + & Apt.stdSourcesList `onChange` Apt.upgrade + & Apt.cacheCleaned + & Apt.installed ["curl"] + & scriptProperty (let baseUrl = "https://updates.signal.org/desktop/apt" + in ["curl -s " ++ baseUrl ++ "/keys.asc | sudo apt-key add -" + , "echo 'deb [arch=amd64] " ++ baseUrl ++ " xenial main'" + ++ " | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list" + ]) + `assume` MadeChange + & Apt.update + & Apt.installed ["signal-desktop"] + -- Setup user s + & User.accountFor (User "s") + + +---- etc cygnusHosts :: [File.Line] cygnusHosts = [ "127.0.0.2 taoup.web"