gurgeous/teleport — Issue #9: Handy way to organize severs
Author: tarnfeld
Created: 2011-12-26 23:12:39+00:00
State: open

I've only recently got into working with Teleport (just two days of use) but one thing I have noticed, after building a series of generic re-usable recipes is, I have a lot of config for my server options e.g.

server "db",

:role => :db,
:services => ["mysql"],
:recipes => ["slave.rb"],
:mysql => {
:server_id => 00, # Last two octets of the IP address
:master => {
:host => "host-of-master",
:port => 3306,
:user => "replication-user",
:password => "blabla"
},
:slave => {
:skip => [000,111,222] # Skip replication errors with these codes
},
:readonly => true
},
:"sd-agent" => {
:key => "XXX"
}

I wanted to do something where I could include files in, say, `servers/db.server.rb` rather than having three or four of those large declarations in my `Telfile`.

Hopefully that makes sense, and will bring a handy feature into Teleport :D Thanks!