summaryrefslogtreecommitdiff
path: root/joeyconfig.hs
diff options
context:
space:
mode:
authorJoey Hess2017-07-05 14:18:58 -0400
committerJoey Hess2017-07-05 14:18:58 -0400
commitcc3a7144edf57d78066a67dabc14f705c5026a79 (patch)
tree5d985671fe700ea867239c341b4b12d2a59dc88c /joeyconfig.hs
parent071adf44e85219ce4d4b8b096c9fd5efaaa6997a (diff)
propellor spin
Diffstat (limited to 'joeyconfig.hs')
-rw-r--r--joeyconfig.hs12
1 files changed, 9 insertions, 3 deletions
diff --git a/joeyconfig.hs b/joeyconfig.hs
index 1befeb1a..151bce09 100644
--- a/joeyconfig.hs
+++ b/joeyconfig.hs
@@ -21,6 +21,7 @@ import qualified Propellor.Property.Git as Git
import qualified Propellor.Property.Postfix as Postfix
import qualified Propellor.Property.Apache as Apache
import qualified Propellor.Property.LetsEncrypt as LetsEncrypt
+import qualified Propellor.Property.LightDM as LightDM
import qualified Propellor.Property.Grub as Grub
import qualified Propellor.Property.Obnam as Obnam
import qualified Propellor.Property.Gpg as Gpg
@@ -110,10 +111,15 @@ demo = host "demo.kitenet.net" $ props
& osDebian Unstable X86_64
& Hostname.setTo "demo"
& Apt.installed ["linux-image-amd64"]
- & User "root" `User.hasInsecurePassword` "root"
& bootstrappedFrom GitRepoOutsideChroot
- & Apt.installedMin ["task-desktop"]
- & Apt.installed ["xfce4", "lightdm", "xfce4-terminal", "firefox"]
+ & Apt.installed ["task-desktop", "xfce4", "xfce4-terminal", "firefox"]
+ & User.accountFor user
+ & LightDM.autoLogin user
+ & user `User.hasInsecurePassword` "debian"
+ & root `User.hasInsecurePassword` "debian"
+ where
+ user = User "user"
+ root = User "root"
gnu :: Host
gnu = host "gnu.kitenet.net" $ props