Forge Home

vim_puppet

Setup vim plugins and packages for puppet development

9,010 downloads

7,795 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

  • 1.0.0 (latest)
  • 0.1.0
released Nov 18th 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 'waymilky-vim_puppet', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add waymilky-vim_puppet
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install waymilky-vim_puppet --version 1.0.0

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

waymilky/vim_puppet — version 1.0.0 Nov 18th 2015

vim_puppet

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with puppet
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how

Overview

Module to install basic packages (git, curl, vim, tar) and setup vim plugins to be used for puppet development

Module Description

Puppet class to install all require components to setup puppet development environment. It includes installation of curl, tar, git, vim plugins. puppet should be already installed in the system to be able to run puppet apply. Therefore, it must be run as root user.

This module depends https://github.com/ricciocri/vimrc.git repository for vim plugin installation.

Setup

Using puppet module puppet module install waymilky-vim_puppet

  • Install with default parameters:
class {'vim_puppet': }
  • Setup with specific parameters. Example: Disable puppet parser and disable lint warning on vim
 class {'vim_puppet':
   disable_puppet_parser => true,
   show_lint_warning     => false,
 }
  • Standalone setup with default parameters :
puppet apply -e "class {'vim_puppet':}"

What puppet affects

  • Packages - git, vim, tar, curl
  • Directories - /root/.vim (Takes a backup of existing to /root/.vim_backup)
  • Files - /root/.vimrc (Takes a backup of existing to /root/.vimrc)
  • Others - More details in Reference section

Setup Requirements OPTIONAL

Puppet should be already installed

Usage

Class Parameters can be overridden for custom need

  • [ disable_puppet_parser ]
    Disables puppet parser validate checks if set to false. Required, Default => false

  • [ disable_puppetlint ] Disables puppet-lint checks if set to false. Required, Default : false

  • [ exec_path ] Exec path used by exec resource Required, Default : [ '/usr/local/bin/', '/bin/', '/usr/bin' ]

  • [ misc_packages ] Array list of other packages required during puppet development Required, Default : ['vim','curl','tar','git']

Reference

This project uses and is dependent on below excellent sources:

TO DO

  • Test cases
  • ...