About

Supporting the site

App Repository‎ > ‎

puppet-2.7.19

Overview

Puppet requires ruby (with json) and facter. Puppet is basically a collection of ruby scripts, and just needs to be packaged for the DroboFS.

Preparation

Make sure you have a cross-compiling virtual machine properly setup.

Compilation

No compilation is needed. The following steps are just making sure that the packaging is done right.

export DEST=/mnt/DroboFS/Shares/DroboApps/puppet
cd ~/code

wget -O facter-1.6.13.tar.gz http://puppetlabs.com/downloads/facter/facter-1.6.13.tar.gz
tar zxf facter-1.6.13.tar.gz
cd facter-1.6.13/
./install.rb --destdir=$DEST --bindir=/bin --sitelibdir=/lib/site_ruby --mandir=/share/man --ruby=/mnt/DroboFS/Shares/DroboApps/ruby/bin/ruby
cd ..

wget -O puppet-2.7.19.tar.gz http://puppetlabs.com/downloads/puppet/puppet-2.7.19.tar.gz
tar zxf puppet-2.7.19.tar.gz 
cd puppet-2.7.19/
wget -O install.rb.patch http://www.droboports.com/app-repository/puppet-2-7-19/install.rb.patch
patch install.rb install.rb.patch
RUBYLIB=$DEST/lib/site_ruby ./install.rb --destdir=$DEST --bindir=/bin --sbindir=/sbin --configdir=/etc/puppet --sitelibdir=/lib/site_ruby --mandir=/share/man --ruby=/mnt/DroboFS/Shares/DroboApps/ruby/bin/ruby --quick

Packaging

cd $DEST
chmod -R g+w etc
~/bin/package.sh

Installing

Download the TGZ file below and place it in you DroboApps share. If you do not have SSH access, reboot your Drobo. Otherwise, SSH in and type:

/usr/bin/DroboApps.sh install

Final remarks

This is not a conventional DroboApp in the sense that once installed, it is ready for use. This one just makes the puppet executables available for further use, and does not attempt to change the DroboFS configuration in any way.

Configuration of puppet is a very complicated process, and the files in this DroboApp can be used to setup a puppet client or server.

In particular, there are two important things missing:

  1. A service.sh script to autostart the puppet daemon on boot.
  2. The environment variable required to use the scripts. The commands in this DroboApp will only work if the RUBYLIB variable is set like this:
export RUBYLIB=/mnt/DroboFS/Shares/DroboApps/puppet/lib/site_ruby

Please visit the DroboSpace forums to leave your comments, suggestions and feedback.

ċ
install.rb.patch
Download
  1k v. 1 Oct 9, 2012, 4:42 AM Ricardo Padilha
ċ
puppet.tgz
Download
  774k v. 1 Oct 9, 2012, 4:43 AM Ricardo Padilha
Comments