chef configuration management with rightscale - rightscale compute 2013
TRANSCRIPT
april25-26 sanfrancisco
cloud success starts here
Chef Configuration Managementwith RightScaleRaphael Simon, Sr. Systems Architect,
RightScaleRyan O’Leary, Product Manager, RightScale
# 2# 2
#RightscaleCompute
Elegant Software
# 3# 3
#RightscaleCompute
Chef @ RightScale History• First integration ~ 3 years ago• Chef only ServerTemplates 12H1 ~ 1 year ago• Private and OS Chef support through Chef ServerTemplate ~ next
week
• Going forward: tighter integration
# 4# 4
#RightscaleCompute
RightScale ServerTemplate Teamo 16 ServerTemplates
• Application servers, database managers, load balancers, all-in-ones
o ~75 RightScripts• Thousands of line of bash code• OS conditionals and cloud conditionals throughout• Idempotency checking was laborious
o More Clouds, More OSs = Maintenance Nightmare!
# 5# 5
#RightscaleCompute
RightScale: Why Chef?o Idempotency
• Files, packages, resources, etc – all built-in• Easy to make your code idempotent (only_if, not_if)
o System resource abstractions and utilities• No need for platform-specific checks or actions• Resource notifications
o Built-in parsing and availability of system configuration info
o Strong open source community• Many cookbooks are already available• Help available when you need it
# 6# 6
#RightscaleCompute
Impact of Chef at RightScaleo RightScript-based ServerTemplate releases
• ~6 month release cycle• 16 ServerTemplates• ~50 total automated tests
o Chef-based ServerTemplate releases• ~2 month release cycle• 23 ServerTemplates• ~2500 total automated tests
5X increase in bandwidth
# 7# 7
#RightscaleCompute
Running Chef in RightScaleo Single pane of glass for application management
throughout its lifecycle
o All of the other cloud management utilities that you need, built-in
# 8# 8
#RightscaleCompute
Cloud Application Automationo Monitor system resources across your deploymento Configure alerts for notifications or to trigger actionso Auto-scaling on any cloudo Integrate with your systems using a single APIo Orchestrate across your servers/deployments using
CloudFlow
# 9# 9
#RightscaleCompute
Deployment Organizationo Organize your servers and services into Deployments
for better visibility and automationo Configure Deployment-level settings, permissions,
monitoring, and alerts
# 10# 10
#RightscaleCompute
User and Permissions Managemento Create user accounts with role-based permissions
• SSO available
o Managed SSH available on all instanceso Coming soon: IAM and granular permissions
# 11# 11
#RightscaleCompute
Cost Forecasting and Detailed Reportingo Forecast costs based on historical data and estimated
future cloud service usageo Run detailed, regular reports for auditing and
chargeback purposes• Export reports into your accounting systems• Report per cloud, per service• Custom resource tagging and reporting
# 12# 12
#RightscaleCompute
RightScale + Chef or Chef + RightScale ?o For RightScale users: RightScale Chef
Built-in configuration engine Benefit from the Chef DSL Going forward: Make cookbooks first class abstraction in
RightScale
o For Chef users: Chef integration Chef client ServerTemplate: easy on-ramp to RightScale Take advantage of governance, monitoring and some automation Going forward: RightScale connector to Chef
# 13
#RightscaleCompute
Chef for RightScale UsersRightScale Chef
# 14# 14
#RightscaleCompute
RightScale Chef, Design – RepoPathso Define your Chef cookbook repositorieso Create RepoPaths to group and order them
# 15# 15
#RightscaleCompute
RightScale Chef, Design – ServerTemplateso Attach RepoPaths to
ServerTemplates
o Define boot sequence, operational recipes and decommission sequence using recipes from cookbooks in the RepoPath
o Publish / import RightScale Chef based ServerTemplates
# 16# 16
#RightscaleCompute
RightScale Chef, Runtimeo RightScale uploads and replicates cookbooks to
reposeo RightLink downloads cookbooks to instanceo RightLink configures and runs Chef:
1. Merge RightScale inputs into Chef node2. Add RightLink resources (tag, server collection, remote
execution)
Git
SVN
URL reposeInstance
Scraper
RightLink
# 17# 17
#RightscaleCompute
RightScale Chef, Future
# 18# 18
#RightscaleCompute
RightScale Chef, Futureo No RepoPath: Attach cookbooks directly to ServerTemplates
insteado Marketplace: Publish cookbooks to the MultiCloud Marketplaceo Runlists: Attach runlists (Chef roles) to ServerTemplateso Knife: Upload and download cookbooks from RightScale using
knifeo Cookbooks: View cookbook contents (including recipes) in
RightScale
# 19# 19
#RightscaleCompute
RightScale Chef, SummaryComplete Integration with RightScale
o Design: leverage inputs, ServerTemplates, MultiCloud Marketplace
o Manage: automate, take advantage of tags, server collections and remote execution of scripts
o Benefit: same technology used internally to build our ServerTemplates
“RightScale and Chef are better together”
# 20
#RightscaleCompute
RightScale for Chef UsersHosted and Open Source Chef in RightScale
# 21# 21
#RightscaleCompute
Chef Client ServerTemplateo Available in the MultiCloud Marketplace next weeko Connect to existing Chef infrastructureo Customize ServerTemplate to enable automationo Use the RightScale knife plugin just released by Cary!
https://github.com/caryp/knife-rightscale
2. Cookbooks Role ...
1. Chef Server config
3. Monitoring data
Hosted Chef / Chef Server
InstanceRightScale(Chef Client ServerTemplate)
# 22# 22
#RightscaleCompute
Future: Chef Server Connectoro Connect RightScale to existing Chef infrastructure
Import cookbooks to RightScale Design ServerTemplate in RightScale Configure instance using existing Chef infrastructure
o Full Integration (leverage inputs, automation, etc.)
3. Cookbooks Role ...
2. Chef Server config
4. Audit entries Monitoring data
Hosted Chef / Chef ServerInstanceRightScale
1. Cookbooks, roles, attributes …
# 23# 23
#RightscaleCompute
Hosted Chef and Chef Server Integration, Summaryo Available now (next week) using the Chef Client
ServerTemplate
o Deeper integration in the works
o Take advantage of the RightScale platform without changing anything to your existing configuration development process
# 24
#RightscaleCompute
SummaryMake RightScale Yours
# 25# 25
#RightscaleCompute
Summary, Your Choice
• If you don’t need or don’t want to run Chef, use RightScale’s native configuration engine. Use RightScripts and/or RightScale Chef.
• If you are already running Chef and want to take advantage of RightScale’s automation, governance or reporting capabilities use the Chef integration (Client ServerTemplate today, Chef connector in the future)
“RightScale and Chef are better together”
april25-26 sanfrancisco
cloud success starts here
Questions?