From wiki.tamerz.com
Revision as of 09:03, 23 April 2018 by Tmctigue (Talk | contribs)

Jump to: navigation, search

Setting up a Puppet development environment on MacOS

Install Puppet Development Kit (PDK): https://puppet.com/download-puppet-development-kit

Install Homebrew: https://brew.sh/

Install rbenv:

   $ brew install rbenv
   $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

Close your terminal and open a new one to activate the new settings.

Install Ruby:

   $ rbenv install 2.4.1

Create a new module with PDK:

   $ pdk new module mymodule

Go into your module directory and run:

   $ rbenv local 2.4.1
   $ gem install bundle
   $ bundle install