From 224ac5d85bfc5943d050d1f08b8f8ba4ec1d23e8 Mon Sep 17 00:00:00 2001
From: Dante Catalfamo
Date: Wed, 25 Nov 2020 19:11:02 -0500
Subject: ox-ssh: last paragraph, better examples

---
 content/posts/WIP-org-ssh-export/index.org | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

(limited to 'content')

diff --git a/content/posts/WIP-org-ssh-export/index.org b/content/posts/WIP-org-ssh-export/index.org
index 5527b4c..f1f8b63 100644
--- a/content/posts/WIP-org-ssh-export/index.org
+++ b/content/posts/WIP-org-ssh-export/index.org
@@ -103,6 +103,9 @@ adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/man
      :SSH_USER: admin
      :END:
      - [[https://192.168.0.12][WebUI]]
+     - DHCP
+     - DNS
+     - OSPF
 
 ,*** Containers
 ,**** pihole
@@ -111,15 +114,16 @@ adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/man
      :OS:       Debian
      :SSH_USER: pi
      :END:
-     [[http://192.168.0.23/admin/][WebUI]]
+     - [[http://192.168.0.23/admin/][WebUI]]
 
-,**** test
+,**** ubuntu
      :PROPERTIES:
      :IP:       192.168.0.22
-     :OS:       Debian
+     :OS:       Ubuntu
      :SSH_USER: dante
      :END:
-
+     - Prometheus
+     - Shadowsocks
 #+end_src
 
 Finally to keep my SSH config up to date, I wrote [[https://github.com/dantecatalfamo/ox-ssh][ox-ssh]]. A backend
@@ -130,9 +134,19 @@ configuration file. It [[https://github.com/dantecatalfamo/ox-ssh#usage][support
 OpenSSH has, so I can maintain my entire SSH client list from within
 my org mode file.
 
-#+caption: From the GitHub readme
+#+caption: Property drawers are folded by default in org mode, but expanded here for context.
 [[file:ox-ssh-example.jpg]]
 
 For completeness, I also added a variable that lets me set a header to
 the configuration when exporting. This lets me add options which apply
 to all hosts, like keyring support for MacOS.
+
+With this new setup, I just have a single version controlled
+=Servers.org= file which I keep all the relevant information in.
+Whenever I change any details related to a server, I simply press
+@@html: <kbd><kbd>Ctrl</kbd> + <kbd>c</kbd></kbd>@@
+@@html: <kbd><kbd>Ctrl</kbd> + <kbd>e</kbd></kbd>@@
+to bring up the org export dispatch, then
+@@html: <kbd>s</kbd>@@ to select =ox-ssh=, and
+@@html: <kbd>x</kbd>@@ to overwrite my existing ssh config file with
+the newly generated one.
-- 
cgit v1.2.3