Your SlideShare is downloading. ×
0
@gazay
system administration     for rubists
setup server•   manually•   puppet•   chef•   gitpusshuten•   babushka•   etc…
manually
chef & puppet
simple setup one server for         rails app
test-driven sysadmin
nested
test-driven?test             code
test   task
$ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0$ ruby --versionruby 1.9.2p0 …
$ ruby --versionruby 1.8.7 …                      test$ rvm use 1.9.2Using ruby 1.9.2 p0   task$ ruby --versionruby 1.9.2p...
dependency$ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0
shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]shell( ‘rvm use 1.9.2’ )
met? {    shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]}    shell( ‘rvm use 1.9.2’ )
met? {  shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]}meet {  shell( ‘rvm use 1.9.2’ )}
dep ‘ruby 1.9.2 in use’ do  met? {    shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]  }  meet {    shell( ‘rvm use 1.9.2’ )  ...
nested
dep ‘ruby 1.9.2 in use’ do  requires ‘1.9.2 rvm ruby’  met? {    shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]  }  meet {   ...
dep ‘1.9.2 rvm ruby’ do  requires ‘rvm’  met? {    shell( ‘rvm list’ )[ ‘ruby-1.9.2-p0’ ]  }  meet {    shell( ‘rvm instal...
dep ‘rvm’ do  met? {      which ‘rvm’  }  meet {    shell bash -c "`curl http://rvm.beginrescueend.com/releases/rvminstall...
dep Cucumber.tmbundle do  source git://github.com/bmabey/cucumbertmbundle.gitend
sharingdep setup-user do  requires [  benhoskings:passwordless ssh logins,  benhoskings:hostname,  benhoskings:secured ssh...
git://github.com/ benhoskings /babushka-deps
railsrumble stack
thanks!
Babushka
Babushka
Babushka
Babushka
Upcoming SlideShare
Loading in...5
×

Babushka

1,460

Published on

My slides from piterrb #3

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,460
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Babushka"

  1. 1. @gazay
  2. 2. system administration for rubists
  3. 3. setup server• manually• puppet• chef• gitpusshuten• babushka• etc…
  4. 4. manually
  5. 5. chef & puppet
  6. 6. simple setup one server for rails app
  7. 7. test-driven sysadmin
  8. 8. nested
  9. 9. test-driven?test code
  10. 10. test task
  11. 11. $ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0$ ruby --versionruby 1.9.2p0 …
  12. 12. $ ruby --versionruby 1.8.7 … test$ rvm use 1.9.2Using ruby 1.9.2 p0 task$ ruby --versionruby 1.9.2p0 … test
  13. 13. dependency$ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0
  14. 14. shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]shell( ‘rvm use 1.9.2’ )
  15. 15. met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]} shell( ‘rvm use 1.9.2’ )
  16. 16. met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]}meet { shell( ‘rvm use 1.9.2’ )}
  17. 17. dep ‘ruby 1.9.2 in use’ do met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ] } meet { shell( ‘rvm use 1.9.2’ ) }end
  18. 18. nested
  19. 19. dep ‘ruby 1.9.2 in use’ do requires ‘1.9.2 rvm ruby’ met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ] } meet { shell( ‘rvm use 1.9.2’ ) }end
  20. 20. dep ‘1.9.2 rvm ruby’ do requires ‘rvm’ met? { shell( ‘rvm list’ )[ ‘ruby-1.9.2-p0’ ] } meet { shell( ‘rvm install 1.9.2’ ) }end
  21. 21. dep ‘rvm’ do met? { which ‘rvm’ } meet { shell bash -c "`curl http://rvm.beginrescueend.com/releases/rvminstall-head`" }end
  22. 22. dep Cucumber.tmbundle do source git://github.com/bmabey/cucumbertmbundle.gitend
  23. 23. sharingdep setup-user do requires [ benhoskings:passwordless ssh logins, benhoskings:hostname, benhoskings:secured ssh logins, benhoskings:admins can sudo‘ ]end
  24. 24. git://github.com/ benhoskings /babushka-deps
  25. 25. railsrumble stack
  26. 26. thanks!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×