vim

Configure and manage vim

ULHPC DevOps Team

ULHPC

8,400 downloads

5,493 latest version

4.6 quality score

Version information

  • 0.2.1 (latest)
  • 0.2.0
  • 0.1.3
  • 0.1.2
released Apr 28th 2017
This version is compatible with:
  • Debian

Start using this module

Tags: vi, vim

Documentation

ULHPC/vim — version 0.2.1 Apr 28th 2017

-- mode: markdown; mode: auto-fill; fill-column: 80 --

Vim Puppet Module

Puppet Forge License Supported Platforms

Configure and manage vim

  Copyright (c) 2015 ULHPC Management Team <hpc-sysadmins@uni.lu>
  

Synopsis

Configure and manage vim This module implements the following elements:

  • classes: vim

The various operations of this repository are piloted from a Rakefile which assumes that you have RVM installed on your system.

Dependencies

See metadata.json. In particular, this module depends on

General Parameters

See manifests/params.pp

Overview and Usage

class vim

 include 'vim'

Librarian-Puppet / R10K Setup

You can of course configure ULHPC-sudo in your Puppetfile to make it available with Librarian puppet or r10k by adding the following entry:

 # Modules from the Puppet Forge
 mod "ULHPC/vim"

or, if you prefer to work on the git version:

 mod "ULHPC/vim", 
     :git => https://github.com/ULHPC/vim,
     :ref => production 

Issues / Feature request

You can submit bug / issues / feature request using the ULHPC/vim Puppet Module Tracker.

Developments / Contributing to the code

If you want to contribute to the code, you shall be aware of the way this module is organized. These elements are detailed on doc/contributing.md

You are more than welcome to contribute to its development by sending a pull request.

Tests on Vagrant box

The best way to test this module in a non-intrusive way is to rely on Vagrant. The Vagrantfile at the root of the repository pilot the provisioning of the vagrant box and relies on boxes generated through my vagrant-vms repository.
Once cloned, run

  $> rake packer:Debian:init
  

To create a template. Select the version matching the once mentioned on the Vagrantfile (7.6.0-amd64 for instance) Then run

  $> rake packer:Debian:build
  

This shall generate the vagrant box debian-7.6.0-amd64.box that you can then add to your box lists:

  $> vagrant box add debian-7.6.0-amd64  packer/debian-7.6.0-amd64/debian-7.6.0-amd64.box

Now you can run vagrant up from this repository to boot the VM, provision it to be ready to test this module (see the .vagrant_init.rb script). For instance, you can test the manifests of the tests/ directory within the VM:

  $> vagrant ssh 
  [...]
  (vagrant)$> sudo puppet apply -t /vagrant/tests/init.pp
  

Run vagrant halt (or vagrant destroy) to stop (or kill) the VM once you've finished to play with it.

Resources

Git

You should become familiar (if not yet) with Git. Consider these resources: