Project

General

Profile

« Previous | Next » 

Revision c8bc8ea6

Added by Ewoud Kohl van Wijngaarden almost 10 years ago

Make module puppet-lint clean

This fixes #20.

View differences:

Rakefile
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send("disable_class_inherits_from_params_class")
PuppetLint.configuration.send("disable_80chars")
manifests/config.pp
# Configure TFTP
class tftp::config {
case $tftp::params::daemon {
manifests/init.pp
# Manage TFTP
class tftp inherits tftp::params {
class {'tftp::install':} ->
class {'tftp::config':} ~>
manifests/install.pp
# Install TFTP
class tftp::install {
package { $tftp::params::package:
ensure => installed,
manifests/params.pp
# TFTP defaults
class tftp::params {
case $::osfamily {
Debian: {
manifests/service.pp
# TFTP service
class tftp::service {
# No service needed if not daemonized
spec/classes/init_spec.rb
}
end
it { should compile.with_all_deps }
it 'should include classes' do
should contain_class('tftp::install')
should contain_class('tftp::config')

Also available in: Unified diff