puppet camp tokyo 2014: puppet is most of your documentation
DESCRIPTION
"Puppet Is Most of Your Documentation" presented at Puppet Camp Tokyo 2014 by David Mytton, Server Density.TRANSCRIPT
![Page 1: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/1.jpg)
36 point日本語(にほんご)
48 point white on black
![Page 2: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/2.jpg)
Puppet is most of your documentation!
David MyttonPuppet Camp Tokyo - May 2014
blog.serverdensity.jp
![Page 3: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/3.jpg)
David Mytton
![Page 4: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/4.jpg)
ウェブサイト及びサーバー監
視の プレミアム製品
![Page 5: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/5.jpg)
Server Density Architecture
● ~100 servers - Ubuntu 12.04
● 50:50 virtual/dedicated
● Softlayer > Google Cloud
● Nginx, Python, MongoDB
● 30TB/m incoming data
![Page 6: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/6.jpg)
How we use Puppet
● Infrastructure
● Config
● Failover
● Deploys
![Page 7: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/7.jpg)
How we use Puppet
![Page 8: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/8.jpg)
Puppet is the source of truth
It knows all our servers, where they are, their health status, how they are configured
and what is installed.
![Page 9: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/9.jpg)
How we use Puppet
● Infrastructure
● Config
● Failover
● Deploys
![Page 10: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/10.jpg)
Infrastructure
![Page 11: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/11.jpg)
Infrastructure
gce_instance { 'totoro-1':
ensure => present,
machine_type => 'n1-standard-1',
zone => 'asia-east1-a',
network => 'default',
image => 'backports-debian-7-wheezy',
}
![Page 12: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/12.jpg)
Infrastructure
● gce_instance
● gce_firewall
● gce_httphealthcheck
● gce_targetpool
● ...
![Page 13: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/13.jpg)
Infrastructure
![Page 14: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/14.jpg)
Infrastructure
● Why?
● Defined in code
● All under version control
● Changes applied consistently
● Easy for others to understand
![Page 15: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/15.jpg)
Config
● Packages
● Versions (pinning)
● Config files
● Tweaks, fixes, patches
![Page 16: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/16.jpg)
Config
Versions (pinning)
![Page 17: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/17.jpg)
Config
Tweaks, fixes, patches
![Page 18: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/18.jpg)
Config
● Why?
● Defined in code
● All under version control
● Changes applied consistently
● Easy for others to understand
![Page 19: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/19.jpg)
Failover
● Nginx load balancer pools
● IPs stored in Puppet
● Console rake API
![Page 20: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/20.jpg)
Failover
● Why?
● Defined in PuppetDB
● GET/SET via API or UI
● Changes applied consistently
● Easy for others to understand
![Page 21: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/21.jpg)
Deploys
![Page 22: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/22.jpg)
Deploys
![Page 23: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/23.jpg)
Deploys
![Page 24: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/24.jpg)
Deploys
/opt/puppet/bin/mco puppetd runonce -I <host>
![Page 25: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/25.jpg)
How we use Puppet
● Infrastructure
● Config
● Failover
● Deploys
} The Docs
![Page 26: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/26.jpg)
ご興味がありましたら、新たに開設した日本語のブログもご覧下さい。
● GoogleコンピュートエンジンでのMongoDBー -ヒ
ントとベンチマーク評価
● 当社の時系列グラフを支える技術 – 一日に20億、月に30TBに及ぶドキュメント
blog.serverdensity.jp
![Page 27: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation](https://reader034.vdocuments.net/reader034/viewer/2022052522/554f3cf4b4c905471e8b4aef/html5/thumbnails/27.jpg)
日本語のツイッターのアカウントもフォローして
下さい。
@serverdensityjp