Puppet Package Configuration Examples


1) Install the xpad package node "UT-9c8e99e3959e"{ package { "xpad": ensure => "installed"} } Example: generic@UT-9c8e99e3959e:~$ dpkg-query -l xpad dpkg-query: no packages found matching xpad generic@UT-9c8e99e3959e:~$ sudo puppet agent --test info: Caching catalog for ut-9c8e99e3959e info: Applying configuration version '1361592519' notice: /Stage[main]//Node[ut-9c8e99e3959e]/Package[xpad]/ensure: ensure changed 'purged' to 'present' notice: Finished catalog run in 18.87 seconds generic@UT-9c8e99e3959e:~$ … Continue reading Puppet Package Configuration Examples

Auto deploy Puppet Agent


Continue with my previous Puppet and Puppet dashboard installation, now I start to deploy the agent to all my Ubuntu desktops. I wrote a script to do the dirty work. Pre-requisite package: expect (no need if use passwordless ssh, but you need to change the script slightly). How to use: 1) Create the following 4 scripts … Continue reading Auto deploy Puppet Agent

Puppet-dashboard Installation


Continue with my previous Puppet Installation, here is how I installed the puppet dashboard which offers a web UI. Install puppet-dashboard sudo yum install puppet-dashboard Config /usr/share/puppet-dashboard/config/database.yml production: database: dashboard_production username: dashboard password: puppet encoding: utf8 adapter: mysql Create MySQL database for puppet-dashboard CREATE DATABASE dashboard_production CHARACTER SET utf8; CREATE USER 'dashboard'@'localhost' IDENTIFIED BY 'puppet'; GRANT … Continue reading Puppet-dashboard Installation

Puppet Installation


In my lab I have set up the CentOS 6.3 as the Puppet Master server, and Ubunt 12.10 as the Puppet agent. Install Puppet-Server on CentOS (Master) sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm sudo yum install puppet-server Install Puppet on Ubuntu (Agent) wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb sudo dpkg -i puppetlabs-release-precise.deb sudo apt-get update sudo apt-get install puppet  Specify the … Continue reading Puppet Installation