summaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authordavid2018-08-25 18:50:39 +0000
committeradmin2018-08-25 18:50:39 +0000
commitd64d6f54eeaf6477b461c9e36c2edf814aac11ca (patch)
tree0e09fbaa0fd25e6c14bd36aaba00e8ffcd139c2e /doc/forum
parent2a833de992d581276d3f7b2f60d679c15091227a (diff)
Added a comment: pulling from a central repo via ssh
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/--spin_tries_to_pull_from_central_repository__63__/comment_4_75a0a229527a7c0c1633b4bd8e461607._comment27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/--spin_tries_to_pull_from_central_repository__63__/comment_4_75a0a229527a7c0c1633b4bd8e461607._comment b/doc/forum/--spin_tries_to_pull_from_central_repository__63__/comment_4_75a0a229527a7c0c1633b4bd8e461607._comment
new file mode 100644
index 00000000..e60cd5bb
--- /dev/null
+++ b/doc/forum/--spin_tries_to_pull_from_central_repository__63__/comment_4_75a0a229527a7c0c1633b4bd8e461607._comment
@@ -0,0 +1,27 @@
+[[!comment format=mdwn
+ username="david"
+ avatar="http://cdn.libravatar.org/avatar/22c2d800db6a7699139df604a67cb221"
+ subject="pulling from a central repo via ssh"
+ date="2018-08-25T18:50:39Z"
+ content="""
+I ended up updating to a more recent propellor for other reasons, but here's my hack to have propellor fetch over ssh:
+[[!format haskell \"\"\"
+rootSsh :: Property (HasInfo + UnixLike)
+rootSsh = propertyList \"ssh setup for root\" $ props
+ & Ssh.userKeyAt (Just keypath) (User \"root\") (Context \"propellor\") (SshRsa, Tethera.Keys.propellor_deploy_ssh)
+ & Ssh.knownHost hosts \"gitolite.tethera.net\" (User \"root\")
+ & File.containsBlock configpath [ \"Host propellor-deploy\"
+ , \" Hostname gitolite.tethera.net\"
+ , \" User git\"
+ , \" IdentityFile ~/.ssh/propellor_deploy\"
+ ]
+ where
+ keypath = \"/root/.ssh/propellor_deploy\"
+ configpath = \"/root/.ssh/config\"
+\"\"\"]]
+
+Propellor is used to initially deply a passwordless role key that can be used to pull from the central repo.
+One thing that surprised me a bit is that Ssh.userKeyAt expects an absolute path, or a path relative to /usr/local/propellor.
+
+
+"""]]