• Stars
    star
    501
  • Rank 88,002 (Top 2 %)
  • Language
    Vim Script
  • License
    Apache License 2.0
  • Created almost 14 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Puppet niceties for your Vim setup

vim-puppet

Build Status

Make vim more Puppet friendly!

Provides

  • Formatting based on the latest Puppetlabs Style Guide
  • Syntax highlighting compatible with puppet 4.x
  • Automatic => alignment
    • If you don't like that, add let g:puppet_align_hashes = 0 to your vimrc.
  • Ctags support
  • Doesn't require a bloated JRE
  • Doesn't take minutes to open

Additional useful plugins

  • vim-yardoc Syntax coloration for YARD tags and directives. It can also colorize the tags and directives in puppet files.
  • syntastic plugin for automatic syntax checking while in vim.
  • vim-snippets is a library of snippets for multiple languages, including Puppet. Works with both snipmate and ultisnips.
  • Tagbar plugin for Ctags support.

Installation

With Vim 8 packages:

git clone https://github.com/rodjek/vim-puppet.git ~/.vim/pack/plugins/start/vim-puppet

With Pathogen:

If you're using pathogen to manage your vim modules (and if you're not, why aren't you), you can simply add this as a submodule in your ~/.vim/bundle/ directory.

My entire home directory is a git repository, so for me it's simply a case of

git submodule add -f git://github.com/rodjek/vim-puppet.git .vim/bundle/puppet

If you're not using pathogen, you can just manually place the files in the appropriate places under ~/.vim/

With Plug

In your ~/.vimrc (or stdpath('config') . '/init.vim' for Neovim)

call plug#begin()
  rodjek/vim-puppet
call plug#end()

Testing

Testing is based on vader.vim testing framework, see: https://github.com/junegunn/vader.vim . To run full test suit use ./test/run-tests.sh, this will also download vader.vim plugin to project's folder.

More Repositories

1

puppet-lint

Check that your Puppet manifests conform to the style guide
Ruby
820
star
2

librarian-puppet

Ruby
693
star
3

rspec-puppet

RSpec tests for your Puppet manifests
Ruby
364
star
4

puppet-logrotate

Puppet logrotate module
Ruby
111
star
5

puppet-profiler

Ruby
104
star
6

puppet-graph

Easily create dependency graphs for your Puppet manifests
Ruby
34
star
7

grok

A ruby log event correlator
Ruby
20
star
8

puppet-pacemaker

Puppet module for managing Heartbeat2 & Pacemaker
Ruby
16
star
9

puppet-pygments-lexer

Pygments lexer for the Puppet DSL
Python
15
star
10

dotfiles

~tsharpe
Vim Script
13
star
11

erlesque

Pure Erlang Resque worker
Erlang
12
star
12

puppet-func

Turn your Puppetmaster into a Func Overlord and your Puppets into Func minions
7
star
13

iptables-gem

Create iptables rules from ruby data structures
Ruby
7
star
14

puppet-resolvconf

Generic types for managing /etc/resolv.conf with Puppet
Puppet
7
star
15

csvx

Enterprise ready CSV
Ruby
6
star
16

puppet-drbd

A Puppet module for managing DRBD resources
Ruby
5
star
17

murtan

Like all the other iptables ruleset generators, but not shit
Ruby
4
star
18

puppet-haproxy

Augeas
4
star
19

puppet-sensu

Ruby
3
star
20

puppet-rabbitmq

RabbitMQ module for Puppet
Ruby
3
star
21

flotate

Sinatra based collectd web interface with flot graphs
JavaScript
2
star
22

hapi

Generic HTTP API wrapper
Ruby
2
star
23

ahqdomsys

Ruby bindings for the AussieHQ Domain System API
Ruby
2
star
24

bundler-puppet

Ruby
2
star
25

puppet-ksplice

Puppet module for managing Ksplice Uptrack
2
star
26

curtain

bundler for puppet
Ruby
2
star
27

augeas-pygments-lexer

Pygments lexer for Augeas lenses
Python
2
star
28

terraform-puppet-example

HCL
1
star
29

wsd-cache

Locally cache your websequencediagrams.com diagrams
1
star
30

rodjek.github.com

pure rubbish
CSS
1
star
31

aussiesms

A Ruby wrapper for aussiesms.com.au
Ruby
1
star
32

puppet-lint-tutorial-check

Ruby
1
star
33

puppet-powerdns

1
star
34

bluster

Bluster is a library to cache Nagios objects in Redis.
Ruby
1
star
35

rageios

Resque + Nagios == Win?
Ruby
1
star
36

puppet-semanage

Untested type to wrap semanage functionality
Ruby
1
star
37

puppet-testing

An example repository for the Test Your Puppet Modules blog posts
Ruby
1
star
38

meld

Infrastructure event collection and correlation
Ruby
1
star