Skip to content

Instantly share code, notes, and snippets.

@skihero
Created June 25, 2012 09:25
Show Gist options
  • Save skihero/2987608 to your computer and use it in GitHub Desktop.
Save skihero/2987608 to your computer and use it in GitHub Desktop.
Start the puppet and ruby bundle, setting the right paths
#!/bin/bash
PUPPET_RUBY_DIR="/usr/local/puppetandruby"
PUPPET_MSTR_SERVER=" rov-master. .com"
# Let the path find puppet's ruby first
export PATH=${PUPPET_RUBY_DIR}/bin/:$PATH
# Set the GEM home and path for the puppet ruby
export GEM_HOME=${PUPPET_RUBY_DIR}/lib/ruby/gems/1.9.1/gems/
export GEM_PATH=${PUPPET_RUBY_DIR}/lib/ruby/gems/1.9.1/gems/
PUPPETD=${PUPPET_RUBY_DIR}/lib/ruby/gems/1.9.1/gems/bin/puppetd
${PUPPET_RUBY_DIR}/bin/ruby ${PUPPETD} --server ${PUPPET_MSTR_SERVER} --no-daemonize --waitforcert 20 -v -d --environment staging --trace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment