propellor

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

commit 50c704b1fff60fcbeef71dba4bb3517721242b01
parent 2dc83aef323b6b8e9ea1832323f953226865bc35
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri, 12 Jan 2018 19:44:40 +0000

propellor spin

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

diff --git a/config.hs b/config.hs @@ -42,6 +42,8 @@ import Propellor import qualified Propellor.Property.Apt as Apt +import qualified Propellor.Property.Debootstrap as Debootstrap +import qualified Propellor.Property.Chroot as Chroot import qualified Propellor.Property.Cron as Cron import qualified Propellor.Property.Fail2Ban as Fail2Ban import qualified Propellor.Property.File as File @@ -126,6 +128,8 @@ cygnus = host "cygnus.ricketyspace.net" $ props & installEmacs & wgetLinks & cygnusPgDump + -- chroots. + & Chroot.provisioned cygnusEmacsBuilder -- root config. & User.hasSomePassword (User "root") & Ssh.authorizedKey (User "root") sCanonicalSshPubKey @@ -307,6 +311,16 @@ cygnusPgDump = Cron.job "cygnusPgDump" where cmd = "./pgdump " ++ "s" ++ " " ++ pgDumpsDir +---- containers + +cygnusEmacsBuilder :: Chroot.Chroot +cygnusEmacsBuilder = Chroot.debootstrapped Debootstrap.BuilddD dir $ props + & osDebian (Stable "stretch") X86_64 + & Apt.cacheCleaned + & Apt.buildDep ["emacs"] + where + dir = "/var/lib/machines" + ---- etc cygnusHosts :: [File.Line] cygnusHosts = [