Permalink
Browse files

- Add docs

  • Loading branch information...
1 parent 44d12e7 commit 51c9627c2942a98e015eede6c242028a963b3e80 @jordansissel committed Nov 4, 2010
Showing with 21 additions and 0 deletions.
  1. +21 −0 manage-remote-hack/README.rdoc
@@ -0,0 +1,21 @@
+== Manage remote servers over ssh with puppet
+
+This hack shows how to trick puppet into managing packes on remote machines.
+
+This is cool because you can use it to manage servers that do not have puppet
+installed at all - it's all handled over ssh connections and remote command
+execution. You could use this, for example, to bootstrap a brand new server
+that has no puppet at all!
+
+=== How it works
+
+This ruby script overrides Puppet::Util::execute which is how puppet executes
+packager commands like apt-get, apt-cache, yum, rpm, gem, etc. I take the command
+and prefix it with 'ssh $host sudo' so it runs all the commands on the remote
+server.
+
+=== Limitations
+
+I only hack support for things that use external commands (like packager
+tools), so things like file resources won't work, though it shouldn't be too
+hard to hack that, too.

0 comments on commit 51c9627

Please sign in to comment.