{"issue":{"state":"open","pull_request":{"diff_url":"https://github.com/rglabs/teleport/pull/1.diff","html_url":"https://github.com/rglabs/teleport/pull/1","patch_url":"https://github.com/rglabs/teleport/pull/1.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/7729dc7078a4f73ecb4c3de6caabf893?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7729dc7078a4f73ecb4c3de6caabf893","url":"https://api.github.com/users/noeticpenguin","login":"noeticpenguin","id":376367},"labels":[],"updated_at":"2011-10-31T19:00:09Z","assignee":null,"closed_at":null,"comments":13,"url":"https://api.github.com/repos/rglabs/teleport/issues/1","body":"Greetings!\r\n\r\nFirst off, Awesome work. Teleport is amazing! \r\n\r\nI found myself in need of a couple of additional DSL methods and I wanted to share:\r\ngems - gems to install globally. While we strive to use bundler, there are somethings I prefer to be installed globally as I use ruby in sys-maint scripts, and or the entire server is dedicated to say Passenger, in which case I'd like it installed globally. To facilitate this, the _gems method was renamed to _gem_reset, and a new method _gems was added to install global gems. Additionally, to help the speed of idempotent, secondary teleports (ie: after initial server setup) no longer remove gems that are marked for later global installation. \r\n\r\nI also found that our use case was greatly simplified by the addition of the shell dsl method. This method itterates over a heredoc and executes those commands. This is done as the absolute last step. Thus, for instance I can install mogno, and configure mongoS to run, but at the end disable mongodb so that only the mogoS process remains running on the server. \r\n\r\nFinally, the hostname methods were wonderfully appending the given hostname to the localhost line of /etc/hosts. I needed it to generate an additional line, instead of appending. Thus this change generates /etc/hosts files like this:\r\n\r\n127.0.0.1 hostname hostname_as_FQDN\r\n127.0.0.1 localhost \r\n\r\nThis allows, for instance, Monit to spin up to the m/monit server with a proper auto-registration of a hostname and FQDN. \r\n\r\nAgain great work! I hope you'll accept this pull request. \r\n\r\nI'm currently working on enabling parallel teleportations! ","html_url":"https://github.com/rglabs/teleport/issues/1","number":1,"title":"Extending the DSL, and a quick modification to the hostname method(s)","id":1673312,"created_at":"2011-09-18T16:58:32Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/ca122eca5d377d3a3e856aee13ec0cc9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ca122eca5d377d3a3e856aee13ec0cc9","url":"https://api.github.com/users/dbloete","login":"dbloete","id":886},"updated_at":"2011-10-31T19:00:09Z","url":"https://api.github.com/repos/rglabs/teleport/issues/comments/2581595","body":"Thanks for the fast and detailed answer. Splitting this into separate issues is a good idea, I'd be willing to work on/help with the points 2 and 3 you made, though I'll not be having too much time for this right now either. Having 1.9.3 support in the near future would be great. ","id":2581595,"created_at":"2011-10-31T19:00:09Z"}}