SlideShare a Scribd company logo
1 of 2
Description:Thisisalogo ownedby
Chef Software,Inc.
The Chef software is used to streamline
the task of configuring& maintaininga
company's servers,and can integrate
with cloud platforms such
as Rackspaceand Amazon Elastic
Compute Cloud to automatically
provision and configurenew machines.
This Document contains the information about the daily faced issue or some identifiedcontents
during one environmentbuildup, thisis truly buildon chef server - workstation platform and have
beentestedin an working environment.
BOOTSTRAP FROM CHEF SERVER
DocumentVersion:1.0
Ownership:SuvadipMandal
1. Bootstrap from CHEF Workstation
1.1 First configure your chef server
 Configurationneedtobe done inknife.rbfile and client.rbfile
 .chef isa hiddenfolder(itwillcreate whenchef serverwasinstalled)
 Changesneedtobe done inhosts file meansneedtoadd<IP address><HOSTNAME>
*Don’t give ipaddressinthe <HOSTNAME>*
 Rememberif youare makingthese configurationforanywindowssystemasa client,
please don’tforgettomake changesin the hostsfile of windowsmachine too(Location
of windowsc:windowssystem32driversetchost)
Addthe belowlines:
<192.168.XXX.XXX(IPaddress)><space><hostname>
 Afterall the changesrun knife ssl fetchfromyouchef server,itwill fetchinyour.chef
directorybycreatingtrustedcertsfolder.
1.2 Configure the basic prerequisitesfor bootstrapfromchef workstation.
 Put chef-client..XX.rpminthe reposerver(needtoputinthe path
/var/www/html/create yourfolder)
 Go to path .chef directoryandcreate a folderbootstrapandwrite customtemplate in
.erb/.rbformat.
 To make custom client.rbaddthe below linesinyourcustomtemplate .erb:
> <%= bootstrap_directory%>client.rb(
<%= config_content%>
<%# Additional configoverrides -%>
<%= escape_and_echo('validation_key"c:/chef/custom-
validator.pem"') %>
)
 Run the knife bootstrapcommandfromchef workstation.
knife bootstrapwindowswinrm<HOSTNAME> --msi-url <"CUSTOM
REPO SERVERADDRESS"> --bootstrap-template
/root/.chef/bootstrap/windows-chef-client-msi.erb--winrm-user
Administrator

More Related Content

What's hot

Updates in the micro space
Updates in the micro spaceUpdates in the micro space
Updates in the micro spacekatya_todorova
 
Basics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaBasics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaSahil Davawala
 
Schema Upgradation from previous version to latest version in Oracle database
Schema Upgradation from previous version to latest version in Oracle databaseSchema Upgradation from previous version to latest version in Oracle database
Schema Upgradation from previous version to latest version in Oracle databaseRajendra Ladkat
 
MongoDB Server Provisioning - From 2 Months to 2 Minutes
MongoDB Server Provisioning - From 2 Months to 2 MinutesMongoDB Server Provisioning - From 2 Months to 2 Minutes
MongoDB Server Provisioning - From 2 Months to 2 MinutesMongoDB
 
Refresh development from productions
Refresh development from productionsRefresh development from productions
Refresh development from productionsOsama Mustafa
 
Automating Networking! Do I Have to Start at Ground Zero?
Automating Networking! Do I Have to Start at Ground Zero?Automating Networking! Do I Have to Start at Ground Zero?
Automating Networking! Do I Have to Start at Ground Zero?Puppet
 
Microsoft Windows Shared Storage on AWS
Microsoft Windows  Shared Storage on AWSMicrosoft Windows  Shared Storage on AWS
Microsoft Windows Shared Storage on AWSJulien Lecadou,MSc.
 
Immutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and TerraformImmutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and TerraformMichael Peacock
 
Zero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and TerraformZero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and TerraformAvi Networks
 
Capistrano - automate all the things
Capistrano - automate all the thingsCapistrano - automate all the things
Capistrano - automate all the thingsJohn Cleary
 
How to Write Chef Cookbook
How to Write Chef CookbookHow to Write Chef Cookbook
How to Write Chef Cookbookdevopsjourney
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformAjeet Singh
 
Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...
Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...
Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...bacongobbler
 
Two-Step Deployment with Rails
Two-Step Deployment with RailsTwo-Step Deployment with Rails
Two-Step Deployment with Railsdugsmith
 
Ansible Devops North East - slides
Ansible Devops North East - slides Ansible Devops North East - slides
Ansible Devops North East - slides InfinityPP
 
03 ansible towerbestpractices-nicholas
03 ansible towerbestpractices-nicholas03 ansible towerbestpractices-nicholas
03 ansible towerbestpractices-nicholasKhairul Zebua
 

What's hot (17)

Updates in the micro space
Updates in the micro spaceUpdates in the micro space
Updates in the micro space
 
Basics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaBasics of Ansible - Sahil Davawala
Basics of Ansible - Sahil Davawala
 
Schema Upgradation from previous version to latest version in Oracle database
Schema Upgradation from previous version to latest version in Oracle databaseSchema Upgradation from previous version to latest version in Oracle database
Schema Upgradation from previous version to latest version in Oracle database
 
MongoDB Server Provisioning - From 2 Months to 2 Minutes
MongoDB Server Provisioning - From 2 Months to 2 MinutesMongoDB Server Provisioning - From 2 Months to 2 Minutes
MongoDB Server Provisioning - From 2 Months to 2 Minutes
 
Refresh development from productions
Refresh development from productionsRefresh development from productions
Refresh development from productions
 
Automating Networking! Do I Have to Start at Ground Zero?
Automating Networking! Do I Have to Start at Ground Zero?Automating Networking! Do I Have to Start at Ground Zero?
Automating Networking! Do I Have to Start at Ground Zero?
 
Microsoft Windows Shared Storage on AWS
Microsoft Windows  Shared Storage on AWSMicrosoft Windows  Shared Storage on AWS
Microsoft Windows Shared Storage on AWS
 
Immutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and TerraformImmutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and Terraform
 
Zero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and TerraformZero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and Terraform
 
Capistrano - automate all the things
Capistrano - automate all the thingsCapistrano - automate all the things
Capistrano - automate all the things
 
How to Write Chef Cookbook
How to Write Chef CookbookHow to Write Chef Cookbook
How to Write Chef Cookbook
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platform
 
Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...
Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...
Docker-Vancouver Meetup - March 18, 2014 - Contain(erize) the tests - Mark Ei...
 
Two-Step Deployment with Rails
Two-Step Deployment with RailsTwo-Step Deployment with Rails
Two-Step Deployment with Rails
 
Ansible Devops North East - slides
Ansible Devops North East - slides Ansible Devops North East - slides
Ansible Devops North East - slides
 
03 ansible towerbestpractices-nicholas
03 ansible towerbestpractices-nicholas03 ansible towerbestpractices-nicholas
03 ansible towerbestpractices-nicholas
 
Chef
ChefChef
Chef
 

Similar to Bootstrap from CHEF Workstation

Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administratorsSharon James
 
Automated server farm installation using psconfig and stsadm dm300 - curry ...
Automated server farm installation using psconfig and stsadm   dm300 - curry ...Automated server farm installation using psconfig and stsadm   dm300 - curry ...
Automated server farm installation using psconfig and stsadm dm300 - curry ...Vickey Bird
 
APACHE
APACHEAPACHE
APACHEARJUN
 
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)Nicolas Brousse
 
Infrastructure as-code-guide-en-v6 299129
Infrastructure as-code-guide-en-v6 299129Infrastructure as-code-guide-en-v6 299129
Infrastructure as-code-guide-en-v6 299129Ai K
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installationfranbow
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2benjaminwootton
 
Azure handsonlab
Azure handsonlabAzure handsonlab
Azure handsonlabChef
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSharon James
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy Systemadrian_nye
 
How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?Zend by Rogue Wave Software
 
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2pasalapudi
 
Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...
Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...
Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...Amazon Web Services
 
Automating Compliance with InSpec - AWS North Sydney
Automating Compliance with InSpec - AWS North SydneyAutomating Compliance with InSpec - AWS North Sydney
Automating Compliance with InSpec - AWS North SydneyMatt Ray
 

Similar to Bootstrap from CHEF Workstation (20)

iac.pptx
iac.pptxiac.pptx
iac.pptx
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 
Automated server farm installation using psconfig and stsadm dm300 - curry ...
Automated server farm installation using psconfig and stsadm   dm300 - curry ...Automated server farm installation using psconfig and stsadm   dm300 - curry ...
Automated server farm installation using psconfig and stsadm dm300 - curry ...
 
Introduction to chef
Introduction to chefIntroduction to chef
Introduction to chef
 
APACHE
APACHEAPACHE
APACHE
 
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)
 
Infrastructure as-code-guide-en-v6 299129
Infrastructure as-code-guide-en-v6 299129Infrastructure as-code-guide-en-v6 299129
Infrastructure as-code-guide-en-v6 299129
 
Understand Chef
Understand ChefUnderstand Chef
Understand Chef
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2
 
Azure handsonlab
Azure handsonlabAzure handsonlab
Azure handsonlab
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administrators
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy System
 
How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?
 
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Cl221
Cl221Cl221
Cl221
 
DevOps and Chef improve your life
DevOps and Chef improve your life DevOps and Chef improve your life
DevOps and Chef improve your life
 
Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...
Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...
Automate and Scale Configuration Management with AWS OpsWorks - DEV331 - re:I...
 
Automating Compliance with InSpec - AWS North Sydney
Automating Compliance with InSpec - AWS North SydneyAutomating Compliance with InSpec - AWS North Sydney
Automating Compliance with InSpec - AWS North Sydney
 

Bootstrap from CHEF Workstation

  • 1. Description:Thisisalogo ownedby Chef Software,Inc. The Chef software is used to streamline the task of configuring& maintaininga company's servers,and can integrate with cloud platforms such as Rackspaceand Amazon Elastic Compute Cloud to automatically provision and configurenew machines. This Document contains the information about the daily faced issue or some identifiedcontents during one environmentbuildup, thisis truly buildon chef server - workstation platform and have beentestedin an working environment. BOOTSTRAP FROM CHEF SERVER DocumentVersion:1.0 Ownership:SuvadipMandal
  • 2. 1. Bootstrap from CHEF Workstation 1.1 First configure your chef server  Configurationneedtobe done inknife.rbfile and client.rbfile  .chef isa hiddenfolder(itwillcreate whenchef serverwasinstalled)  Changesneedtobe done inhosts file meansneedtoadd<IP address><HOSTNAME> *Don’t give ipaddressinthe <HOSTNAME>*  Rememberif youare makingthese configurationforanywindowssystemasa client, please don’tforgettomake changesin the hostsfile of windowsmachine too(Location of windowsc:windowssystem32driversetchost) Addthe belowlines: <192.168.XXX.XXX(IPaddress)><space><hostname>  Afterall the changesrun knife ssl fetchfromyouchef server,itwill fetchinyour.chef directorybycreatingtrustedcertsfolder. 1.2 Configure the basic prerequisitesfor bootstrapfromchef workstation.  Put chef-client..XX.rpminthe reposerver(needtoputinthe path /var/www/html/create yourfolder)  Go to path .chef directoryandcreate a folderbootstrapandwrite customtemplate in .erb/.rbformat.  To make custom client.rbaddthe below linesinyourcustomtemplate .erb: > <%= bootstrap_directory%>client.rb( <%= config_content%> <%# Additional configoverrides -%> <%= escape_and_echo('validation_key"c:/chef/custom- validator.pem"') %> )  Run the knife bootstrapcommandfromchef workstation. knife bootstrapwindowswinrm<HOSTNAME> --msi-url <"CUSTOM REPO SERVERADDRESS"> --bootstrap-template /root/.chef/bootstrap/windows-chef-client-msi.erb--winrm-user Administrator