Fervent Coder

Coding Towards Utopia...by Rob Reynolds
posts - 278 , comments - 431 , trackbacks - 0

My Links


Rob Reynolds

Subscribe to Fervent Coder RSS
Subscribe to Fervent Coder by Email

About Me

I manage several open source projects. Need...
   ...package management for Windows?
   ...automated builds?
   ...database change management (migrations)?
   ...your application to check email?
   ...a monitoring utility?

I also write for

Like what you are reading? Want to buy me a cup of coffee?
PayPal - The safer, easier way to pay online!

Article Categories


Post Categories

Image Galleries


Hacking on Puppet in Windows: Running Puppet Commands Against the Source Code

This is not something one would normally do, but this is here for future reference for me.

First of all ensure puppet, facter and hiera source codes are all checked out from git and have the same top level directory.

Then you take the environment.bat file that is shipped with the puppet installer (in the bin directory), copy it somewhere that you have in the PATH and you edit the first two lines to change the PL_BASEDIR to your top level directory for all of those previous items.

SET PL_BASEDIR=C:\code\puppetlabs
REM Avoid the nasty \..\ littering the paths.

Then copy the puppet.bat file over to the same directory as your modified environment.bat file and you are money.

Don’t have those files? No problem, I’ve created a Gist for that.

Puppet for the Win[dows]!

Print | posted on Tuesday, October 1, 2013 3:35 PM | Filed Under [ Puppet ]



# re: Hacking on Puppet in Windows: Running Puppet Commands Against the Source Code

Or you can just `bundle exec puppet` from the puppet top-level directory. :)
10/1/2013 4:55 PM | Rob
Comments have been closed on this topic.

Powered by: