File tree Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 11fixtures :
22 repositories :
33 " stdlib " : " https://github.com/puppetlabs/puppetlabs-stdlib.git"
4+ forge_modules :
5+ mount_core : " puppetlabs/mount_core"
46 symlinks :
57 " lvm " : " #{source_dir}"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ language: ruby
88bundler_args : ' --without development system_tests'
99
1010before_install :
11- - ' gem update --system'
11+ - ' gem update --system $RUBYGEMS_VERSION '
1212 - ' gem update bundler'
1313
1414script : ' bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'
@@ -17,9 +17,13 @@ matrix:
1717 fast_finish : true
1818 include :
1919 - rvm : 2.1.6
20- env : PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
20+ env : PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes" RUBYGEMS_VERSION=2.7.8
2121 - rvm : 2.3.1
2222 env : PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
23+ - rvm : 2.4.4
24+ env : PUPPET_GEM_VERSION="~> 5.0" STRICT_VARIABLES="yes"
25+ - rvm : 2.5.1
26+ env : PUPPET_GEM_VERSION="~> 6.0" STRICT_VARIABLES="yes"
2327
2428notifications :
2529 email : false
Original file line number Diff line number Diff line change 1515Facter . add ( 'lvm_vgs' ) do
1616 confine :lvm_support => true
1717
18- vgs = Facter ::Core ::Execution . execute ( 'vgs -o name --noheadings 2>/dev/null' , timeout : 30 )
19-
18+ if Facter . value ( :lvm_support )
19+ vgs = Facter ::Core ::Execution . execute ( 'vgs -o name --noheadings 2>/dev/null' , timeout : 30 )
20+ end
21+
2022 if vgs . nil?
2123 setcode { 0 }
2224 else
4648pv_list = [ ]
4749Facter . add ( 'lvm_pvs' ) do
4850 confine :lvm_support => true
49-
50- pvs = Facter ::Core ::Execution . execute ( 'pvs -o name --noheadings 2>/dev/null' , timeout : 30 )
51+ if Facter . value ( :lvm_support )
52+ pvs = Facter ::Core ::Execution . execute ( 'pvs -o name --noheadings 2>/dev/null' , timeout : 30 )
53+ end
5154
5255 if pvs . nil?
5356 setcode { 0 }
Original file line number Diff line number Diff line change 1111 {
1212 "name" : " puppetlabs/stdlib" ,
1313 "version_requirement" : " >= 4.13.1 < 6.0.0"
14+ },
15+ {
16+ "name" : " puppetlabs/mount_core" ,
17+ "version_requirement" : " >= 1.0.0 < 2.0.0"
1418 }
1519 ],
1620 "data_provider" : null ,
Original file line number Diff line number Diff line change 44
55# Parse the parameters
66# params = JSON.parse(STDIN.read)
7- params = JSON . parse ( File . read ( '/home/vagrant/mount_lv.json' ) )
7+ params = JSON . parse ( STDIN . read )
88
99# Set parameters to local variables and resolve defaults if required
1010volume_group = params [ 'volume_group' ]
You can’t perform that action at this time.
0 commit comments