summaryrefslogtreecommitdiffstats
path: root/content/posts/WIP-org-ssh-export/index.org
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/WIP-org-ssh-export/index.org')
-rw-r--r--content/posts/WIP-org-ssh-export/index.org36
1 files changed, 21 insertions, 15 deletions
diff --git a/content/posts/WIP-org-ssh-export/index.org b/content/posts/WIP-org-ssh-export/index.org
index 116fc0e..5527b4c 100644
--- a/content/posts/WIP-org-ssh-export/index.org
+++ b/content/posts/WIP-org-ssh-export/index.org
@@ -1,4 +1,4 @@
-#+TITLE: Org SSH Export
+#+TITLE: How I Keep Track of My Servers
#+DATE: 2020-10-19T21:22:28-04:00
#+DRAFT: true
#+DESCRIPTION:
@@ -20,9 +20,10 @@ Raspberry Pis scattered around.
Needless to say, I've got a lot to keep track of. I tried using a
couple methods of keeping inventory of what I had running where, the
-user names, IP addresses, and links. I also had to worry about making
-sure my =~/.ssh/config= file was always up to date with VMs and
-containers I create.
+user names, IP addresses, and links, but found that none suited my
+needs particularly well. I also had to worry about making sure my
+=~/.ssh/config= file was always up to date with VMs and containers I
+create.
I'd already been playing with the idea of using an [[https://orgmode.org/][org mode]] file to
keep track of servers with VMs and containers, as it seemed like that
@@ -72,10 +73,10 @@ there's more I want to remember.
From there I added either an =IP= or =Hostname= properties to each
heading, along with other information about the system like =OS=,
=SSH_USER=, etc. This allows me to use org-mode's [[https://orgmode.org/manual/Sparse-Trees.html][sparse trees]] to
-search for, say, all VMs running OpenBSD. It also allows me to manage
-servers like anything else in org-mode, adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/manual/TODO-Items.html#TODO-Items][TODO]] entries,
-[[https://orgmode.org/manual/Working-with-Source-Code.html#Working-with-Source-Code][code blocks]], [[https://orgmode.org/manual/Hyperlinks.html#Hyperlinks][hyperlinks]], [[https://orgmode.org/manual/Tables.html#Tables][tables]], [[https://orgmode.org/manual/Attachments.html#Attachments][attachments]], putting details in
-[[https://orgmode.org/manual/Drawers.html#Drawers][drawers]], etc.
+search for, say, all VMs running OpenBSD. Using org mode also allows
+me to manage servers like anything else in an org mode document;
+adding [[https://orgmode.org/manual/Tags.html][tags]], [[https://orgmode.org/manual/TODO-Items.html#TODO-Items][TODO]] entries, [[https://orgmode.org/manual/Working-with-Source-Code.html#Working-with-Source-Code][code blocks]], [[https://orgmode.org/manual/Hyperlinks.html#Hyperlinks][hyperlinks]], [[https://orgmode.org/manual/Tables.html#Tables][tables]],
+[[https://orgmode.org/manual/Attachments.html#Attachments][attachments]], putting details in [[https://orgmode.org/manual/Drawers.html#Drawers][drawers]], etc.
#+begin_src org
,* home
@@ -122,11 +123,16 @@ servers like anything else in org-mode, adding [[https://orgmode.org/manual/Tags
#+end_src
Finally to keep my SSH config up to date, I wrote [[https://github.com/dantecatalfamo/ox-ssh][ox-ssh]]. A backend
-for the org mode [[https://orgmode.org/manual/Exporting.html][export engine]] that lets you export your buffer as an
-SSH configuration file. It takes all of the properties from the server
-headings and turns them into entries in a configuration file. It
-[[https://github.com/dantecatalfamo/ox-ssh#usage][supports]] every client configuration option OpenSSH has, so I can
-maintain my entire SSH client list from within my org mode file.
-
-#+caption: From the github readme
+for the org mode [[https://orgmode.org/manual/Exporting.html][export engine]] that lets me export my buffer as an SSH
+configuration file. It takes the properties from the all headings with
+either an =IP= or =HOSTNAME= property and turns them into entries in a
+configuration file. It [[https://github.com/dantecatalfamo/ox-ssh#usage][supports]] every client configuration option
+OpenSSH has, so I can maintain my entire SSH client list from within
+my org mode file.
+
+#+caption: From the GitHub readme
[[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.