Difference between revisions of "Puppet"

From wiki.tamerz.com
Jump to: navigation, search
(Created page with " == Setting up a Puppet development environment on MacOS == Install Homebrew: [https://brew.sh/ https://brew.sh/] Install [https://github.com/rbenv/rbenv rbenv]")
 
 
Line 1: Line 1:
  
 
== Setting up a Puppet development environment on MacOS ==
 
== Setting up a Puppet development environment on MacOS ==
 +
Install Puppet Development Kit (PDK): [https://puppet.com/download-puppet-development-kit https://puppet.com/download-puppet-development-kit]
 +
 
Install Homebrew: [https://brew.sh/ https://brew.sh/]
 
Install Homebrew: [https://brew.sh/ https://brew.sh/]
  
Install [https://github.com/rbenv/rbenv rbenv]
+
Install [https://github.com/rbenv/rbenv 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

Latest revision as of 09:03, 23 April 2018

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