Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
openstack-chef-repo
Search
Tomokazu HIRAI
February 12, 2013
Technology
120
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
openstack-chef-repo
Tomokazu HIRAI
February 12, 2013
More Decks by Tomokazu HIRAI
See All by Tomokazu HIRAI
Using Ceph-Deploy
jedipunkz
1
4.5k
rcbops/chef-cookbooks
jedipunkz
1
3.1k
Elasticsearch, Fluentd, Kibana 概要とデプロイ方法
jedipunkz
0
270
15分で解る Chef
jedipunkz
0
230
Other Decks in Technology
See All in Technology
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
DBについての基礎説明(MySQL編) - コロプラ 2026年度 新卒研修
colopl
0
100
Optunaの最新リリースv5.0について
pfn
PRO
0
120
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
300
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
250
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
200
パッチ更新でterraform initが落ちた日
grimoh
1
140
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
270
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
130
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
120
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
880
Featured
See All Featured
Color Theory Basics | Prateek | Gurzu
gurzu
1
490
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
WCS-LA-2024
lcolladotor
0
890
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
Designing Experiences People Love
moore
143
24k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
Automating Front-end Workflow
addyosmani
1369
210k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
My Coaching Mixtape
mlcsv
0
360
Visualization
eitanlees
153
17k
Transcript
openstack-chef-repo Tomokazu HIRAI @jedipunkz KDDI Web Communications inc. 132݄9༵
What is Chef ? #1 Chef is an open-source systems
integration framework built specifically for automating the cloud. * Chef-Server * Node * WorkStation 132݄9༵
What is Chef ? #2 Chef-Server WorkStation Node ʢ̍ʣ ʢ̎ʣ
ʢ̏ʣ (1) : cookbooks, roles, data_bag, environments ΛΞοϓϩʔυ (2) : node ʹରͯ͠ ‘bootstrap’ ߦ͍σϓϩΠ։࢝ (3) : cookbooks, roles Λμϯϩʔυ͠ chef-client ࣮ߦ, ͦͷޙఆظతʹ࣮ߦ openstack-chef-repo 132݄9༵
Why Chef ? * ܁Γฦ࣮͠ߦՄೳ -> ܧଓతσϓϩΠ * ίʔυʹ൚༻ੑΛ࣋ͨͤΔͷ͕༰қ ->
ࢿ࢈ͷ׆༻ package ‘nginx’ * API -> ΞϓϦ։ൃ͕༰қ 132݄9༵
Chef for OpenStack We are also working with community partners
such as Rackspace, Dell, DreamHost and HP to help provide a solid basis for deploying and managing OpenStack. http://www.opscode.com/blog/2012/06/27/chef-for- openstack/ ڈ6݄ͷ͜ͱ... 132݄9༵
ࠓिྲྀΕ͖ͯͨεϥΠυ http://www.slideshare.net/mattray/chef-11-previewchef- for-openstack 132݄9༵
Facebook has adopted Opscode’s Private Chef http://www.datacenterknowledge.com/archives/ 2013/02/04/facebook-uses-retooled-chef-to-manage- infrastructure/ 132݄9༵
openstack-chef-repo * chef-repo ͱ chef ͷ࡞ۀσΟϨΫτϦ * WorkStation ্ʹஔ *
librarian-chef ʹͯ cookbooks (keystone,glance, nova ...) Λऔಘ * environments(ྫ͑ production) Ͱ֤ cookbook attribute Λ্ॻ͖͠ શମͷ߹ੑΛऔΔ * spiceweasel ʹΑΓ knife ίϚϯυΛग़ྗɾ࣮ߦ 132݄9༵
σΟϨΫτϦߏ openstack-chef-repo ᵓᴷᴷ cookbooks ᴹ ᵓᴷᴷ apache2 ᴹ ᵓᴷᴷ keystone
ᴹ ᵓᴷᴷ glance ᴹ ᵓᴷᴷ .. ུ ᵓᴷᴷ environments ᴹ ᵋᴷᴷ production.rb ᵓᴷᴷ infrastructure.yml ᵓᴷᴷ roles ᴹ ᵓᴷᴷ allinone.rb ᴹ ᵓᴷᴷ base.rb ᴹ ᵓᴷᴷ glance.rb ᴹ ᵓᴷᴷ horizon-server.rb ᴹ ᵓᴷᴷ .. ུ * ڥʹ߹Θͤͯमਖ਼ɾه 132݄9༵
࣮ߦ४උ #1 % gem install librarian chef spiceweasel % git
clone git://github.com/opscode/openstack-chef-repo.git % cd openstack-chef-repo % librarian-chef update # cookbooks औಘ % vim environments/production.rb ... ུ "osops_networks" => { "public" => "10.200.8.0/24", "management" => "10.200.8.0/24", "nova" => "10.200.8.0/24" }, ... ུ * هमਖ਼ 132݄9༵
࣮ߦ४උ #2 % vim infrastructure.yml cookbooks: - keystone: #used by
keystone role version: 2012.1.1 ... ུ roles: - base: - rabbitmq-server: - keystone: ... ུ environments: - production: nodes: - 10.200.8.19: run_list: role[allinone] options: -i ~/.ssh/id_rsa -x root -E production * هमਖ਼ 132݄9༵
࣮ߦ % spiceweasel infrastructure.yml # ίϚϯυϥΠϯग़ྗ knife cookbook upload apache2
knife cookbook upload apt ... ུ knife environment from file production.rb knife role from file base.rb knife role from file rabbitmq-server.rb ... ུ knife bootstrap 10.200.8.19 -i ~/.ssh/id_rsa -x root -E production -r 'role[allinone]' % spiceweasel -e infrastructure.yml # ࣮ߦ ... 10ఔػ ! :D 132݄9༵
·ͱΊ • spiceweasel ͕ΠϯςάϨʔγϣϯͯ͘͠ΕΔ • librarian Ͱ cookbooks Λऔಘ #
berkshelf ʹஔ͖͑ͯ΄͍͠ • environments ʹͯෳڥΛཧग़དྷΔ (staging, testing ..) • ‘all in one’ ߏෳߏՄೳ #ෳະ֬ೝ • folsom ϕʔεͪʹ։ൃ͕࢝·Δͦ͏, ݱࡏ essex ϕʔε • chef ΠϯετʔϧπʔϧͰͳ͘ ‘ܧଓతʹσϓϩΠ(ӡ༻)͢ ΔͨΊͷϑϨʔϜϫʔΫ’ Ͱ͋Δ 132݄9༵