summaryrefslogtreecommitdiff
path: root/Host/clam.hs
diff options
context:
space:
mode:
authorJoey Hess2014-03-29 23:10:52 -0400
committerJoey Hess2014-03-29 23:16:43 -0400
commitd9af8bac5eb7836a3c90e37e870fd73d30b841fd (patch)
tree40443efd384415172cf393571fe3f1651ea57423 /Host/clam.hs
initial check-in
too young to have a name
Diffstat (limited to 'Host/clam.hs')
-rw-r--r--Host/clam.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Host/clam.hs b/Host/clam.hs
new file mode 100644
index 00000000..4241222d
--- /dev/null
+++ b/Host/clam.hs
@@ -0,0 +1,20 @@
+import Property
+import qualified Property.Apt as Apt
+import qualified Property.Ssh as Ssh
+import qualified Property.User as User
+import qualified Property.GitHome as GitHome
+
+main = defaultMain
+ [ Apt.stdSourcesList Apt.Unstable `onChange` Apt.upgrade
+ , Apt.installed ["etckeeper"]
+ , Apt.installed ["ssh"]
+ , Apt.installed ["git", "myrepos"]
+ , GitHome.installed "root"
+ , check (Ssh.hasAuthorizedKeys "root") $
+ Ssh.passwordAuthentication False
+ , User.nonsystem "joey"
+ , fileHasContent "/etc/sudoers" ["joey ALL=(ALL:ALL) ALL"]
+ , GitHome.installed "joey"
+ , Apt.removed ["exim4"] `onChange` Apt.autoRemove
+ , Apt.installed ["tor"]
+ ]