Skip to content

Latest commit

 

History

History
115 lines (71 loc) · 3.52 KB

README.md

File metadata and controls

115 lines (71 loc) · 3.52 KB

-- 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 <[email protected]>

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: