summaryrefslogtreecommitdiff
path: root/joeyconfig.hs
diff options
context:
space:
mode:
authorJoey Hess2017-07-25 15:21:48 -0400
committerJoey Hess2017-07-25 15:21:48 -0400
commit9c719f4f5e8b5bfdc0be3259cd3a30b02a345e82 (patch)
tree278cbb2901ba4ca3ca244fc283b8a6ed030eb2cd /joeyconfig.hs
parent5bd4c6e679ed605f1b37c201affb27096662c29f (diff)
propellor spin
Diffstat (limited to 'joeyconfig.hs')
-rw-r--r--joeyconfig.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/joeyconfig.hs b/joeyconfig.hs
index b9b280e9..a6d913ef 100644
--- a/joeyconfig.hs
+++ b/joeyconfig.hs
@@ -4,6 +4,8 @@ module Main where
import Propellor
import Propellor.Property.Scheduled
+import Propellor.Property.DiskImage
+import Propellor.Property.Chroot
import qualified Propellor.Property.File as File
import qualified Propellor.Property.Apt as Apt
import qualified Propellor.Property.Network as Network
@@ -92,6 +94,16 @@ darkstar = host "darkstar.kitenet.net" $ props
& Ssh.userKeys (User "joey") hostContext
[ (SshRsa, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1YoyHxZwG5Eg0yiMTJLSWJ/+dMM6zZkZiR4JJ0iUfP+tT2bm/lxYompbSqBeiCq+PYcSC67mALxp1vfmdOV//LWlbXfotpxtyxbdTcQbHhdz4num9rJQz1tjsOsxTEheX5jKirFNC5OiKhqwIuNydKWDS9qHGqsKcZQ8p+n1g9Lr3nJVGY7eRRXzw/HopTpwmGmAmb9IXY6DC2k91KReRZAlOrk0287LaK3eCe1z0bu7LYzqqS+w99iXZ/Qs0m9OqAPnHZjWQQ0fN4xn5JQpZSJ7sqO38TBAimM+IHPmy2FTNVVn9zGM+vN1O2xr3l796QmaUG1+XLL0shfR/OZbb joey@darkstar")
]
+ & imageBuilt "/srv/test.img" mychroot MSDOS
+ [ partition EXT2 `mountedAt` "/boot"
+ , partition EXT4 `mountedAt` "/"
+ , swapPartition (MegaBytes 256)
+ ]
+ where
+ mychroot d = debootstrapped mempty d $ props
+ & osDebian Unstable X86_64
+ & Apt.installed ["linux-image-amd64"]
+ & Grub.installed PC
gnu :: Host
gnu = host "gnu.kitenet.net" $ props