rhtyd commented on a change in pull request #2211: CLOUDSTACK-10013: Migrate 
systemvmtemplate to Debian9
URL: https://github.com/apache/cloudstack/pull/2211#discussion_r132432437
 
 

 ##########
 File path: tools/appliance/definitions/systemvmtemplate/configure_login.sh
 ##########
 @@ -23,11 +23,12 @@ function add_admin_group() {
   groupadd -f -r admin
 }
 
-function configure_cloud_user() {
+function configure_user() {
   usermod -a -G admin cloud
   mkdir -p /home/cloud/.ssh
   chmod 700 /home/cloud/.ssh
   echo "cloud:`openssl rand -base64 32`" | chpasswd
+  echo "root:password" | chpasswd
 
 Review comment:
   Yes, this is ensure all systemvmtemplates have this default credentials 
(this is what the current systemvmtemplates use as well). In production env, 
you can set `system.vm.random.password` to true which then uses 
`system.vm.password` to get the password randomly set when mgmt server is 
initialized.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to