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
Testing "Hardware" Cookbooks with Kitchen
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Joe Nuspl
August 12, 2021
Technology
73
0
Share
Testing "Hardware" Cookbooks with Kitchen
Slides from my Chef Conf Online 2021 presentation
Joe Nuspl
August 12, 2021
More Decks by Joe Nuspl
See All by Joe Nuspl
Lessons from 12 Years of Progress Chef Development
nvwls
0
99
DevOps: Reflections on a Lifetime of Learning
nvwls
0
400
DevOps: Reflections on a Lifetime of Learning
nvwls
1
380
Team Building for $39.99
nvwls
0
100
How to DevOpsDays
nvwls
0
75
Building Authoritative Resource Sets
nvwls
1
510
Other Decks in Technology
See All in Technology
プロダクトを触って語って理解する、チーム横断バグバッシュのすすめ / 20260411 Naoki Takahashi
shift_evolve
PRO
0
120
Cortex Codeでデータの仕事を全部Agenticにやりきろう!
gappy50
0
300
AWS DevOps Agent or Kiro の使いどころを考える_20260402
masakiokuda
0
180
OPENLOGI Company Profile for engineer
hr01
1
62k
Microsoft Fabricで考える非構造データのAI活用
ryomaru0825
0
650
マルチモーダル非構造データとの闘い
shibuiwilliam
1
180
Databricks Lakebaseを用いたAIエージェント連携
daiki_akimoto_nttd
0
150
Goビルドを理解し、 CI/CDの高速化に挑む
satoshin
0
130
"まず試す"ためのDatabricks Apps活用法 / Databricks Apps for Early Experiments and Validation
nttcom
1
170
レガシーシステムをどう次世代に受け継ぐか
tachiiri
0
260
Babylon.js Japan Activities (2026/4)
limes2018
0
180
BIツール「Omni」の紹介 @Snowflake中部UG
sagara
0
200
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
210
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
200
Exploring anti-patterns in Rails
aemeredith
3
310
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Skip the Path - Find Your Career Trail
mkilby
1
96
The agentic SEO stack - context over prompts
schlessera
0
730
Chasing Engaging Ingredients in Design
codingconduct
0
160
Context Engineering - Making Every Token Count
addyosmani
9
790
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Transcript
Testing “hardware” cookbooks with kitchen Joe Nuspl Principal Engineer, Workday
2 • Based in Portland, OR • DevOpsDays Portland organizer
• Started with chef-0.8.2 on CentOS 5.3 • https://supermarket.chef.io/cookbooks/zap • http://nvwls.github.io/ • @JoeNuspl Who am I?
3 http://fredrikdesigns.com/portfolio/growly-bear-metal/
4 https://www.easytechjunkie.com/what-is-a-rack-server.htm
5 All software should be tested
6 “I need hardware to test the cookbook”
7 Wrong! “I need hardware to test the cookbook”
8 What are you trying to test?
9
10 Trust the lower layers, test your layer
11 Correct code can fail
12 • Client does not have access to server •
Server does not export the volume to that client • Server is down for maintenance Why could this fail?
13 • There is nothing the recipe could do to
fix the failure • Focus on the real purpose of the code • Avoid the failure The recipe is correct
14 What to test?
15 • /etc/fstab • /proc/mounts Persistent Point in time State
16 • Did the cookbook configure things? • /etc/fstab •
Focus on persistent What type of testing? • Does this server fulfill its purpose? • /proc/mounts • Focus on state Integration Compliance
17 Special case kitchen?
18 Use a handler to override behavior
19 • https://www.merriam-webster.com/dictionary/feign • to give a false appearance of
: induce as a false impression feign
20 feign::nfs-mount
21 Converges!
22 • Usually means only applicable on a particular hardware
platform • Not that it CAN only run on that platform Hardware specific recipes
23 hw::dell
24 Verifies under dokken
25 Hardware logic
26 Nothing is converged
27 feign::dell
28 feign::hp
29 • ProLiant_DL380_Gen9 vs ProLiant_DL380_Gen10 • PowerEdge_R640 vs PowerEdge_R740xd Model
based logic
30 Location specific recipes
31
32 • Docker4Mac lacks autofs support • Need to mock
the autofs service Test environment limitations
33
34 Include (some) test support in utility cookbooks
35 • https://github.com/bblimke/webmock webmock
36
37
38 https://www.homelectrical.com/sites/default/files/styles/original_image/public/images/product/blg/blg- woke_up_late.jpg Flawed design?
39 • https://github.com/nvwls/feign • https://github.com/nvwls/hw • https://github.com/nvwls/chefconf21 • https://nvwls.github.io/ Thank
you!