File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 41
41
foreman_proxy::remote_file { "${tftp_root_clean}/boot/${image_name}" :
42
42
remote_location => " ${source_url}${image_name} " ,
43
43
mode => ' 0644' ,
44
+ owner => $foreman_proxy::user ,
45
+ group => $foreman_proxy::group ,
44
46
} ~> exec { " untar ${image_name} " :
45
47
command => " tar xf ${image_name} " ,
46
48
path => ' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' ,
Original file line number Diff line number Diff line change 31
31
'foreman-proxy'
32
32
end
33
33
end
34
+ let ( :user ) { group }
34
35
35
36
describe 'without paramaters' do
36
37
it { should compile . with_all_deps }
62
63
it { should contain_foreman_proxy__feature ( 'Discovery' ) }
63
64
64
65
it 'should download and install tarball' do
65
- should contain_foreman_proxy__remote_file ( "#{ tftproot } /boot/fdi-image-latest.tar" ) .
66
- with_remote_location ( 'http://downloads.theforeman.org/discovery/releases/latest/fdi-image-latest.tar' )
66
+ should contain_foreman_proxy__remote_file ( "#{ tftproot } /boot/fdi-image-latest.tar" ) . with (
67
+ remote_location : 'http://downloads.theforeman.org/discovery/releases/latest/fdi-image-latest.tar' ,
68
+ owner : user ,
69
+ group : group ,
70
+ )
67
71
end
68
72
69
73
it 'should extract the tarball' do
You can’t perform that action at this time.
0 commit comments