Select Git revision
check_haproxy_status
-
Hahn Axel (hahn) authoredHahn Axel (hahn) authored
sync_packagedir_to_puppet.php 781 B
<?php
/**
*
* FOR CRONJOB
* sync archive files to pupet master
*
*/
require_once("../public_html/deployment/config/inc_projects_config.php");
echo "========= SYNC archive files ==========\n\n";
if (array_key_exists('mirrorPackages', $aConfig) && count($aConfig['mirrorPackages']) ){
foreach (array_keys($aConfig["phases"]) as $sPhase){
echo "===== $sPhase \n";
foreach($aConfig['mirrorPackages'] as $sLabel=>$sTarget){
$sCmd="/usr/bin/rsync --delete -rv ".$aConfig["packageDir"]."/$sPhase/* $sTarget/$sPhase ; \n";
echo "--- $sLabel\n";
echo "\$ $sCmd\n";
$sOut=shell_exec($sCmd);
}
}
}
?>