Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
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
260
15分で解る Chef
jedipunkz
0
220
Other Decks in Technology
See All in Technology
ラジオの科学
frievea
0
110
【CEDEC2026】次世代デジタルカードゲームのサーバー設計と運用 〜『Shadowverse: Worlds Beyond』の舞台裏~
cygames
PRO
0
720
13年運用タイトルのサーバーサイドが辿り着いた現在地 ― モンスターストライクにおける技術・組織・AI活用から得た知見
mixi_engineers
PRO
1
450
LangfuseによるLLMOps基盤の構築と活用事例
zozotech
PRO
1
270
AIエージェントを前提としたプラットフォーム エンジニアリング:GKEで作るAgent-Ready Golden Path
legalontechnologies
PRO
1
150
サイバー捜査員研修(後半)
nomizone
1
550
Breaking the Seal: Static Deobfuscation of Compiled V8 JavaScript Bytecode Malware
hshrzd
0
250
ブラウザ研修 2026
recruitengineers
PRO
2
120
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.4k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
AIエージェントの知識表現と推論に なぜグラフが使われるのか - 記号的AIの復権とニューラルAIとの統合
yohei1126
1
270
タクシーアプリ『GO』の実践的データ活用〜位置情報データの収集とStreamlitでの可視化〜
mot_techtalk
2
200
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Tell your own story through comics
letsgokoyo
1
1k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Six Lessons from altMBA
skipperchong
29
4.4k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
230
The Cult of Friendly URLs
andyhume
79
7k
Building Adaptive Systems
keathley
44
3.2k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
Building the Perfect Custom Keyboard
takai
2
830
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༵