SlideShare a Scribd company logo
Build Cloud Computing
Infrastructure with Chef and VagrantInfrastructure with Chef and Vagrant
General Discussion
Richard Kuo, Professional-Technical Architect,
Cloud Realization, New Technology Product Development Engineering
Outline
• Infrastructure As Code
• Configuration Tools
• Cookbook Structure
• Local Cloud and Remote Cloud• Local Cloud and Remote Cloud
• Sample Code
• References
6/21/12 Creative Common BY-NC-SA 2
Infrastructure As Code
• Modularized, reusable document
• Change control
• Reflect the change of business environment
• Programmatically provisioning & configuration• Programmatically provisioning & configuration
6/21/12 Creative Common BY-NC-SA 3
Nodes Are Weaved(from chef video)
6/21/12 Creative Common BY-NC-SA 4
Why Configuration Tools
• Automation
• Reduce management complexity
• Version control programs
• Generate configuration• Generate configuration
• Maintain the state of resources
6/21/12 Creative Common BY-NC-SA 5
Work Flow
• Install version control - git; https://github.com/
• Install RVM then Ruby;
• Install RubyGems;
• Register an Hosted-Chef Platform account, and download credentials and default configuration file:
knife.rb; (optional-local chef-solo)
• Register account on cloud provider and download the credentials.
• Install configuration tool - Chef; http://wiki.opscode.com/display/chef/Installation
• Move credentials .chef directory and modify knife.rb; and test connectivity to chef-server;
• Setup client-configuation, by executing “knife configure client ./client-config”, and check it diff• Setup client-configuation, by executing “knife configure client ./client-config”, and check it diff
between ORGNAME-validator.pem and validation.pem; make a copy to /etc/chef/; copy ORGNAME-
validator.pem to ~/.ssh/validation.pem;
• Install knife plugins for different cloud providers, i.e. knife-ec2, knife-rackspace, etc;
• Install Vagrant;
• Create a workspace by cloning chef-repo; go under chef-repo, create .chef directory; git init with
github;
• Download/clone cookbooks, modify recipes;
• Upload cookbooks to (Hosted-)Chef Server;
• Test recipe locally with Vagrant;
• Create node per image #; bootstrap node and create infrastructure.
6/21/12 Creative Common BY-NC-SA 6
Install Chef with Hosted-Chef Server
6/21/12 Creative Common BY-NC-SA 7
Knife Configuration
6/21/12 Creative Common BY-NC-SA 8
Cookbooks Repositories
http://community.opscode.com/
6/21/12 Creative Common BY-NC-SA 9
Chef Conceptual UML(work in Progress)
6/21/12 Creative Common BY-NC-SA 10
Cookbook/Recipe
Structure
6/21/12 Creative Common BY-NC-SA 11
Vagrant Recipe
6/21/12 Creative Common BY-NC-SA 12
Create a Server in EC2
knife ec2 server create  #use knife-ec2 to create a server
- r “role[webserver]”  #use recipe in role “webserver”
- i ami-2d4aa444 –flavor m1.small  #use image and settings here
- g TestChef, default  #use security group defined in ec2
- x ubuntu  #user name is ubuntu
- n server01  #server name is server01- n server01  #server name is server01
6/21/12 Creative Common BY-NC-SA 13
Demo
6/21/12 Creative Common BY-NC-SA 14
Thank You for Listening.
6/21/12 Creative Common BY-NC-SA 15
6/21/12 Creative Common BY-NC-SA 16
6/21/12 Creative Common BY-NC-SA 17
Role of Configuration Tools in IaaS
6/21/12 Creative Common BY-NC-SA 18

More Related Content

PPTX
Meetup 23 - 02 - OVN - The future of networking in OpenStack
PDF
VietOpenStack meetup 7th High Performance VM
PPTX
How OpenStack is Built - Anton Weiss - OpenStack Day Israel 2016
PDF
Keystone at openstack multi sites
PDF
Running and Managing Kubernetes on OpenStack
PDF
Zephyr: Creating a Best-of-Breed, Secure RTOS for IoT
PDF
OpenDaylight OpenStack Integration
PDF
How to Integrate Kubernetes in OpenStack
Meetup 23 - 02 - OVN - The future of networking in OpenStack
VietOpenStack meetup 7th High Performance VM
How OpenStack is Built - Anton Weiss - OpenStack Day Israel 2016
Keystone at openstack multi sites
Running and Managing Kubernetes on OpenStack
Zephyr: Creating a Best-of-Breed, Secure RTOS for IoT
OpenDaylight OpenStack Integration
How to Integrate Kubernetes in OpenStack

What's hot (20)

PDF
Neutron high availability open stack architecture openstack israel event 2015
PDF
Multi-Cloud Orchestration for Kubernetes with Cloudify
PPTX
Can the Open vSwitch (OVS) bottleneck be resolved? - Erez Cohen - OpenStack D...
PDF
VOID19 Cloud Transformation at Viettel accelerate faster with open infrastru...
PPTX
OpenContrail deployment experience
PDF
LF_OVS_17_OVN at Nutanix
PPTX
Role of sdn controllers in open stack
PDF
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
PDF
Deploying kubernetes at scale on OpenStack
PDF
Deploying WSO2 Middleware on Kubernetes
PPTX
OpenStack & OpenContrail in Production
PDF
LinuxTag 2013
PPTX
OpenStack HA
PDF
Contrail Virtual Execution Platform
PDF
OpenStack and OpenDaylight: An Integrated IaaS for SDN/NFV
PPTX
Cinder Updates - Liberty Edition
PDF
WSO2 Kubernetes Reference Architecture - Nov 2017
PPTX
Getting Started with Kafka on k8s
PPTX
Neutron Updates - Kilo Edition
Neutron high availability open stack architecture openstack israel event 2015
Multi-Cloud Orchestration for Kubernetes with Cloudify
Can the Open vSwitch (OVS) bottleneck be resolved? - Erez Cohen - OpenStack D...
VOID19 Cloud Transformation at Viettel accelerate faster with open infrastru...
OpenContrail deployment experience
LF_OVS_17_OVN at Nutanix
Role of sdn controllers in open stack
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
Deploying kubernetes at scale on OpenStack
Deploying WSO2 Middleware on Kubernetes
OpenStack & OpenContrail in Production
LinuxTag 2013
OpenStack HA
Contrail Virtual Execution Platform
OpenStack and OpenDaylight: An Integrated IaaS for SDN/NFV
Cinder Updates - Liberty Edition
WSO2 Kubernetes Reference Architecture - Nov 2017
Getting Started with Kafka on k8s
Neutron Updates - Kilo Edition
Ad

Similar to IaaS with Chef (20)

PDF
The path to a serverless-native era with Kubernetes
PDF
stackconf 2020 | The path to a Serverless-native era with Kubernetes by Paolo...
PDF
Deploying WSO2 Middleware on Containers
PDF
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
PDF
Ruby on microsoft azure april 2014
PDF
IBM InterConnect 2015 - IIB in the Cloud
PDF
Cloud Stack with Bare Metal, presented in Apache Con Europe 2016
PPTX
Azure handsonlab
PPTX
Building and Managing Reliable Infrastructure with Chef and Chef Delivery
PDF
Migrating deployment processes and Continuous Integration at SAP SE
PDF
Саша Белецкий "Continuous Delivery в продуктовой разработке"
PPTX
[20200720]cloud native develoment - Nelson Lin
PDF
Chef and OpenStack Workshop from ChefConf 2013
PDF
From airflow to google cloud composer
PPTX
AKS - Azure Kubernetes Services - kubernetes meetup may 2018
PPTX
Install Oracle FMW - 'Mostly Scripted'
PPTX
CI/CD Development in Kubernetes - Skaffold
PDF
Continuous Integration & Continuous Delivery
PDF
Dev Ops
PDF
Architectural caching patterns for kubernetes
The path to a serverless-native era with Kubernetes
stackconf 2020 | The path to a Serverless-native era with Kubernetes by Paolo...
Deploying WSO2 Middleware on Containers
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
Ruby on microsoft azure april 2014
IBM InterConnect 2015 - IIB in the Cloud
Cloud Stack with Bare Metal, presented in Apache Con Europe 2016
Azure handsonlab
Building and Managing Reliable Infrastructure with Chef and Chef Delivery
Migrating deployment processes and Continuous Integration at SAP SE
Саша Белецкий "Continuous Delivery в продуктовой разработке"
[20200720]cloud native develoment - Nelson Lin
Chef and OpenStack Workshop from ChefConf 2013
From airflow to google cloud composer
AKS - Azure Kubernetes Services - kubernetes meetup may 2018
Install Oracle FMW - 'Mostly Scripted'
CI/CD Development in Kubernetes - Skaffold
Continuous Integration & Continuous Delivery
Dev Ops
Architectural caching patterns for kubernetes
Ad

More from Richard Kuo (15)

PPTX
Machine Learning - Convolutional Neural Network
PPTX
View Orchestration from Model Driven Engineering Prospective
PPT
Telecom Infra Project study notes
PPTX
5g, gpu and fpga
PDF
Learning
PPTX
Kubernetes20151017a
PDF
Ontology, Semantic Web and DBpedia
PDF
SDN and NFV
PDF
Graph Database
PDF
UML, OWL and REA based enterprise business model 20110201a
PPTX
Open v switch20150410b
PPTX
Spark Study Notes
PDF
Docker and coreos20141020b
PDF
Git studynotes
PDF
Cloud computing reference architecture from nist and ibm
Machine Learning - Convolutional Neural Network
View Orchestration from Model Driven Engineering Prospective
Telecom Infra Project study notes
5g, gpu and fpga
Learning
Kubernetes20151017a
Ontology, Semantic Web and DBpedia
SDN and NFV
Graph Database
UML, OWL and REA based enterprise business model 20110201a
Open v switch20150410b
Spark Study Notes
Docker and coreos20141020b
Git studynotes
Cloud computing reference architecture from nist and ibm

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Electronic commerce courselecture one. Pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Advanced methodologies resolving dimensionality complications for autism neur...
Understanding_Digital_Forensics_Presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Electronic commerce courselecture one. Pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation theory and applications.pdf
Encapsulation_ Review paper, used for researhc scholars
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

IaaS with Chef

  • 1. Build Cloud Computing Infrastructure with Chef and VagrantInfrastructure with Chef and Vagrant General Discussion Richard Kuo, Professional-Technical Architect, Cloud Realization, New Technology Product Development Engineering
  • 2. Outline • Infrastructure As Code • Configuration Tools • Cookbook Structure • Local Cloud and Remote Cloud• Local Cloud and Remote Cloud • Sample Code • References 6/21/12 Creative Common BY-NC-SA 2
  • 3. Infrastructure As Code • Modularized, reusable document • Change control • Reflect the change of business environment • Programmatically provisioning & configuration• Programmatically provisioning & configuration 6/21/12 Creative Common BY-NC-SA 3
  • 4. Nodes Are Weaved(from chef video) 6/21/12 Creative Common BY-NC-SA 4
  • 5. Why Configuration Tools • Automation • Reduce management complexity • Version control programs • Generate configuration• Generate configuration • Maintain the state of resources 6/21/12 Creative Common BY-NC-SA 5
  • 6. Work Flow • Install version control - git; https://github.com/ • Install RVM then Ruby; • Install RubyGems; • Register an Hosted-Chef Platform account, and download credentials and default configuration file: knife.rb; (optional-local chef-solo) • Register account on cloud provider and download the credentials. • Install configuration tool - Chef; http://wiki.opscode.com/display/chef/Installation • Move credentials .chef directory and modify knife.rb; and test connectivity to chef-server; • Setup client-configuation, by executing “knife configure client ./client-config”, and check it diff• Setup client-configuation, by executing “knife configure client ./client-config”, and check it diff between ORGNAME-validator.pem and validation.pem; make a copy to /etc/chef/; copy ORGNAME- validator.pem to ~/.ssh/validation.pem; • Install knife plugins for different cloud providers, i.e. knife-ec2, knife-rackspace, etc; • Install Vagrant; • Create a workspace by cloning chef-repo; go under chef-repo, create .chef directory; git init with github; • Download/clone cookbooks, modify recipes; • Upload cookbooks to (Hosted-)Chef Server; • Test recipe locally with Vagrant; • Create node per image #; bootstrap node and create infrastructure. 6/21/12 Creative Common BY-NC-SA 6
  • 7. Install Chef with Hosted-Chef Server 6/21/12 Creative Common BY-NC-SA 7
  • 10. Chef Conceptual UML(work in Progress) 6/21/12 Creative Common BY-NC-SA 10
  • 12. Vagrant Recipe 6/21/12 Creative Common BY-NC-SA 12
  • 13. Create a Server in EC2 knife ec2 server create #use knife-ec2 to create a server - r “role[webserver]” #use recipe in role “webserver” - i ami-2d4aa444 –flavor m1.small #use image and settings here - g TestChef, default #use security group defined in ec2 - x ubuntu #user name is ubuntu - n server01 #server name is server01- n server01 #server name is server01 6/21/12 Creative Common BY-NC-SA 13
  • 15. Thank You for Listening. 6/21/12 Creative Common BY-NC-SA 15
  • 16. 6/21/12 Creative Common BY-NC-SA 16
  • 17. 6/21/12 Creative Common BY-NC-SA 17
  • 18. Role of Configuration Tools in IaaS 6/21/12 Creative Common BY-NC-SA 18