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

- install command on ssh host was hardcoded

parent 366c5693
Branches
No related tags found
No related merge requests found
......@@ -1848,9 +1848,9 @@ class project {
'placeholder' => '',
);
if ($sPuppethost) {
$sCmd='ssh ' . $this->_aConfig["installPackages"]["user"] . '@' . $sPuppethost . ' echo OK 2>&1';
$sCmd='ssh ' . $this->_aConfig["installPackages"]["user"] . '@' . $sPuppethost . ' sudo puppet --version 2>&1';
$sOut=shell_exec($sCmd);
if (strlen($sOut)>3){
if (strlen($sOut)>7){
$sOut='FEHLER: <span class="error" title="'.$sCmd.'">'.$sOut.'</span>';
} else {
$sOut='<span class="ok">OK - SSH-Verbindung zu '.$sPuppethost.' erfolgreich.</span>';
......
......@@ -22,6 +22,7 @@ $aConfig=array(
// ssh install - if a host is given
'installPackages'=>array(
'user'=>'imldeployment',
'testcommand'=>'sudo puppet --version',
'command'=>'sudo puppet agent -t | fgrep -i Deploy',
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment