Pages

Categories

Archives

[Google]

Sponsored Links

Graphite::Netinstall.pp

define netinstall ( $url, $extracted_dir, $destination_dir, $owner = “root”, $group = “root”, $work_dir = “/var/tmp”, $extract_command = “tar -zxvf”, $preextract_command = “”, $postextract_command = “” ) {

$source_filename = urlfilename($url)

if $preextract_command { exec { “PreExtract $source_filename”: command => $preextract_command, before => Exec[“Extract $source_filename”], refreshonly => true, } }

exec { “Retrieve $url”: cwd […]