Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Behind the Scenes at Fiesta

Mike Dirolf
September 16, 2011

Behind the Scenes at Fiesta

A look at the technology behind fiesta.cc - MongoDB, Postfix, Python, Puppet, and some more. Given at PyGotham in September 2011

Mike Dirolf

September 16, 2011
Tweet

More Decks by Mike Dirolf

Other Decks in Technology

Transcript

  1. class MyServer(smtpd.SMTPServer): def process_message(self, peer, sndr, rcpts, data): do_something_cool(...) server

    = MyServer((“127.0.0.1”, 2525), None) asyncore.loop() http://docs.python.org/library/smtpd.html
  2. A Fiesta User {addresses:  ["[email protected]",          

                   "[email protected]"],  first:  "Mike",  last:  "Dirolf",  pw:  "...",  groups:  [      {address:  "[email protected]",        name:  "family",        id:  ObjectId("...")},      {address:  "[email protected]",        name:  "rovers",        id:  ObjectId("...")}]}
  3. Web

  4. Ops

  5. class mongodb { yumrepo { "10gen": baseurl => "...” descr

    => "10gen Repository", enabled => 1 } package { "mongo-10gen-server": ensure => present, require => Yumrepo["10gen"] } }
  6. Give  Fiesta  a  try Send  me  questions   about  this

     presentation   or  ask  for  API  info Mike  Dirolf @mdirolf mike@corp.fiesta.cc