Skip to content

Commit c79b827

Browse files
author
Prasanna Santhanam
committed
Adding a sample configuration for the s3 enabled store
This sample marvin configuration can be used to add an s3 backed object store to cloudstack. You will have to replace the ACCESS_KEY/SECRET_KEY and bucket endpoint (if not using aws) to match your credentials. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent bbd7183 commit c79b827

1 file changed

Lines changed: 140 additions & 0 deletions

File tree

setup/dev/s3.cfg

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
19+
# TODO: Change ACCESS_KEY/ SECRET_KEY to your credentials on the object store
20+
21+
{
22+
"zones": [
23+
{
24+
"name": "DevCloud0",
25+
"enabled" : "True",
26+
"physical_networks": [
27+
{
28+
"broadcastdomainrange": "Zone",
29+
"name": "test-network",
30+
"traffictypes": [
31+
{
32+
"typ": "Guest"
33+
},
34+
{
35+
"typ": "Management"
36+
}
37+
],
38+
"providers": [
39+
{
40+
"broadcastdomainrange": "ZONE",
41+
"name": "VirtualRouter"
42+
},
43+
{
44+
"broadcastdomainrange": "Pod",
45+
"name": "SecurityGroupProvider"
46+
}
47+
]
48+
}
49+
],
50+
"dns2": "8.8.4.4",
51+
"dns1": "8.8.8.8",
52+
"securitygroupenabled": "true",
53+
"localstorageenabled": "true",
54+
"networktype": "Basic",
55+
"pods": [
56+
{
57+
"endip": "192.168.56.220",
58+
"name": "test00",
59+
"startip": "192.168.56.200",
60+
"guestIpRanges": [
61+
{
62+
"startip": "192.168.56.100",
63+
"endip": "192.168.56.199",
64+
"netmask": "255.255.255.0",
65+
"gateway": "192.168.56.1"
66+
}
67+
],
68+
"netmask": "255.255.255.0",
69+
"clusters": [
70+
{
71+
"clustername": "test000",
72+
"hypervisor": "XenServer",
73+
"hosts": [
74+
{
75+
"username": "root",
76+
"url": "http://192.168.56.10/",
77+
"password": "password"
78+
}
79+
],
80+
"clustertype": "CloudManaged"
81+
}
82+
],
83+
"gateway": "192.168.56.1"
84+
}
85+
],
86+
"internaldns1": "192.168.56.1",
87+
"cacheStorages": [
88+
{
89+
"url": "nfs://192.168.56.10/opt/storage/secondary",
90+
"details": {
91+
"url": "nfs://192.168.56.10/opt/storage/secondary",
92+
"__name__": "cachestorage"
93+
},
94+
"provider": "NFS"
95+
}
96+
],
97+
"secondaryStorages": [
98+
{
99+
"details": {
100+
"maxerrorretry": "0",
101+
"name": "acstest-objectstore",
102+
"usehttps": "true",
103+
"accesskey": "ACCESS_KEY",
104+
"bucket": "acstest.cloudstack.org",
105+
"secretkey": "SECRET_KEY",
106+
"endpoint": "s3.amazonaws.com",
107+
"connectiontimeout": "300000",
108+
"__name__": "objectstore"
109+
},
110+
"name": "acstest-objectstore",
111+
"provider": "S3"
112+
}
113+
]
114+
}
115+
],
116+
"logger": [
117+
{
118+
"name": "TestClient",
119+
"file": "/tmp/testclient.log"
120+
},
121+
{
122+
"name": "TestCase",
123+
"file": "/tmp/testcase.log"
124+
}
125+
],
126+
"mgtSvr": [
127+
{
128+
"mgtSvrIp": "127.0.0.1",
129+
"port": 8096
130+
}
131+
],
132+
"dbSvr":
133+
{
134+
"dbSvr": "127.0.0.1",
135+
"port": 3306,
136+
"user": "cloud",
137+
"passwd": "cloud",
138+
"db": "cloud"
139+
}
140+
}

0 commit comments

Comments
 (0)