Browse Source

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

tags/v1.4.0^0
Jonathan Cobb 3 years ago
parent
commit
2cb432a083
1 changed files with 2 additions and 2 deletions
  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 View File

@@ -558,8 +558,8 @@ public class StandardNetworkService implements NetworkService {
"echo '" + METER_TICK_COPYING_ANSIBLE + "' && " + "echo '" + METER_TICK_COPYING_ANSIBLE + "' && " +
"rsync -az -e \"ssh " + sshArgs + "\" . "+sshTarget+ ":" + ANSIBLE_DIR + " && " + "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 // run install_local.sh on remote host, installs ansible locally
"echo '" + METER_TICK_RUNNING_ANSIBLE + "' && " + "echo '" + METER_TICK_RUNNING_ANSIBLE + "' && " +


Loading…
Cancel
Save