Igor Gajsin 9e79defcd4 fix a lot of typo and mistakes
Change-Id: I9668967b8ac4a817fb6dc00de0daeda47d0281ef
2016-08-03 19:51:56 +03:00

22 lines
574 B
Puppet

class manila_auxiliary::image (
$src_image = 'http://host/manila-service-image.qcow2',
$image = 'manila-service-image.qcow2',
){
file {'/tmp/upload_cirros.rb':
source => 'puppet:///modules/manila_auxiliary/upload_cirros.rb',
}->
exec {'wget_service_image':
command => "wget ${src_image} -O /tmp/${image}",
path => '/usr/bin',
}->
exec {'upload-service-image':
command => 'ruby /tmp/upload_cirros.rb',
path => '/usr/bin',
}->
exec {'del_service_image':
command => "/bin/rm /tmp/${image}",
path => '/usr/bin',
}
}