summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordavid@1439a1cab13195a56248b6a8fd98a62028bcba8a2018-08-22 23:17:29 +0000
committeradmin2018-08-22 23:17:29 +0000
commitec9f1fad08d4d9d665c9ef1b105032ff593d55d8 (patch)
treefb660426c23b106deef38573fd3d48cc98fb26c5 /doc
parent90669ff9ef2e941265828bdff06233c379d06d8d (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/versioned_depends.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/forum/versioned_depends.mdwn b/doc/forum/versioned_depends.mdwn
new file mode 100644
index 00000000..5eff9424
--- /dev/null
+++ b/doc/forum/versioned_depends.mdwn
@@ -0,0 +1,13 @@
+The following property sets up my wacky outbound mail setup.
+<pre>
+smtpLeaf :: Property (HasInfo + DebianLike)
+smtpLeaf = propertyList "smtp leaf node" $ props
+ & Apt.installed["nullmailer", "bsd-mailx"]
+ & File.hasPrivContent "/etc/nullmailer/remotes" anyContext
+ & tetheraApt
+ & Apt.installed ["nullmailer-extras"] & Apt.update & Apt.upgrade
+ & Ssh.userKeys (User "mail") anyContext [ (SshRsa, Tethera.Keys.mail_ssh) ]
+ & Ssh.knownHost hosts "smtp.tethera.net" (User "mail")
+</pre>
+
+The "Apt.update & Apt.upgrade" is there because nullmailer-extras is kindof a work in progress and I need to make sure that when I add a new version to the private apt repo it's drawing from, that get's installed. It works but it seems a bit slow, and more importantly upgrading everything is kindof a heavy side effect (which might even break things), in order to update this one package. Is there a better way to do this? Don't assume I know anything, I started using propellor 2 days ago...