Skip to content

Commit 51a5919

Browse files
committed
devcloud: fix configuations for default devcloud.sql
Patch moves config. info from cfg file to .sql file. Adds more options so DevCloud can run on host-only IPs and cidr. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent a526460 commit 51a5919

2 files changed

Lines changed: 8 additions & 30 deletions

File tree

‎tools/devcloud/devcloud.cfg‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -80,36 +80,6 @@
8080
"file": "/tmp/testcase.log"
8181
}
8282
],
83-
"globalConfig": [
84-
{
85-
"name": "expunge.workers",
86-
"value": "3"
87-
},
88-
{
89-
"name": "expunge.delay",
90-
"value": "60"
91-
},
92-
{
93-
"name": "expunge.interval",
94-
"value": "60"
95-
},
96-
{
97-
"name":"enable.ec2.api",
98-
"value":"true"
99-
},
100-
{
101-
"name":"system.vm.use.local.storage",
102-
"value":"true"
103-
},
104-
{
105-
"name":"enable.s3.api",
106-
"value":"true"
107-
},
108-
{
109-
"name":"host",
110-
"value":"192.168.56.1"
111-
}
112-
],
11383
"mgtSvr": [
11484
{
11585
"mgtSvrIp": "127.0.0.1",

‎tools/devcloud/devcloud.sql‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ INSERT INTO `cloud`.`configuration` (instance, name,value) VALUE('DEFAULT','cons
2626
INSERT INTO `cloud`.`configuration` (instance, name,value) VALUE('DEFAULT','ssvm.ram.size','100');
2727
INSERT INTO `cloud`.`configuration` (instance, name,value) VALUE('DEFAULT','ssvm.cpu.mhz','100');
2828
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'system.vm.use.local.storage', 'true');
29+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'expunge.workers', '3');
30+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'expunge.delay', '60');
31+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'expunge.interval', '60');
32+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'enable.ec2.api', 'true');
33+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'enable.s3.api', 'true');
34+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'host', '192.168.56.1');
35+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'management.network.cidr', '192.168.56.0/24');
36+
INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT', 'secstorage.allowed.internal.sites', '192.168.56.0/8');
2937
UPDATE `cloud`.`configuration` SET value='10' where name = 'storage.overprovisioning.factor';
3038
UPDATE `cloud`.`configuration` SET value='10' where name = 'cpu.overprovisioning.factor';
3139
UPDATE `cloud`.`configuration` SET value='10' where name = 'mem.overprovisioning.factor';

0 commit comments

Comments
 (0)