diff --git a/2012-cologne.rb/notes.md b/2012-cologne.rb/notes.md new file mode 100644 index 0000000..e69de29 diff --git a/2012-cologne.rb/puppet/01_intro.md b/2012-cologne.rb/puppet/01_intro.md new file mode 100644 index 0000000..ba6a309 --- /dev/null +++ b/2012-cologne.rb/puppet/01_intro.md @@ -0,0 +1,124 @@ +!SLIDE +## Kochen mit Vagrant & Puppet ## +### Cologne.rb · 20.06.2012 ### + +Sebastian Schulze · @bascht · github.com/bascht + +!SLIDE subsection +# Vagrant # + +!SLIDE +## Tool zur Verwaltung und Beschreibung von virtuellen Maschinen. ## + +!SLIDE center + +> »Geschnittenes Brot«. + +!SLIDE smbullets incremental +# Über mich + +* Freiberuflicher DevOp +* In-House Sisyphos +* Zwischen Development, Testing & Deployment + +!SLIDE center + +![Level of care](levelofcare.png) + +!SLIDE incremental smaller +# Keine Lust… + +* …sich mit Formatierung herumzuschlagen: **Markdown** +* …Pakte von Hand zu installieren: **Bundler** +* …virtuelle Maschinen zu pflegen: **Vagrant** +* …Serverkonfigurationen von Hand zu pflegen: **Puppet** + +!SLIDE +# Infrastructure as Code + +!SLIDE code smaller + + @@@ ruby + Vagrant::Config.run do |config| + config.vm.name = "colognerb" + config.vm.box = "base" + config.vm.box_url = "http://files.vagrantup.com/lucid32.box" + + config.vm.customize ["modifyvm", :id, "--memory", "512"] + config.vm.customize ["modifyvm", :id, "--cpus", "2"] + + config.vm.network :hostonly, "33.33.33.42" + end + + + +!SLIDE center +![VirtualBox](virtualbox.png) + +!SLIDE commandline incremental +# DSL für VBoxManage + + $ cat .vagrant + {"active":{"default":"d7ab1994-ed44-4857-88bc-eb6c51dec09a"}} + + $ vboxmanage list runningvms + "machine_1340096090" {d7ab1994-ed44-4857-88bc-eb6c51dec09a} + +!SLIDE incremental center +## Lifecycle-Management +(Bingo!) + +* `1 UP` +* `2 SUSPEND` +* `3 HALT` +* `4 DESTROY` +* `6 GOTO 1` + +!SLIDE incremental commandline center +## OS X Goodness + + $ gem install vagrant-dns + +!SLIDE center +# ✔ Hardware + +!SLIDE subsection +# Puppet + +!SLIDE +# CMS + +!SLIDE incremental +## Configuration Management Software + +* …wie Chef. +* …oder CFEngine. +* …oder Perl. + +!SLIDE center +> Woanders ist auch scheiße. + +!SLIDE incremental +# Puppet + +## Nodes +## Manifests +### Klassen +### Defines +## Templates +## Files + +!SLIDE code smaller center +# (Fast) OS-Agnostisch. + +!SLIDE code smaller center +# (Fast) lesbar. + + package { "vim": ensure => latest } + package { "emacs": ensure => absent } + + node "cologne.onruby" { } + +!SLIDE +## Demo-Time. + diff --git a/2012-cologne.rb/puppet/levelofcare.png b/2012-cologne.rb/puppet/levelofcare.png new file mode 100644 index 0000000..f21300e Binary files /dev/null and b/2012-cologne.rb/puppet/levelofcare.png differ diff --git a/2012-cologne.rb/puppet/levelofcare.svg b/2012-cologne.rb/puppet/levelofcare.svg new file mode 100644 index 0000000..da483fa --- /dev/null +++ b/2012-cologne.rb/puppet/levelofcare.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + application userspace operating system hardware + level of care + + diff --git a/2012-cologne.rb/puppet/virtualbox.png b/2012-cologne.rb/puppet/virtualbox.png new file mode 100644 index 0000000..025a251 Binary files /dev/null and b/2012-cologne.rb/puppet/virtualbox.png differ diff --git a/2012-cologne.rb/showoff.json b/2012-cologne.rb/showoff.json new file mode 100644 index 0000000..c2cd27d --- /dev/null +++ b/2012-cologne.rb/showoff.json @@ -0,0 +1,7 @@ +{ + "name": "Kochen mit Vagrant und Puppet", + "sections": [ + {"section" : "vagrant"}, + {"section" : "puppet"} + ] +} diff --git a/2012-cologne.rb/style.css b/2012-cologne.rb/style.css new file mode 100644 index 0000000..8821b9a --- /dev/null +++ b/2012-cologne.rb/style.css @@ -0,0 +1,31 @@ +body { +} +.slide { + background-image: linear-gradient(bottom, rgb(219,219,219) 21%, rgb(255,255,255) 85%); + background-image: -o-linear-gradient(bottom, rgb(219,219,219) 21%, rgb(255,255,255) 85%); + background-image: -moz-linear-gradient(bottom, rgb(219,219,219) 21%, rgb(255,255,255) 85%); + background-image: -webkit-linear-gradient(bottom, rgb(219,219,219) 21%, rgb(255,255,255) 85%); + background-image: -ms-linear-gradient(bottom, rgb(219,219,219) 21%, rgb(255,255,255) 85%); + + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0.21, rgb(219,219,219)), + color-stop(0.85, rgb(255,255,255)) + ); +} + +.content { + font-family: "Ubuntu", Courier, monospace; +} + +.subsection h1, +.subsection h2 { + font-weight: bold; + background-color: #750909; +} + +h1, h2 { + /* color: rgb(79, 180, 226); */ +}