Преглед изворни кода

set node user to avoid problems when ansible user is not root

tags/v1.4.0^0
Jonathan Cobb пре 3 година
родитељ
комит
2cb432a083
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      bubble-server/src/main/java/bubble/service/cloud/StandardNetworkService.java

+ 2
- 2
bubble-server/src/main/java/bubble/service/cloud/StandardNetworkService.java Прегледај датотеку

@@ -558,8 +558,8 @@ public class StandardNetworkService implements NetworkService {
"echo '" + METER_TICK_COPYING_ANSIBLE + "' && " +
"rsync -az -e \"ssh " + sshArgs + "\" . "+sshTarget+ ":" + ANSIBLE_DIR + " && " +

// ensure ansible dir is owned by root
"ssh "+sshArgs+" "+sshTarget+" chown -R root " + ANSIBLE_DIR + " && " +
// ensure ansible dir is owned by nodeUser
"ssh "+sshArgs+" "+sshTarget+" chown -R "+nodeUser+" " + ANSIBLE_DIR + " && " +

// run install_local.sh on remote host, installs ansible locally
"echo '" + METER_TICK_RUNNING_ANSIBLE + "' && " +


Loading…
Откажи
Сачувај