File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2+ .travis.yml :
3+ extras :
4+ - rvm : 1.8.7
5+ env : PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
6+ - rvm : 1.8.7
7+ env : PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
28spec/spec_helper.rb :
39 unmanaged : true
Original file line number Diff line number Diff line change 11---
2+ sudo : false
23language : ruby
34bundler_args : --without system_tests
45script : " bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
56matrix :
67 fast_finish : true
78 include :
9+ - rvm : 1.9.3
10+ env : PUPPET_GEM_VERSION="~> 3.4.0"
811 - rvm : 1.8.7
9- env : PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
10- - rvm : 1.8.7
11- env : PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
12+ env : PUPPET_GEM_VERSION="~> 3.0"
1213 - rvm : 1.9.3
1314 env : PUPPET_GEM_VERSION="~> 3.0"
14- - rvm : 2.0.0
15+ - rvm : 1.9.3
16+ env : PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
17+ - rvm : 2.1.5
1518 env : PUPPET_GEM_VERSION="~> 3.0"
19+ - rvm : 2.1.5
20+ env : PUPPET_GEM_VERSION="~> 3.4.0"
21+ - rvm : 2.1.5
22+ env : PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
23+ - rvm : 1.8.7
24+ env : PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
25+ - rvm : 1.8.7
26+ env : PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
1627notifications :
1728 email : false
Original file line number Diff line number Diff line change 11source ENV [ 'GEM_SOURCE' ] || "https://rubygems.org"
22
33group :development , :unit_tests do
4- gem 'rake' , :require => false
54 gem 'rspec-core' , '3.1.7' , :require => false
6- gem 'rspec-puppet' , '~> 1.0' , :require => false
75 gem 'puppetlabs_spec_helper' , :require => false
8- gem 'puppet-lint' , :require => false
96 gem 'simplecov' , :require => false
107 gem 'puppet_facts' , :require => false
118 gem 'json' , :require => false
Original file line number Diff line number Diff line change 11require 'puppetlabs_spec_helper/rake_tasks'
22require 'puppet-lint/tasks/puppet-lint'
33
4- PuppetLint . configuration . fail_on_warnings
4+ PuppetLint . configuration . fail_on_warnings = true
55PuppetLint . configuration . send ( 'relative' )
66PuppetLint . configuration . send ( 'disable_80chars' )
77PuppetLint . configuration . send ( 'disable_class_inherits_from_params_class' )
Original file line number Diff line number Diff line change 11#
22class ntp::config inherits ntp {
33
4- if $keys_enable {
5- $directory = ntp_dirname($keys_file )
4+ if $ntp:: keys_enable {
5+ $directory = ntp_dirname($ntp:: keys_file )
66 file { $directory:
7- ensure => directory ,
8- owner => 0,
9- group => 0,
10- mode => ' 0755' ,
7+ ensure => directory ,
8+ owner => 0,
9+ group => 0,
10+ mode => ' 0755' ,
1111 }
1212 }
1313
14- file { $config:
14+ file { $ntp:: config :
1515 ensure => file ,
1616 owner => 0,
1717 group => 0,
1818 mode => ' 0644' ,
19- content => template ($config_template ),
19+ content => template ($ntp:: config_template ),
2020 }
2121
2222}
Original file line number Diff line number Diff line change 11#
22class ntp::install inherits ntp {
33
4- if $package_manage {
4+ if $ntp:: package_manage {
55
6- package { $package_name:
7- ensure => $package_ensure ,
6+ package { $ntp:: package_name :
7+ ensure => $ntp:: package_ensure ,
88 }
99
1010 }
Original file line number Diff line number Diff line change 11#
22class ntp::service inherits ntp {
33
4- if ! ($service_ensure in [ ' running' , ' stopped' ]) {
4+ if ! ($ntp:: service_ensure in [ ' running' , ' stopped' ]) {
55 fail(' service_ensure parameter must be running or stopped' )
66 }
77
8- if $service_manage == true {
8+ if $ntp:: service_manage == true {
99 service { 'ntp' :
10- ensure => $service_ensure ,
11- enable => $service_enable ,
12- name => $service_name ,
10+ ensure => $ntp:: service_ensure ,
11+ enable => $ntp:: service_enable ,
12+ name => $ntp:: service_name ,
1313 hasstatus => true ,
1414 hasrestart => true ,
1515 }
Original file line number Diff line number Diff line change 411411 } )
412412 end
413413
414- it { expect { subject } . to raise_error (
415- /^ The ntp module is not supported on an unsupported based system./
414+ it { expect { catalogue } . to raise_error (
415+ /The ntp module is not supported on an unsupported based system./
416416 ) }
417417 end
418418 end
You can’t perform that action at this time.
0 commit comments