Skip to content
Snippets Groups Projects
Commit afcec6a7 authored by hahn's avatar hahn
Browse files

ci - add page checkssh

parent bac6f77f
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ if(isset($aConfig['mirrorPackages']) && count($aConfig['mirrorPackages'])){
$sOut = '<h3>Puppet</h3>'
. '<ul>';
foreach ($aConfig['mirrorPackages'] as $sServer=>$aSettings) {
$sCmd = 'ssh ' . preg_replace('#\:\/.*#', '' , $aSettings['target']) . ' echo "hello from `hostname -f`"';
$sCmd = 'ssh ' . preg_replace('#\:\/.*#', '' , $aSettings['target']) . ' echo "hello from \`hostname -f\`"';
$sOut .= '<li><strong>' . $sServer . '</strong> ' . myExec($sCmd);
}
$sOut.='</ul>';
......@@ -73,7 +73,7 @@ foreach ($oPrj1->getProjects() as $sPrj) {
if ($sDeployhosts) {
$sOut .= '<li>' . $sDeployhosts . '<br>';
$sCmd = 'ssh ' . $aConfig["installPackages"]["user"] . '@' . $sDeployhosts . ' echo "hello from `hostname -f`"';
$sCmd = 'ssh ' . $aConfig["installPackages"]["user"] . '@' . $sDeployhosts . ' echo "hello from \`hostname -f\`"';
$sOut.= myExec($sCmd);
}
$sOut.='</ul>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment