Puppet 101 Basic installation for master and agent machines on Ubuntu with VMware Workstation

Similar documents
Puppet 101 Basic installation for master and agent machines on Ubuntu with VMware Workstation

OpenStack Havana All-in-One lab on VMware Workstation

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Wowza Media Server Pro for Riverbed Steelhead. Installation Guide

Setting up Docker Datacenter on VMware Fusion

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on a Virtual Machine

UDS Enterprise Free & Evaluation Edition. Lab UDS Enterprise + VMware vsphere + RDP/XRDP

UDS Enterprise Free & Evaluation Edition. Lab UDS Enterprise + VMware vsphere + RDP/XRDP

Puppet on the AWS Cloud

Installing and Using Docker Toolbox for Mac OSX and Windows

Linux application virtualization with UDS Enterprise. Versión Rev. 1

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

Cisco Modeling Labs OVA Installation

OpenStack Lab on VMware Workstation Setting up the All-In-One VM

Installing Altiris Agent on Ubuntu

Implementing Infoblox Data Connector 2.0

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

OPENSTACK CLOUD RUNNING IN A VIRTUAL MACHINE. In Preferences, add 3 Host-only Ethernet Adapters with the following IP Addresses:

Cleaning up Exited Docker Containers with Help from Awk and Grep

VisibleThread - Server Configuration Help

1) Use either Chrome of Firefox to access the VMware vsphere web Client. FireFox

Setting Up U P D AT E D 1 / 3 / 1 6

Install and Configure FindIT Network Manager and FindIT Network Probe on a VMware Virtual Machine

UDS Enterprise Preparing Templates Xubuntu X2Go + UDS Actor

Installation of the DigitalSystemsVM virtual machine

UDS Enterprise Preparing Templates Xubuntu NX * + UDS Actor

1) Use either Chrome of Firefox to access the VMware vsphere web Client. FireFox

UDS Enterprise- Preparing Templates Xubuntu XRDP UDS Actor

Start the Ubuntu Linux VM in VirtualBox. In the VM X Window session, logon as the default user osboxes.

HySecure Quick Start Guide. HySecure 5.0

How to Deploy a Barracuda NG Vx using Barracuda NG Install on a VMware Hypervisor

Running the vsan Witness Appliance in vcloud Air First Published On: Last Updated On:

Using PlateSpin PowerConvert to Perform Windows-to-Virtual Conversions into Virtual Iron Servers

Deploying Citrix Access Gateway VPX with Web Interface 5.4

Creating a Unifi Lab Network on your existing network

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

Rancher Part 4: Using the Catalog Example with GlusterFS

Unit- 5. Linux Systems

Installing and Configuring vcloud Connector

CIS 231 Windows 7 Install Lab #2

CIS 231 Windows XP (SP3) Install Lab #3 Virtual Machines

Product Version 1.1 Document Version 1.0-A

Power IQ DCIM Monitoring Evaluation Copy A Step-By-Step Guide

VMware Horizon View 5.2 Reviewer s Guide REVIEWER S GUIDE

202 Lab Introduction Connecting to the Lab Environment

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

Table of Contents DevOps Administrators

Using VMware vsphere Web Client with Symantec ApplicationHA and Symantec Cluster Server (VCS)

Installing the Cisco Virtual Network Management Center

Parallel Programming

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Comodo Dome Data Protection Software Version 3.8

Table of Contents. Configure and Manage Logging in to the Management Portal Verify and Trust Certificates

Ansible Tower Quick Setup Guide

Azure 209x Practical Exercises Overview

FireFox. CIS 231 Windows 2012 R2 Server Install Lab #1

Raspberry PI 'How-To' Series

The instructions in this document are applicable to personal computers running the following Operating Systems:

Agility2018-TCPdump Documentation

Citrix XenApp / XenDesktop Setup Procedure For Q-Tel Workstation

Virtual Appliance User s Guide

dctrack Quick Setup Guide Virtual Machine Requirements Requirements Requirements Preparing to Install dctrack

Configuration Management - Using Puppet. lctseng / Liang-Chi Tseng

CTEC1863/2018F Bonus Lab Page 1 of 5

Windows Subsystem for Linux Guide Documentation

I'm Andy Glover and this is the Java Technical Series of. the developerworks podcasts. My guest is Brian Jakovich. He is the

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

Deploying Cisco UCS Central

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

SOA Software API Gateway Appliance 6.3 Administration Guide

VMWare Workstation Installation. Microsoft Windows Server 2008 Enterprise with Service Pack 2

The Ip address / Name value should be: srvvcenter-cis

WatchGuard Dimension v2.0 Update 2 Release Notes. Introducing New Dimension Command. Build Number Revision Date 13 August 2015

SaaSaMe Transport Workload Snapshot Export for. Alibaba Cloud

Installing Nagios Log Server with VMware Workstation Player

SQL Server vnext on Linux Ubuntu - Part 1

Installing and Configuring Devstack Newton for Infoblox Integration

FireFox. CIS 231 Windows 10 Install Lab # 3. 1) Use either Chrome of Firefox to access the VMware vsphere web Client.

How To Start Mysql Using Linux Command Line Client In Ubuntu

Using a Raspberry Pi to Remote Access a Windows Computer

Create a pfsense router for your private lab network template

Lab 1: Accessing the Linux Operating System Spring 2009

Chapter Summaries and Reading

How to Secure SSH with Google Two-Factor Authentication

Contents Overview... 2 Part I Connecting to the VPN via Windows OS Accessing the Site with the View Client Installing...

Installing or Upgrading ANM Virtual Appliance

Being a puppet master

LOCAL WALLET (COLD WALLET):

ScaleArc for MySQL 3.0. VMware Deployment Guide

Upgrade from a Standalone Deployment to a Coresident Deployment (Cisco Unified Intelligence Center with Live Data and IdS)

SUSE Cloud Admin Appliance Walk Through. You may download the SUSE Cloud Admin Appliance the following ways.

McAfee MOVE AntiVirus Installation Guide. (McAfee epolicy Orchestrator)

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

DevOps Course Content

Jackson State University Department of Computer Science CSC / Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

1) Use either Chrome of Firefox to access the VMware vsphere web Client.

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

Infoblox Kubernetes1.0.0 IPAM Plugin

Creating a Virtual Network with Virt-manager

SCCM 1802 Install Guide using Baseline Media

Transcription:

Puppet 101 Basic installation for master and agent machines on Ubuntu 12.04 with VMware Workstation You don t have to go far to hear the word Puppet these days. Configuration management isn t just a new trend that is hitting IT environments. It is a methodology for stateful, repeatable, DevOps style management of your infrastructure. For the VMware folks, this is now a part of the vcloud ecosystem in a way because of the integration of Puppet into the vcloud Hybrid Service (vchs) that was recently announced. Most Common Question Nearly every single day I hear from someone Puppet looks cool, I need to figure out how to use it. This inevitably leads to the most common question: How do I get started with Puppet? Before you say I don t use Linux, don t worry. What I want to do here is to show you the simplest step-by-step way to install Ubuntu on a server and a client with Puppet server and a Puppet agent configuration. Let me be clear that our Puppet installation here isn t difficult, but it does require some time and you have to be sure to follow the process, albeit concise, without missing any steps. Two Flavors of Puppet to Start Off With There are two distinct types of Puppet deployment: Enterprise or Open Source. This leads to the next challenge for many, which is finding out which is the appropriate one to run with. Hint: They are both great to start with With the Puppet Enterprise environment (https://puppetlabs.com/puppet/puppet-enterprise/) you can deploy easily using the web dashboard, manage your environment with the full backing of the Puppet team. It has all sorts of reasons to make it an amazing fit for you. That being said, it is also a commercial product which comes with a license and support cost. This is not a problem for your real production deployment where you need/want that support, but we just want to kick the tires on it first to figure out how to use it. Enter Puppet Open Source (https://puppetlabs.com/puppet/puppet-open-source/) which lets us use the fully open source version of the product, and the price tag is a grand total of zero dollars. Well, capital expense is zero, but there are some requirements for running this which include comfort with the Linux environment. Basic Installation For Brand New Users I m going to use my VMware Workstation environment to start things off. I also have the Ubuntu 64- bit Server 12.04 LTS (Long Term Support) ISO file which I ll use for deploying. Before we get started, you need to go here to download that: http://www.ubuntu.com/download/server

Now that you have your requirements, let s install our two virtual guests which will be using DHCP (easiest deployment to get us started quickly) using the names puppetserver and puppetclient for our virtual machines. We will use the VMware Workstation easy install wizard to quickly deploy the guest OS. Install Our First VM (puppetserver) Using or VMware Workstation, we will create a new virtual guest by choosing File New Virtual Machine and using the steps below:

At this point you have to choose your username that will be your login account to the Ubuntu console. Type in your full name, a user name and a password:

Install Our Second VM (puppetclient) Rather than repeating all of our screen shots, just repeat the process as you did above, except you need to select puppetclient as the VM name in step 5.

Now that you have deployed your second machine, you can see the two guests in your VMware Workstation window. Yay! We have our two guest machines ready to start our Puppet deployment.

Configuring our Puppet Master (puppetserver) Log in to the console using the credentials you defined during the setup wizard. We will launch all commands using the sudo command which will elevate our privileges to launch each action. The first time you use sudo, you will be prompted for your credentials. Further sudo commands in the same session will use those cached credentials. Update the apt repositories with the apt-get utility sudo apt-get update Change the host name using sed (Linux stream editor) sudo sed -i s/ubuntu/puppetserver/g /etc/hostname Set our IP up for the network interface eth0 using nano (a fairly simple Linux editor). Once we edit the info with the format below, using your own IP information, we just type Ctrl-X, then type Y followed by pressing Enter to confirm the file name, save and exit. While I don t personally use nano, the general usage is simple for those just getting started. sudo nano /etc/network/interfaces Add a record to the Hosts file for our server and our client (use your own IP addresses of course) sudo nano /etc/hosts

Install Puppet sudo apt-get install -y puppetmaster Stop the puppetmaster service sudo service puppetmaster stop Remove the default certificate sudo rm -r /var/lib/puppet/ssl Reboot the server sudo reboot Log in to the console once the reboot is completed. We will do some tasks after our client is configured. That s it. No, really, that s the end of the server configuration. Next we configure our client machine Configuring our Puppet Agent (puppetclient) Now we log in to the console of our second guest which will become the agent managed machine. We will be performing the following steps: Update the apt repositories with the apt-get utility

sudo apt-get update Change the host name using sed (Linux stream editor) sudo sed -i s/ubuntu/puppetclient/g /etc/hostname Set our IP up for the network interface eth0 using nano (a fairly simple Linux editor). Once we edit the info with the format below, using your own IP information, we just type Ctrl-X, then type Y followed by pressing Enter to confirm the file name, save and exit. While I don t personally use nano, the general usage is simple for those just getting started. sudo nano /etc/network/interfaces Reboot to ensure the new IP and hostname take effect sudo reboot Log in to the console again Add a record to the Hosts file for our server and our client (use your own IP addresses of course) sudo nano /etc/hosts

Install Puppet sudo apt-get install -y puppet Add the puppetmaster server entry in the puppet.conf file. We will create an [agent] section and put an entry which says server = puppetmaster sudo nano /etc/puppet/puppet.conf Set the puppet agent to start automatically using sed sudo sed -i s/no/yes/g /etc/default/puppet

Restart the puppet agent sudo service puppet restart Now are client is fully configured. Let s go back to the puppetserver console and manage the puppet agent request which will have been created by restarting the services on the client. On the puppetserver console we list the pending certificates and then we sign the certificate with the requesting name attached. This is the sequence that we use: sudo puppet cert list sudo puppet cert sign agentname And now we have our Puppet server and Puppet client all ready to go!! We have lots of tasks we can do now, but we start with the basic step of creating our first manifest. Creating your site.pp file On your puppetserver you need to create your first manifest. With future articles we will do lots more than this, but the first step is to get your initial file started to test the running of the manifest against your new puppet client. sudo nano /etc/puppet/manifests/site.pp Add the following content shown in the image and save the file

Next we can either wait for the manifest to run at the next interval which we won t do because we are impatient Log into the puppet client console and initiate the puppet agent by restarting the service sudo service puppet restart Now we will run the puppet agent to test the connection sudo puppet agent test Yay! It worked. Let s confirm the file has shown up as we defined it in our site.pp manifest:

So now we have successfully completed a few tasks: 1. 2. 3. 4. 5. Installed our puppet server Installed a puppet client Connected the puppet client to the server Created a basic (very, very basic) manifest Run the manifest against our client This may not seem like a big accomplishment for some, but surprisingly there are many administrators who have little or no experience with using Linux systems, and the first few steps, although simple, can be daunting for some. In future posts we will take the next important steps of creating manifest modules, deploying the puppet client to a Microsoft Windows machine, and then getting into more detailed manifest configuration. Puppet Cheat Sheets We will use these for our next post as we start to build some basic manifests for testing out the various components. We can use these to help us dip our toes further into the water of Puppet automation. Puppet Labs Module Cheat Sheet http://docs.puppetlabs.com/module_cheat_sheet.pdf Puppet Labs Core Types Cheat Sheet http://docs.puppetlabs.com/puppet_core_types_cheatsheet.pdf

So read those guides and we will be adding some more flavor to our little Puppet test environment very soon! I hope that this is a helpful guide to get people started on your journey with puppet