Day 37: Getting Started with Chef

My previous posts have focused on how to use PowerShell DSC for Linux. Going forward, I will be posting about how to deploy and use the configuration management tool called Chef. The end goal of this series of posts on Chef will be showing how you can manage PowerShell DSC using Chef.

More information about Chef will be given in later posts, for now; we’ll go over how to quickly install a Chef Server.

 

Setting up an Enterprise Chef Server

You have the option of either setting up your own Chef Server onsite or having the product hosted for you by Chef. Below will be instructions on how to setup a Chef Server on Ubuntu 12.04, onsite.

1. Download the latest verson of Enterprise Chef Server from the following link: http://downloads.getchef.com/enterprise-chef/ubuntu/#/

2. After ensuring that your Ubuntu 12.04 Server has been networked and configured in DNS correctly, copy over the binaries to the Server and run the following command:

3. Run the following command to setup the initial configuration of Chef

4. Login to the Chef Server Web Interface. By default, it will be listening on port 80:

 

5. On your first login, you will be prompted to reset the admin password. Go ahead and do so.

 

 

Basic Ubuntu Network Configuration Sample

In case you are unfamiliar with configuring networking in Ubuntu 12.04, some sample data has been provided below.

Configure a Static IP Address in /etc/network/interfaces and using the sample data as a guide as shown below:

/etc/network/interfaces

 

Configure your DNS Settings in /etc/resolvconf/resolve.conf.d/base

/etc/resolvconf/resolve.conf.d/base

 

Configure the Ubuntu hosts file.

/etc/hosts

 

Reboot the server

 

Verify that your Ubuntu Server’s settings are resolving correctly.

 

Conclusion

This week’s post has demonstrated how to install the Chef Enterprise Server onsite in your environment. Next week, we’ll discuss how to setup a Chef Workstation.

 

Previous Installments

100 Days of DevOps with PowerShell

 

 

 

 

One thought on “Day 37: Getting Started with Chef

  1. Pingback: Getting Started with Chef Server 12 | DevOps, Automation & Monitoring

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.