Skip to content

Scripts to setup a puppet virtual machine for demonstrations and presentations

Notifications You must be signed in to change notification settings

jeffmccune/puppet-demotools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Install
=============

branch=stable
host=vmhost.lan
ssh root@${host} bash -c "'(echo branch=${branch:=stable}; curl -o - http://github.com/jeffmccune/puppet-demotools/raw/${branch}/bin/rhel-vm-setup) | bash'"

For the demonstration
=====================
1: /demo/puppet-demotools/bin/puppet-setup-demo
2: /demo/puppet-demotools/bin/demo-puppetmasterd --reports=logversion,store
3: puppetd --test
4: View results in Splunk

Detailed Instructions
=====================

Install a new CentOS 5.5 system into a Virtual Machine

Optional: Update the SSH Public Key variable at the top of
modules/puppet-demo/manifests/init.pp

Optional: Update other variables in the module.

Copy rhel-vm-setup to the virtual machine.

Execute the rhel-vm-setup script with bash.

The rhel-vm-setup will:
* Install puppet from EPEL
* Install git
* Clone https://jeffmccune@github.com/jeffmccune/puppet-demotools.git
* Execute puppet-demotools/puppet-setup-demo

Debugging
=========
Ruby-debug is nice for debugging the log processors
This will help view available attributes and runtime
objects in ruby when the log is processed.

require 'rubygems'
require 'ruby-debug'; Debugger.start
...
debugger

Start puppetmasterd in the foreground with --no-daemonize

Interesting data in the log objects:
(rdb:70) ps log
#<Puppet::Util::Log:0x2b0d5a614df0
 @file="/demo/puppet-demotools/modules/ntp/manifests/init.pp",
 @level=:notice,
 @line=19,
 @message=
  "content changed '{md5}5baec8bdbf90f877a05f88ba99e63685' to '{md5}5baec8bdbf90f877a05f88ba99e63685'",
 @source="//ntp/File[/etc/ntp.conf]/ensure",
 @tags=["file", "class", "ntp", "node", "default", "main", "ensure", "notice"],
 @time=Tue May 25 05:55:01 -0400 2010,
 @version=
  "ref=\"refs/heads/jeff\" commit=\"751c3388c9a3ecffb6fa40493f58758548771ec2\"">

About

Scripts to setup a puppet virtual machine for demonstrations and presentations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages