diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-09-02 10:46:03 -0700 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-09-02 10:46:03 -0700 |
| commit | e972d8bd6e283803ce4f5ef03cb35aa72de45d7f (patch) | |
| tree | 6e693de06135abd1e66314a2f5b4d945cb8e9ab6 /config-joey.hs | |
| parent | cafd349d60b902705ebe12e8f8bc31c285e32ffe (diff) | |
propellor spin
Diffstat (limited to 'config-joey.hs')
| -rw-r--r-- | config-joey.hs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config-joey.hs b/config-joey.hs index 71b1a4ae..b3769db3 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -26,6 +26,7 @@ import qualified Propellor.Property.Gpg as Gpg import qualified Propellor.Property.Systemd as Systemd import qualified Propellor.Property.Journald as Journald import qualified Propellor.Property.Chroot as Chroot +import qualified Propellor.Property.DiskImage as DiskImage import qualified Propellor.Property.OS as OS import qualified Propellor.Property.HostingProvider.CloudAtCost as CloudAtCost import qualified Propellor.Property.HostingProvider.Linode as Linode @@ -80,8 +81,15 @@ darkstar = host "darkstar.kitenet.net" & JoeySites.postfixClientRelay (Context "darkstar.kitenet.net") & JoeySites.dkimMilter - & partitioned YesReallyDeleteDiskContents "/home/joey/disk" - (PartTable MSDOS [ mkPartition EXT3 (MegaBytes 256), mkPartition LinuxSwap (MegaBytes 16)]) + & DiskImage.built "/tmp/img" c ps (DiskImage.grubBooted DiskImage.PC) + where + c d = Chroot.debootstrapped (System (Debian Unstable) "amd64") mempty d + & Apt.installed ["openssh-server"] + ps = DiskImage.fitChrootSize MSDOS + [ EXT2 `DiskImage.mountedPartition` "/boot" + , EXT4 `DiskImage.mountedPartition` "/" + , DiskImage.swapPartition (MegaBytes 256) + ] gnu :: Host gnu = host "gnu.kitenet.net" |
