gdeploy icon indicating copy to clipboard operation
gdeploy copied to clipboard

Cannot us when root login disabled.

Open kristvanbesien opened this issue 9 years ago • 5 comments

gdeploy cannot be used when root login in disabled. Disabling root login is a common security measure that many sites enforce. When however password less login for a non root user is available, and this user can do sudo then gdeploy ought to be able to work, as ansible can work in such an environment.

All that is probalby needed is replace: "remote_user: root" with "become: true" in all the playbooks.

I tried this myself, and like this I cold use gdeploy with a non root user.

kristvanbesien avatar Jan 10 '17 10:01 kristvanbesien

Thanks for this input. We had chosen to use root as gluster wanted to user to be root to work. We had not explored the sudo options. I will work on this for future releases.

sac avatar Jan 12 '17 08:01 sac

+1 on this - this is a hard requirement and was promised to customers from the Console folks (which will rely on you to implement this) The become: true method should work seamless.

Ack! Will do this, should be available for next release.

mulbc avatar Jun 30 '17 11:06 mulbc

@zeichenanonym a workaround is to use -u userB -b on the command line..this normally works even with playbooks written for root use. but I do agree the playbooks would ideally handle this either way. it is a deficiency in how ansible works imo

japplewhite avatar Jul 03 '17 13:07 japplewhite

@japplewhite How is this ansible's fault if you specify explicitly that it should use the root user? Will the Console use the -u and -b switch to enable non-root usage?

mulbc avatar Jul 03 '17 15:07 mulbc

+1, it would help me a lot if gdeploy could leverage sudo

johnsimcall avatar Jan 30 '18 20:01 johnsimcall