vim_puppet

Setup vim plugins and packages for puppet development

waymilky

waymilky

8,130 downloads

6,991 latest version

4.6 quality score

Version information

  • 1.0.0 (latest)
  • 0.1.0
released Nov 18th 2015
This version is compatible with:
  • RedHat
    ,
    CentOS
    ,
    Ubuntu

Start using this module

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
  • ...