Skip to content

Commit 5649e19

Browse files
committed
Merge pull request #6 from hardening-io/update-common
Add Puppet4 + update common
2 parents 5e6cd42 + ff92915 commit 5649e19

File tree

4 files changed

+37
-10
lines changed

4 files changed

+37
-10
lines changed

.kitchen.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ platforms:
2121
driver_config:
2222
box: opscode-centos-6.5
2323
box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box
24-
# - name: oracle-6.4
25-
# driver_config:
26-
# box: oracle-6.4
27-
# box_url: https://storage.us2.oraclecloud.com/v1/istoilis-istoilis/vagrant/oel64-64.box
24+
- name: oracle-6.4
25+
driver_config:
26+
box: oracle-6.4
27+
box_url: https://storage.us2.oraclecloud.com/v1/istoilis-istoilis/vagrant/oel64-64.box
2828
- name: oracle-6.5
2929
driver_config:
3030
box: oracle-6.5
@@ -37,6 +37,10 @@ platforms:
3737
driver_config:
3838
box: debian-7
3939
box_url: https://s3.eu-central-1.amazonaws.com/ffuenf-vagrantboxes/debian/debian-7.7.0-amd64_virtualbox.box
40+
- name: debian-8
41+
driver_config:
42+
box: debian-8
43+
box_url: https://s3.eu-central-1.amazonaws.com/ffuenf-vagrantboxes/debian/debian-8.0.0-amd64_virtualbox.box
4044
suites:
4145
- name: default
4246
manifest: site.pp

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@ rvm:
22
- 1.8.7
33
- 1.9.3
44
- 2.0.0
5+
- 2.1.0
56
language: ruby
67
bundler_args: --without development integration openstack
78
env:
9+
- PUPPET_VERSION="~> 4.0.0"
10+
- PUPPET_VERSION="~> 3.7.5"
11+
- PUPPET_VERSION="~> 3.6.2"
812
- PUPPET_VERSION="~> 2.7.0"
9-
- PUPPET_VERSION="~> 3.0.0"
10-
- PUPPET_VERSION="~> 3.5.0"
11-
- PUPPET_VERSION="~> 3.6.0"
1213
matrix:
1314
fast_finish: true
1415
exclude:
1516
- rvm: 1.9.3
1617
env: PUPPET_VERSION="~> 2.7.0"
1718
- rvm: 2.0.0
1819
env: PUPPET_VERSION="~> 2.7.0"
20+
- rvm: 2.1.0
21+
env: PUPPET_VERSION="~> 2.7.0"
22+
- rvm: 1.8.7
23+
env: PUPPET_VERSION="~> 4.0.0"
24+
- rvm: 1.9.3
25+
env: PUPPET_VERSION="~> 4.0.0"
1926
- rvm: 2.0.0
20-
env: PUPPET_VERSION="~> 3.0.0"
27+
env: PUPPET_VERSION="~> 4.0.0"

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ end
1111

1212
group :test do
1313
gem 'rake'
14+
# bugfix for ruby 1.8, puppet+rspec interplay
15+
# https://github.com/rspec/rspec-core/issues/1864
16+
if RUBY_VERSION.start_with? '1.8'
17+
gem 'rspec', '~> 3.1.0', :require => false
18+
end
1419
gem 'rspec-puppet'
1520
# avoid NoMethodError: private method `clone' called for #<RuboCop::Cop::CopStore:0x00000104e286c8>
1621
gem 'puppetlabs_spec_helper', :git => 'https://github.com/ehaselwanter/puppetlabs_spec_helper'
1722
gem 'puppet-lint'
18-
gem 'rubocop', '~> 0.27' if RUBY_VERSION > '1.9.2'
23+
gem 'rubocop', '~> 0.31' if RUBY_VERSION > '1.9.2'
1924
end
2025

2126
group :development do

Guardfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# encoding: utf-8
22

3+
# Guardfile
4+
35
guard 'rake', :task => 'lint' do
4-
watch(/^.*$/)
6+
watch(%r{^manifests/.*$})
7+
watch(%r{^templates/.*$})
8+
end
9+
10+
guard 'rake', :task => 'spec' do
11+
watch(%r{^spec/(classes|defines)/.+_spec\.rb$})
12+
watch('spec/spec_helper.rb')
13+
watch(%r{^lib/.*$})
14+
watch(%r{^manifests/.*$})
15+
watch(%r{^templates/.*$})
516
end

0 commit comments

Comments
 (0)