Forge Home

puppet_dev_env

Sets up a complete puppet development environment

9,497 downloads

9,497 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.2 (latest)
released Mar 3rd 2015
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'landcareresearch-puppet_dev_env', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add landcareresearch-puppet_dev_env
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install landcareresearch-puppet_dev_env --version 0.1.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

landcareresearch/puppet_dev_env — version 0.1.2 Mar 3rd 2015

puppet_dev_env puppet module

Puppet Forge Bitbucket Build Status

About

Installs tools and configuration to support a puppet developer.

Requirements

  • Puppet installed locally.

Usage

###Classes and Defined Types

####Class: puppet_dev_env

Sets up various vim plugins and scripts.

Parameters within puppet_dev_env:

#####user The username to install the development environment Note, the user must already exist

#####user_home_dir The directory of the user.
Default: '/home/${user}'

Beginning with puppet_dev_env

The basic use case is as below:

    class { 'puppet_dev_env' :
      user => 'user_name',
    }

This sets up VIM configuration for the user specified. This assumes the user's home directory is /home/. It also installs the puppet-test script in /usr/local/bin.

If the user has a different home path, than use the following:

    class { 'puppet_dev_env' :
      user          => 'user_name',
      user_home_dir => 'path',
    }

Features

Install pathogen to easily install and manage vim plugins. Installs the following plugins by default: nerdtree, nerdtreetabs, tabular, vim-puppet, numbers. Also installs puppet-lint.

Commands

puppet-test

  • Usage: puppet-test [filename].pp
  • Function: Runs puppet parser and puppet lint on the file

graph-dot

  • Usage: graph-dot [input file][output file]
  • Function: converts the dot (generated by --graph via puppet apply) to a ps file.

VIM Shortcuts

    F3 - NumbersToggle
    F4 - NumbersOnOff
    F5 - NERDTreeToggle

License

GPL version 3

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, [see](http://www.gnu.org/licenses/).