Wednesday, September 18, 2013

Installing puppet-lint on your Vagrant VirtualBox

BEFORE you commit your puppet stuff, you better "lint" it :

http://rubydoc.info/gems/puppet-lint/0.3.2/frames

gem install puppet-lint

Although there are ways to install a gem offline, it's a lot easier to configure a proxy:
export http_proxy=http://myuser:mypassword@myproxyhost:myproxyport
gem install puppet-lint
and then:
cd /tmp/vagrant-puppet/modules-0/osb/manifests
puppet-lint --with-filename instance.pp

instance.pp - ERROR: trailing whitespace found on line 17


No comments: