summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/forum/DNS_for_LAN/comment_1_cc8b39a2344a74a32d821c59b499634a._comment8
-rw-r--r--doc/forum/DNS_for_LAN/comment_2_bd310b1f5865a2d35502721e138ca091._comment15
-rw-r--r--doc/forum/ssh__95__known__95__hosts.mdwn1
-rw-r--r--doc/forum/ssh__95__known__95__hosts/comment_1_9447b1382bf54e6f4620bae200a62238._comment27
-rw-r--r--doc/todo/Default_of_new_style_builds_breaks_Bootstrap.OSOnly.mdwn29
5 files changed, 80 insertions, 0 deletions
diff --git a/doc/forum/DNS_for_LAN/comment_1_cc8b39a2344a74a32d821c59b499634a._comment b/doc/forum/DNS_for_LAN/comment_1_cc8b39a2344a74a32d821c59b499634a._comment
new file mode 100644
index 00000000..53519ebb
--- /dev/null
+++ b/doc/forum/DNS_for_LAN/comment_1_cc8b39a2344a74a32d821c59b499634a._comment
@@ -0,0 +1,8 @@
+[[!comment format=mdwn
+ username="david"
+ avatar="http://cdn.libravatar.org/avatar/22c2d800db6a7699139df604a67cb221"
+ subject="mDNS is ok"
+ date="2020-06-10T23:53:36Z"
+ content="""
+I ended up (finally) enabling mDNS in network-manager and systemd-resolved and it seems work pretty well for my goal of ssh-ing to machines on my LAN. avahi is the other main mDNS server as far as I know.
+"""]]
diff --git a/doc/forum/DNS_for_LAN/comment_2_bd310b1f5865a2d35502721e138ca091._comment b/doc/forum/DNS_for_LAN/comment_2_bd310b1f5865a2d35502721e138ca091._comment
new file mode 100644
index 00000000..4af921f4
--- /dev/null
+++ b/doc/forum/DNS_for_LAN/comment_2_bd310b1f5865a2d35502721e138ca091._comment
@@ -0,0 +1,15 @@
+[[!comment format=mdwn
+ username="david"
+ avatar="http://cdn.libravatar.org/avatar/22c2d800db6a7699139df604a67cb221"
+ subject="network-manager snippet"
+ date="2020-06-11T10:25:10Z"
+ content="""
+[[!format haskell \"\"\"
+File.hasContent \"/etc/NetworkManager/conf.d/mDNS.conf\" [ \"[connection]\"
+ , \"connection.mdns=2\"
+ ]
+ `requires` File.dirExists \"/etc/NetworkManager/conf.d\"
+\"\"\"]]
+
+The `=2` is important if you want the host to actually tell other hosts what it's IP is, and not just query,
+"""]]
diff --git a/doc/forum/ssh__95__known__95__hosts.mdwn b/doc/forum/ssh__95__known__95__hosts.mdwn
new file mode 100644
index 00000000..94db5996
--- /dev/null
+++ b/doc/forum/ssh__95__known__95__hosts.mdwn
@@ -0,0 +1 @@
+I would find it useful if there was a function similar to Ssh.knownHost that updated /etc/ssh/ssh_known_hosts. I suppose it just requires parameterizing knownHost in terms of what file to operate on, but I'm still pretty clueless about IO in Haskell.
diff --git a/doc/forum/ssh__95__known__95__hosts/comment_1_9447b1382bf54e6f4620bae200a62238._comment b/doc/forum/ssh__95__known__95__hosts/comment_1_9447b1382bf54e6f4620bae200a62238._comment
new file mode 100644
index 00000000..eb52f671
--- /dev/null
+++ b/doc/forum/ssh__95__known__95__hosts/comment_1_9447b1382bf54e6f4620bae200a62238._comment
@@ -0,0 +1,27 @@
+[[!comment format=mdwn
+ username="david"
+ avatar="http://cdn.libravatar.org/avatar/22c2d800db6a7699139df604a67cb221"
+ subject="prototype"
+ date="2020-06-11T01:23:28Z"
+ content="""
+This seems to work for me. Obviously less hardcoding and code duplication would be nicer.
+
+[[!format haskell \"\"\"
+-- | Puts some host's ssh public key(s), as set using `hostPubKey`
+-- or `hostKey` into /etc/ssh/ssh_known_hosts
+sshKnownHost :: [Host] -> HostName -> Property UnixLike
+sshKnownHost hosts hn = property' desc $ \w ->
+ go w =<< knownHostLines hosts hn
+ where
+ desc = \" globally known ssh key for \" ++ hn
+
+ go _ [] = do
+ warningMessage $ \"no configured ssh host keys for \" ++ hn
+ return FailedChange
+ go w ls = do
+ f <- return \"/etc/ssh/ssh_known_hosts\"
+ ensureProperty w $
+ f `File.containsLines` ls
+ `requires` File.dirExists (takeDirectory f)
+\"\"\"]]
+"""]]
diff --git a/doc/todo/Default_of_new_style_builds_breaks_Bootstrap.OSOnly.mdwn b/doc/todo/Default_of_new_style_builds_breaks_Bootstrap.OSOnly.mdwn
new file mode 100644
index 00000000..b3a3cd90
--- /dev/null
+++ b/doc/todo/Default_of_new_style_builds_breaks_Bootstrap.OSOnly.mdwn
@@ -0,0 +1,29 @@
+It looks like ghc in Debian unstable is defaulting to new style cabal builds which bypasses `Bootstrap.bootstrapWith Bootstrap.OSOnly`:
+
+ ...
+ git branch origin/spw3conf gpg signature verified; merging
+ Already up to date.
+ Build profile: -w ghc-8.8.3 -O1
+ In order, the following will be built (use -v for more details):
+ - IfElse-0.85 (lib:IfElse) (requires build)
+ - first-class-families-0.8.0.0 (lib) (requires build)
+ - hsc2hs-0.68.7 (exe:hsc2hs) (requires download & build)
+ - old-locale-1.0.0.7 (lib) (requires build)
+ - syb-0.7.1 (lib) (requires build)
+ - th-abstraction-0.3.2.0 (lib) (requires build)
+ - network-bsd-2.8.1.0 (lib) (requires build)
+ - type-errors-0.2.0.0 (lib) (requires build)
+ - hslogger-1.3.1.0 (lib) (requires build)
+ - propellor-5.10.1 (lib) (first run)
+ - propellor-5.10.1 (exe:propellor-config) (first run)
+ Downloading hsc2hs-0.68.7
+ Configuring IfElse-0.85...
+ Preprocessing library for IfElse-0.85..
+ Building library for IfElse-0.85..
+ [1 of 1] Compiling Control.Monad.IfElse ( Control/Monad/IfElse.hs, dist/build/Control/Monad/IfElse.o )
+ Downloaded hsc2hs-0.68.7
+ ...
+
+I think the simplest fix is to replace `cabal build` with `cabal v1-build` in `Propellor.Bootstrap.buildCommand`?
+
+--spwhitton