Skip to content

Commit fa7de2b

Browse files
committed
fix puppet 4 tests
1 parent 028794a commit fa7de2b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

manifests/install.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
exec { "Make dir ${redis_build_dir}":
8484
command => "mkdir -p ${redis_build_dir}",
8585
creates => $redis_build_dir,
86-
path => $::path,
86+
path => ['/usr/bin', '/usr/sbin', '/bin', '/sbin'],
8787
cwd => '/',
8888
user => 'root',
8989
group => 'root',
@@ -101,7 +101,7 @@
101101
before => Anchor['redis::prepare_build'],
102102
command => "${download_tool} ${redis_download_url} | tar xz",
103103
creates => "${redis_build_dir}/redis-${::redis::install::redis_version}",
104-
path => $::path,
104+
path => ['/usr/bin', '/usr/sbin', '/bin', '/sbin'],
105105
cwd => $redis_build_dir,
106106
user => 'root',
107107
group => 'root',
@@ -116,7 +116,7 @@
116116
command => 'make',
117117
creates => "${redis_build_dir}/redis-${redis_version}/src/redis-server",
118118
cwd => "${redis_build_dir}/redis-${::redis::install::redis_version}/",
119-
path => $::path,
119+
path => ['/usr/bin', '/usr/sbin', '/bin', '/sbin'],
120120
user => 'root',
121121
group => 'root',
122122
}

0 commit comments

Comments
 (0)