Getting Started with Puppet by Chad Metcalf Wibi Data
-
Upload
buildacloud -
Category
Technology
-
view
437 -
download
1
description
Transcript of Getting Started with Puppet by Chad Metcalf Wibi Data
![Page 1: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/1.jpg)
PROJECT
DATE CLIENT01/18/13 PUPPET CAMP SILICON VALLEY
Getting StarteD W/ PuppetChad Metcalf - @METCALFC
![Page 2: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/2.jpg)
Infrastructure Engineer @ WibiDATA4 Years using Puppet - Build and RElease - Hadoop/HBase - InfraStructure - Operations
![Page 3: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/3.jpg)
PUPPET ECOsystemGetting Bigger EVERYDAY
![Page 4: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/4.jpg)
Learning Puppet VMStarting as fast as you can download 580 megs
![Page 5: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/5.jpg)
Which Puppet DistributionIt is a lot like sushi
![Page 6: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/6.jpg)
Which Puppet DistributionYou can roll your own to varying degrees of success
![Page 7: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/7.jpg)
Which Puppet DistributionYou can go to your favorite mega-mart and get some packaged awhile ago along with some fried Chicken
![Page 8: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/8.jpg)
Which Puppet DistributionOr you can go to an actual sushi joint
![Page 9: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/9.jpg)
Puppet Open Source vs Puppet EnterpriseSame Great Taste
![Page 10: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/10.jpg)
EXTERNAL NODE ClassifierFOREMAN - Puppet DASHBOARD - PUPPET ENTERPRISE CONSOLE - Roll YOUR OWN
![Page 11: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/11.jpg)
PuppetDBstoreconfig and inventory service storage
![Page 12: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/12.jpg)
HIERAHierarchical Database - Configuration details out of code
![Page 13: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/13.jpg)
Consider ProvisioningFrom bare metal to Puppet ready
![Page 14: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/14.jpg)
PROof Of ConceptProof of Concepts NEver DIE - Even if you really wished they would
![Page 15: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/15.jpg)
Scaling PuppetNo Easy Answers
![Page 16: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/16.jpg)
Module TIME?When are we going to do some real work?
![Page 17: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/17.jpg)
Configuration AS CODEDOWN TO the MODULES you USE
![Page 18: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/18.jpg)
/etc/puppetlabs/puppet├── modules│ ├── concat│ ├── dhcp│ ├── epel│ ├── hiera│ ├── hiera-puppet│ ├── limits│ ├── mongodb│ ├── mysql│ ├── nodejs│ ├── ntp
![Page 19: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/19.jpg)
Puppet ForgeClearing House for modules you should be using
![Page 20: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/20.jpg)
GithubNot everything is on the forge... yet.
![Page 21: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/21.jpg)
ForkingFork to Eat not to LIVE - aka Stop the fork
![Page 22: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/22.jpg)
Roll your ownDon’t reinvent the wheel
![Page 23: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/23.jpg)
Learning moreDon’t Forget irc #puppet - #puppet-dev - Mailing lists
![Page 24: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/24.jpg)
class boundary {
require boundary::params require boundary::dependencies
$id = $boundary::params::id $apikey = $boundary::params::apikey $collector = $boundary::params::collector $collector_port = $boundary::params::collector_port
file { '/etc/bprobe/': ensure => directory, mode => '0755', owner => 'root', group => 'root', }
package { 'bprobe': ensure => latest, require => File['/etc/bprobe'], }
![Page 25: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/25.jpg)
Puppet has more then a DSLSometimes you just need to write a little ruby
![Page 26: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/26.jpg)
class evil { define loop () { notice("${name}") } loop { ['this', 'is', 'evil']:}}
class{"evil":}
$ puppet apply evil.ppnotice: Scope(Evil::Loop[this]): thisnotice: Scope(Evil::Loop[is]): isnotice: Scope(Evil::Loop[evil]): evil
![Page 27: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/27.jpg)
VagrantLearn to ♥ it
node_config.vm.provision :puppet do |puppet| puppet.manifests_path = 'provision/manifests' puppet.module_path = 'provision/modules'end
![Page 28: Getting Started with Puppet by Chad Metcalf Wibi Data](https://reader038.fdocuments.us/reader038/viewer/2022103013/54535e11b1af9f84228b4594/html5/thumbnails/28.jpg)
QUESTIONS?You Can find me @metcalfc