mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
SSH key changes
This commit is contained in:
parent
716c35645b
commit
476e771c1c
@ -44,4 +44,9 @@ INSERT INTO `cloud`.`configuration` (category, instance, component, name, value)
|
|||||||
VALUES ('Advanced', 'DEFAULT', 'management-server',
|
VALUES ('Advanced', 'DEFAULT', 'management-server',
|
||||||
'integration.api.port', '8096');
|
'integration.api.port', '8096');
|
||||||
|
|
||||||
|
-- Add developer configuration entry; allows management server to be run as a user other than "cloud"
|
||||||
|
INSERT INTO `cloud`.`configuration` (category, instance, component, name, value)
|
||||||
|
VALUES ('Advanced', 'DEFAULT', 'management-server',
|
||||||
|
'developer', 'true');
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|||||||
@ -570,6 +570,7 @@ public class ConfigurationServerImpl implements ConfigurationServer {
|
|||||||
String username = System.getProperty("user.name");
|
String username = System.getProperty("user.name");
|
||||||
Boolean devel = Boolean.valueOf(_configDao.getValue("developer"));
|
Boolean devel = Boolean.valueOf(_configDao.getValue("developer"));
|
||||||
if (!username.equalsIgnoreCase("cloud") && !devel) {
|
if (!username.equalsIgnoreCase("cloud") && !devel) {
|
||||||
|
s_logger.warn("Systemvm keypairs could not be set. Management server should be run as cloud user, or in development mode.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String already = _configDao.getValue("ssh.privatekey");
|
String already = _configDao.getValue("ssh.privatekey");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user