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

Easy deploy and manage EC2 instances with Rubber

Easy deploy and manage EC2 instances with Rubber

SPRUG 4.10

Sergey Efremov

October 04, 2012
Tweet

Other Decks in Programming

Transcript

  1. Problems? n + 1 servers servers are different you need

    this new server 10 minutes ago Friday, October 5, 12
  2. Rubber config #{Rails.root}/config/rubber - all configs rubber.yml - config of

    rubber #{Rails.root}/config/rubber/roles/(unicorn|monit) configs of tools Friday, October 5, 12
  3. Roles role_dependencies: web: [nginx] app: [unicorn, munin, monit] web_tools: [nginx]

    db: [postresql_master, monit] db_slave: [postresql_slave, monit] Friday, October 5, 12
  4. Ready? Go! ALIAS=web01 ROLES=web cap rubber:create ALIAS=db01 ROLES=db cap rubber:create

    ALIAS=app01 ROLES=app cap rubber:create Friday, October 5, 12
  5. Ready? Go! ALIAS=web01 ROLES=web cap rubber:create ALIAS=db01 ROLES=db cap rubber:create

    ALIAS=app01 ROLES=app cap rubber:create ALIAS=tools ROLES=web_tools cap rubber:create Friday, October 5, 12
  6. Your own templates cap tasks (start, stop, install) role config

    (packages, ports, etc.) server config (nginx.conf, etc.) It’s easy Friday, October 5, 12
  7. Pull Request or GTFO more templates elastic balancer / autoscaling

    other cloud providers Friday, October 5, 12