{"id":298,"date":"2015-04-01T10:10:48","date_gmt":"2015-04-01T14:10:48","guid":{"rendered":"http:\/\/ryepup.unwashedmeme.com\/blog\/?p=298"},"modified":"2015-04-01T10:10:48","modified_gmt":"2015-04-01T14:10:48","slug":"install-pygit2-libgit2-w-ssh-support-on-ubuntu","status":"publish","type":"post","link":"http:\/\/ryepup.unwashedmeme.com\/blog\/2015\/04\/01\/install-pygit2-libgit2-w-ssh-support-on-ubuntu\/","title":{"rendered":"install pygit2 + libgit2 w\/ SSH support on ubuntu"},"content":{"rendered":"<p>I wanted to use <a href=\"http:\/\/docs.saltstack.com\/en\/latest\/\">Saltstack<\/a>&#8216;s <a href=\"http:\/\/docs.saltstack.com\/en\/latest\/topics\/tutorials\/gitfs.html\">gitfs<\/a> to easily reference <a href=\"http:\/\/docs.saltstack.com\/en\/latest\/topics\/development\/conventions\/formulas.html\">salt formulas<\/a> from my <a href=\"http:\/\/gitolite.com\">gitolite<\/a> repository over ssh using key-based authentication. In order for salt-master to do this, you need <a href=\"https:\/\/github.com\/libgit2\/pygit2\">pygit2<\/a>, which needs <a href=\"https:\/\/libgit2.github.com\/\">libgit2<\/a>, which isn&#8217;t yet packaged by ubuntu. You can download a <a href=\"https:\/\/launchpad.net\/ubuntu\/+source\/libgit2\/0.22.1-0ubuntu2\">libgit2 deb file<\/a>, but that doesn&#8217;t have <a href=\"https:\/\/libgit2.github.com\/\">libgit2<\/a> compiled with SSH support, so I had to compile from source:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ryepup\/542bfc28247da7051b3a.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to use Saltstack&#8216;s gitfs to easily reference salt formulas from my gitolite repository over ssh using key-based authentication. In order for salt-master to do this, you need pygit2, which needs libgit2, which isn&#8217;t yet packaged by ubuntu. You can download a libgit2 deb file, but that doesn&#8217;t have libgit2 compiled with SSH support, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,7,8,51,50],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-git","category-linux","category-open-source","category-saltstack","category-sysadmin"],"_links":{"self":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":3,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":301,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions\/301"}],"wp:attachment":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}